Quickstart

Chatter runs customer-support chats with retailers for you. The API lets your own code or AI agent do everything the dashboard does: launch chats, follow them live, step in, and read the results.

API access is included with the Pro and Scale plans.

1. Create an API key

Open API in the dashboard sidebar, name a key, and copy it. It is shown once.

Keep it in an environment variable:

export CHATTER_API_KEY="ck_live_..."

2. Check that it works

curl https://api.refundhunter.io/api/me \
  -H "Authorization: Bearer $CHATTER_API_KEY"
{ "userId": "3f1c...", "role": "user" }

3. Launch a chat

curl https://api.refundhunter.io/api/tasks \
  -H "Authorization: Bearer $CHATTER_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "template": "bestbuy",
    "details": {
      "orderNumber": "BBY01-806912345678",
      "customerName": "Jordan Lee",
      "customerEmail": "jordan@example.com",
      "customerPhone": "555-010-2030",
      "issue": "Item arrived with a cracked screen",
      "resolution": "refund"
    }
  }'
{ "taskId": "8b0c6c0e-...", "task": { "name": "bestbuy", "company": "bestbuy", "url": "..." } }

4. Wait for the result

curl "https://api.refundhunter.io/api/tasks/8b0c6c0e-.../wait?timeout=50" \
  -H "Authorization: Bearer $CHATTER_API_KEY"

The request stays open until something happens, then tells you why it returned:

{
  "reason": "finished",
  "task": {
    "id": "8b0c6c0e-...",
    "status": "completed",
    "outcome": "resolved",
    "summary": "Rep approved a full refund of $129.99 to the original payment method."
  }
}

If reason is timeout, nothing has happened yet: call it again. Chats usually take several minutes. If it is needs_help, the AI is asking you something. See Step in.

Using an AI agent?

You can skip the code. Connect your agent with one command and ask it in plain words.

Give this to an agent without MCP

Paste this into any agent that can make web requests:

You can run customer-support chats through the Chatter API.
Base URL: https://api.refundhunter.io
Auth: send the header "Authorization: Bearer $CHATTER_API_KEY" on every request.
Full instructions: https://app.refundhunter.io/llms-full.txt
API schema (OpenAPI): https://api.refundhunter.io/openapi.json
Read the instructions first, then call GET /api/overview.

Next