Skip to content

Smart Chat API ​

Messages, WhatsApp templates, conversations, agents and webhooks.

  • Production: https://chat.keybeapi.com
  • OpenAPI spec: chat.json

Every operation is authenticated with your API key, except the ones marked as public or user token only. See Authentication.

Some operations live on another host: each operation page shows its full URL.

Messages ​

Send messages as an agent and read the messages of a conversation.

MethodOperationPath
POSTSend a message as an agent/message/adviser
GETGet a message/message
GETList the messages of a conversation/room/message

Templates ​

WhatsApp templates: the way to start a conversation or to write after the 24-hour window.

MethodOperationPath
GETList the templates of a WhatsApp line/template
POSTSend a WhatsApp template/message/proactivity

Conversations ​

Find, list, transfer and close conversations (rooms) with your contacts.

MethodOperationPath
GETGet a conversation/rooms/byId
GETFind the conversation of a contact/rooms/roomByUser
GETList conversations/inbox/room
GETList an agent's inbox filters/config/filter
POSTTransfer a conversation/rooms/transfer
POSTClose a conversation/rooms/end

Webhooks ​

Receive Smart Chat message events in your own system. Register up to 10 URLs per app; Biky sends a POST to each one with every message that matches its filters.

Events (type field of the payload)

EventWhenEnabled by
newMessageA message is created in a conversation: written by the contact, an agent, the AI agent, a bot or an integration (templates included).newMessages
updateMessageA message changes: delivery status (sent, user = delivered, read, failed with error), reactions, audio transcription… The previous version comes in oldMessage.updateMessages

senders filters both events by message.sender (user, advisor, bot, api, internal); by default only the contact's messages (user) are sent. Internal status messages (assignments, transfers, closures) are never sent.

Payload (WebhookEvent): { type, message, oldMessage?, room }. message is a Message and room is the Conversation as it is when the event is delivered.

Request: POST with Content-Type: application/json. If the webhook has a token, it comes in the Authorization header as <authorizationType> <token> (for example Bearer whsec_…), or the bare token when authorizationType is empty. Requests are not signed: use HTTPS, configure a token and check it; if you need certainty, read the message again with GET /message.

Delivery and retries: answer any 2xx within 10 seconds. If your endpoint doesn't answer in time, can't be reached, or answers 5xx or 429, Biky retries 30 to 60 seconds later, up to 3 attempts in total; after that the event is dropped. Other 4xx answers are final. Delivery is at least once and not ordered: deduplicate with type + message._id + message.updatedAt. Each webhook is retried on its own.

The payload schema and two full examples are in the callback of POST /v1/webhook.

MethodOperationPath
GETList webhooks/v1/webhook
POSTCreate a webhook/v1/webhook
GETGet a webhook/v1/webhook/{id}
PUTUpdate a webhook/v1/webhook/{id}
DELDelete a webhook/v1/webhook/{id}

Agents ​

People of your team, and the AI agent, who attend conversations.

MethodOperationPath
GETList agents/adviser

Channels ​

WhatsApp lines, Instagram account and Facebook page connected to your app.

MethodOperationPath
GETList connected channels/config/channels
GETList the product catalogs of a WhatsApp line/config/whatsapp/{appUUID}/phone/{phoneNumber}/catalog

Spaces ​

Spaces (inboxes) that split conversations by line, page, team or topic.

MethodOperationPath
GETList spaces/inbox

Groups ​

Labels to organize the spaces of your app; a space references its groups by key.

MethodOperationPath
GETList groups/groups
POSTCreate a group/groups
GETGet a group/groups/{id}
PATCHRename a group/groups/{id}
DELDelete a group/groups/{id}