curl --request POST \
--url https://app.thinnest.ai/api/v1/conversations/{id}/reply \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"text": "Yes — it left our warehouse this morning. Tracking: AB123456."
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({text: 'Yes — it left our warehouse this morning. Tracking: AB123456.'})
};
fetch('https://app.thinnest.ai/api/v1/conversations/{id}/reply', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.thinnest.ai/api/v1/conversations/{id}/reply"
payload = { "text": "Yes — it left our warehouse this morning. Tracking: AB123456." }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"ok": true
}{
"error": "Send only one of `text`, `media`, `template` or `form` — got text, template."
}{
"error": "Send a valid API key as `Authorization: Bearer <key>`."
}{
"error": "The Free plan includes 200 WhatsApp messages, and they are used. Switch to Pay as you go — there is no monthly fee — to keep sending."
}{
"error": "This API key is read-only: it can read everything but change nothing."
}{
"error": "No published form called \"Delivery address\"."
}{
"error": "The 24-hour window has closed. Only an approved template can reach this customer now — send `template` instead."
}{
"error": "Over 240 requests a minute. Slow down and retry."
}{
"error": "WhatsApp refused it: (#131047) Re-engagement message"
}{
"error": "WhatsApp is not configured on this deployment."
}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.
curl --request POST \
--url https://app.thinnest.ai/api/v1/conversations/{id}/reply \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"text": "Yes — it left our warehouse this morning. Tracking: AB123456."
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({text: 'Yes — it left our warehouse this morning. Tracking: AB123456.'})
};
fetch('https://app.thinnest.ai/api/v1/conversations/{id}/reply', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.thinnest.ai/api/v1/conversations/{id}/reply"
payload = { "text": "Yes — it left our warehouse this morning. Tracking: AB123456." }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"ok": true
}{
"error": "Send only one of `text`, `media`, `template` or `form` — got text, template."
}{
"error": "Send a valid API key as `Authorization: Bearer <key>`."
}{
"error": "The Free plan includes 200 WhatsApp messages, and they are used. Switch to Pay as you go — there is no monthly fee — to keep sending."
}{
"error": "This API key is read-only: it can read everything but change nothing."
}{
"error": "No published form called \"Delivery address\"."
}{
"error": "The 24-hour window has closed. Only an approved template can reach this customer now — send `template` instead."
}{
"error": "Over 240 requests a minute. Slow down and retry."
}{
"error": "WhatsApp refused it: (#131047) Re-engagement message"
}{
"error": "WhatsApp is not configured on this deployment."
}Authorizations
Your API key (ta_live_…) from Settings → API keys, sent as Authorization: Bearer <key>. Keep it on a server: it can message every customer you have. A key is full, build or read-only; a request its level does not allow is refused with 403.
Headers
Any unique string. A retry with the same key within 24 hours returns the first request's answer instead of acting twice.
255Developers only: the customer workspace this request acts in — its org_… id from POST /customers. Leave it out to act in your own workspace.
"org_3fKq9TzQ1mN8vB2xR7cLpA"
Path Parameters
The conversation's id (conv_…) — the conversationId in the message.received delivery.
Body
- Text
- Media
- Template
- Form
Exactly one of text, media, template or form. Two in one call are refused, so a customer never gets two messages when you meant one.