Legacy API v1 overview
How the legacy v1 REST API works: chatbots, contacts, conversations and leads, with its paging, errors and the way to move to v2.
Working draft. These docs are illustrative: names, endpoints and examples describe the intended behaviour and can change before launch.
API v1 is the legacy REST API of Askocto. It calls an agent a chatbot, and it covers chatbots, chat, contacts, conversations, leads and chatbot images. Existing integrations keep working. New integrations should use API v2, which adds sources, procedures, actions, the Helpdesk, streaming and more.
Base URL and authentication
Every v1 path starts with /v1 on the same host as v2:
https://api.askocto.co/v1
Authenticate with the same API key you use for v2, sent as Authorization: Bearer $OCTO_API_KEY. Keys are created in Workspace Settings > API keys and act on the whole workspace. Read Authentication for key handling and test keys.
Requests and responses are JSON, except the image upload endpoints, which take multipart/form-data. All timestamps are ISO 8601 UTC strings such as 2026-03-14T09:30:00Z.
Conventions
IDs carry a prefix: agt_ for a chatbot, con_ for a contact, conv_ for a conversation, msg_ for a message, usr_ for a user and led_ for a lead. A chatbot ID from v1 is the agent ID in v2.
Lists use page numbers. Send page (starting at 1) and size. The response reports the paging back:
{
"data": [],
"page": 1,
"size": 20,
"total": 0
}
Deleting returns 200 OK with the ID and "deleted": true. Errors use the same HTTP statuses and codes as v2, but the body is flat:
{
"error": "not_found",
"message": "Chatbot not found."
}
For 429 rate_limited, wait for the number of seconds in the Retry-After header before you retry. The retry rules in Error handling apply to v1 as well.
How v1 differs from v2
| Topic | v1 | v2 |
|---|---|---|
| Name for an agent | Chatbot, chatbotId |
Agent, agentId |
| Paths | /v1/chatbots/{chatbotId}/... |
/v2/agents/{agentId}/... |
| Paging | page and size, with total |
limit and cursor, with nextCursor |
| Error body | Flat error and message |
An error object with code, message and requestId |
Endpoints
- Chat: Chat with a chatbot sends a message and returns the answer.
- Chatbots: Get all chatbots and Create a new chatbot. Update, settings and delete endpoints sit next to them in the sidebar.
- Contacts: Get contacts for a chatbot and Create contacts for a chatbot. The same section holds the single-contact and custom attribute endpoints.
- Conversations: Get conversations for a chatbot.
- Leads: Get leads for a chatbot.
- Assets: Upload chatbot icon. The profile picture has upload and delete endpoints too.
Moving to v2
Swap /v1/chatbots/{chatbotId} for /v2/agents/{agentId}, use the same ID, and replace page and size with limit and cursor. Then update your error handling to read error.code. Where v2 covers the same job, the v1 endpoint page links to its replacement.