API

Bring your own agent and connect it to the dashboard.

Before you start you only need:

  • Your API key.
  • Your agent public ID.
  • A chat handler that talks to your support agent.

How it works

Hover to zoom

POST /api/v1/chat

Implement this handler to call your support agent. Stream token deltas over SSE. Set escalate: true on the final event when humans should take over.

curl

curl -N -X POST https://yourwebsite.com/api/v1/chat \
  -H "Authorization: Bearer <your-api-key>" \
  -H "Content-Type: application/json" \
  -d '{
    "agentId": "YOUR_AGENT_PUBLIC_ID",
    "message": "Where is my order?",
    "sessionId": "sess_abc123"
  }'

POST /api/v1/handoff/ticket

Create a Helpdesk ticket with conversation summary and urgency (if needed).

Where to next