Connect an AI agent

The fastest way to use Chatter from an AI agent is the hosted MCP server. You add one address, and your agent gets ready-made tools for launching chats, waiting on them, stepping in and reading results. No code.

Server address: https://api.refundhunter.io/mcp

Sign-in: your API key, sent as Authorization: Bearer ck_live_.... Create one on the API page of the dashboard, which also shows these setup steps with your key filled in.

Claude Code

claude mcp add --transport http chatter https://api.refundhunter.io/mcp \
  --header "Authorization: Bearer ck_live_..."

Claude Desktop

Open Settings → Developer → Edit Config, add this, then restart the app:

{
  "mcpServers": {
    "chatter": {
      "command": "npx",
      "args": ["-y", "mcp-remote", "https://api.refundhunter.io/mcp", "--header", "Authorization: Bearer ck_live_..."]
    }
  }
}

Cursor

Save as .cursor/mcp.json in your project, or ~/.cursor/mcp.json for all projects:

{
  "mcpServers": {
    "chatter": {
      "url": "https://api.refundhunter.io/mcp",
      "headers": { "Authorization": "Bearer ck_live_..." }
    }
  }
}

Codex

Add to ~/.codex/config.toml, and set CHATTER_API_KEY in your shell:

[mcp_servers.chatter]
url = "https://api.refundhunter.io/mcp"
bearer_token_env_var = "CHATTER_API_KEY"

Any other MCP client

Use the Streamable HTTP transport with the server address above and the Authorization header. The server is stateless and answers with plain JSON.

Agents without MCP

Any agent that can make web requests can use the API directly. Give it this:

You can run customer-support chats for me 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.

What to say to your agent

Talk to it the way you would to a teammate:

  • "Launch a refund chat for order BBY01-806912345678. The TV arrived with a cracked screen."
  • "Here are 12 orders with lower prices I found. Run a price match on each and tell me which got approved."
  • "Check on my chats. Does anything need my help?"
  • "The rep is asking for the billing zip code. It is 78701."
  • "Schedule these for when Best Buy chat opens tomorrow."
  • "How many credits do I have left?"

Tools

ToolWhat it does
get_overviewCredits, free slots, chat hours, chats needing help, recent results, and anything blocking a launch
list_templatesThe kinds of chat and the details each one needs
launch_chatStart one chat (or up to 10 parallel attempts at it)
launch_chatsStart up to 100 different chats at once
deploy_draftsLaunch chats prepared earlier as drafts
list_chats, get_chat, get_chat_messagesLook at chats and their conversations
wait_for_chat, wait_for_chatsWait until a chat finishes or needs help
answer_help_requestAnswer when the AI asks for help
send_message, pause_chat, resume_chatTake part in a live chat
cancel_chat, restart_chat, follow_up_chat, reschedule_chatManage a chat
list_orders, get_order, create_order, update_orderWork with orders and what chats found out
import_orders_csvTurn a CSV into orders and draft chats
get_usage, get_credit_purchase_linkCredits and usage; a checkout link for more credits
list_proxies, add_proxiesThe proxies chats run through

Prefer a terminal? The command line tool does the same jobs, and the TypeScript SDK is there for your own code.

Every tool goes through the same checks as the API: it only sees your account, it respects your credits and limits, and it can never open admin tools.

Keeping control

  • Launching chats spends credits. The server tells agents to launch only what you asked for and to confirm when a request is unclear. Most agent apps also ask before running a tool; keep that on for launch tools if you want a final say.
  • Buying credits always goes through a checkout page that a person completes. An agent can fetch the link but cannot pay.
  • Use one key per agent. Revoke it on the API page and that agent is cut off within a minute.