API Reference
Build powerful AI chat integrations with the ChatSpark REST API and embed the Chat Widget on your website. Get started in minutes.
Server-side integrations for chat, agents, conversations, leads, analytics, training, and webhooks.
5 min to first call
Embed a conversational AI widget on your website. Customize appearance, capture leads, and subscribe to events.
2 min to embed
What you can build
Send your first chat message in seconds. Replace cs_live_... with your API key and {id} with your agent ID.
bash
curl -X POST https://chatspark.io/api/v1/agents/{id}/chat \
-H "Authorization: Bearer cs_live_..." \
-H "Content-Type: application/json" \
-d '{"message":"Hello!"}'Read the full Quick Start guide →
API access and rate limits vary by plan. Upgrade to unlock more endpoints and higher throughput.
| Plan | API Access | Endpoints | Rate Limit |
|---|---|---|---|
| Basic | No access | — | — |
| Plus | Chat, Conversations, Leads | Chat, List agents, Conversations, Leads | 60 req/min |
| Pro | Plus + Agents, Analytics | + Agent CRUD, Analytics | 120 req/min |
| Enterprise | Full access | + Training, Webhooks, Full CRUD | 300 req/min |
Follow our Quick Start guide to make your first API call in under 5 minutes.