Reply to Conversation

Conversations

Reply to Conversation

Your own agent platform answers a WhatsApp customer — the other half of the message.received webhook. Send exactly one of text, media, template or form; text, media and forms need the customer's 24-hour window open, a template does not. Only works on a number with Connect External Agent/CRM turned on, and not while a teammate has taken the conversation over. Each message is charged like any WhatsApp message from that number. Needs a full key.

POST/conversations/{id}/reply

Path parameters

idstringrequired
The conversation's id (conv_…) — the conversationId in the message.received delivery.

Headers

Idempotency-Keystring
Any unique string. A retry with the same key within 24 hours returns the first request's answer instead of acting twice.
Katexs-Workspacestring
Developers only: the customer workspace this request acts in — its org_… id from POST /customers. Leave it out to act in your own workspace. Refused with 404 (Workspace not found.) when the id is unknown, is not one of your customers, or is not an org_… id; 410 when that customer was deleted (restore it with POST /customers/{id}/restore until it is erased); 403 when the key belongs to one customer workspace (it cannot act as another); 400 when your workspace is not a developer workspace. /customers/* and GET /customers/usage are your own workspace's and refuse the header with 400: call them without it.

Request body

Example request

bash
curl -X POST "https://app.katexs.com/api/v1/conversations/{id}/reply" \
  -H "Authorization: Bearer $KATEXS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "text": "Yes — it left our warehouse this morning. Tracking: AB123456."
}'

Responses

StatusDescription
200Sent. A replay of an Idempotency-Key returns the first answer with an Idempotent-Replayed: true header.
400No kind, more than one kind, or a field that is not valid.
401The key is missing, wrong or revoked. The answer is always the same, whichever it is.
402The Free plan's WhatsApp messages are used up. Switching to pay-as-you-go lifts it.
403The key's access level (read-only or build) does not allow this request, the plan does not include it, or a customer's key named another workspace in Katexs-Workspace. code says which: key_scope_read, key_scope_build, workspace_header_forbidden, or forbidden.
404The conversation is not in this workspace, the template does not exist or is not approved in that language, no published form has that name, or no form has that id. A template's language refusal also carries available, the languages it is approved in.
409The state of the conversation refuses it: External Agent/CRM is off for this number, a teammate has taken it over, the 24-hour window has closed (send a template), the template is not approved, is on another number or cannot be filled, the customer opted out of marketing, the number is disconnected or restricted, the form is not published, two published forms share that name, or a request with the same Idempotency-Key is still in flight.
410The customer named in Katexs-Workspace was deleted. POST /customers/{id}/restore brings it back until its erase date.
429Over a per-minute limit. Wait for Retry-After seconds. code and limit say which limit: rate_limit_resources (240 requests a minute for the workspace), rate_limit_family (2,400 across a developer's customers), rate_limit_calls, rate_limit_messages, rate_limit_codes, rate_limit_code_recipient, concurrent_calls or number_daily_limit.
502WhatsApp refused the message or the form this time. Nothing was sent and the Idempotency-Key is released, so retrying with the same key is safe.
503WhatsApp sending is not available right now. Retry later.

Response fields

okbooleanrequired
WhatsApp accepted it. Delivery and read are reported afterwards.
messageRefstring | null
WhatsApp's receipt for a template send. Absent for text, media and forms.
200 response
{
  "ok": true
}

Last updated November 2026 · Found a problem? Email support@katexs.com