All requests require a Bearer token in the Authorization header. Create API keys in Settings → REST API.
Authorization: Bearer YOUR_API_KEY
https://byokchat.com/api/v1
Most endpoints require a chatbot ID. Each chatbot has its own knowledge base and system prompt — the ID determines which one handles the request. Find yours in Chatbots → your chatbot → Embed tab → REST API ID.
Already have an account? Settings → REST API has a chatbot picker that generates a ready-to-copy curl command for you.
Enforced per API key, per minute. Returns 429 with a Retry-After: 60 header when exceeded. Your current limit is shown in Settings → REST API.
All errors return JSON with an error field.
{ "error": "Invalid API key" }401Missing or invalid API key403API access not enabled on your plan404Resource not found (or belongs to another account)429Rate limit exceeded500Internal server errorReady to build?
Create an API key and pick your chatbot in Settings for a live curl command.
Go to Settings → REST API →