BYOKChat/API Reference

REST API

Integrate BYOKChat with your own apps, scripts, or automation tools.

Authentication

All requests require a Bearer token in the Authorization header. Create API keys in Settings → REST API.

http
Authorization: Bearer YOUR_API_KEY

Base URL

url
https://byokchat.com/api/v1

Chatbot IDs

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.

Endpoints

Rate limits

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.

Errors

All errors return JSON with an error field.

json
{ "error": "Invalid API key" }
401Missing or invalid API key
403API access not enabled on your plan
404Resource not found (or belongs to another account)
429Rate limit exceeded
500Internal server error

Ready to build?

Create an API key and pick your chatbot in Settings for a live curl command.

Go to Settings → REST API →