Key and address
An account administrator creates the key: panel → “API and webhooks” → “Create key”. The API address of this server:
https://sana-chat.com/api/v1Send the key in the Authorization: Bearer <key> header (or X-Api-Key). Responses are JSON with an ok field. The limit is 120 requests per minute per account (the platform owner may change it). The API is available on the Pro plan.
Example request
curl -H "Authorization: Bearer slc_your_key" "https://sana-chat.com/api/v1/conversations?status=open&limit=20"Methods
GET /me— account and plan;GET /conversations— conversations; parametersstatus(open, closed),limit(up to 100),before_id,updated_since;GET /conversations/{id}— one conversation;GET /conversations/{id}/messages— messages;after_id,limit;POST /conversations/{id}/messages— reply{"text": "…", "operator_id": 12}; it goes to the channel the customer wrote from (website, Telegram, WhatsApp, VK…);POST /conversations/{id}/close— close the conversation;GET /contacts— contacts;query,limit,before_id;GET /stages— pipeline stages;GET /deals— deals;stage_id,limit;POST /deals— create a deal{"title": "…", "amount": 25000, "currency": "KZT", "stage_id": 3, "conversation_id": 812, "notes": "…"}.
Reply to a customer
curl -X POST "https://sana-chat.com/api/v1/conversations/812/messages" \
-H "Authorization: Bearer slc_your_key" -H "Content-Type: application/json" \
-d '{"text": "Hello! Your order has shipped, tracking number 123456"}'Example response
{"ok": true, "conversations": [{"id": 812, "status": "open", "channel": "telegram",
"contact": {"name": "Anna", "email": "", "phone": "+77011234567"},
"last_message": "Where is my order?", "created_at": "2026-11-29T08:15:00+00:00"}], "next_before_id": null}Errors
401— no key or the key was revoked;402— the API is available on the Pro plan;404— not found;422— invalid data (details inerror);429— rate limit exceeded;503— the API is temporarily switched off by the platform.
Your account’s address
The exact API address of your account is shown in the panel under “API and webhooks”.