Conversations

Reply in conversation

Answer the customer.

On the conversation's own channel, in the shape it takes. WhatsApp: text, media by https link (image, document, video, audio for a voice note) or an approved template. Outside the 24 hours only a template goes. Instagram: InstagramContent; within 24 hours of the person's last message, then a person in the inbox for 7 days; a test key is refused. A person answering pauses the bot for the number's takeover window; audited without the message. Send an Idempotency-Key: without one each request is a new send.

Path Parameters

conversation*string

The conversation's id.

Formatuuid

Query Parameters

cursor?string
limit?integer
Range1 <= value <= 100
mark_read?boolean

The first page marks the thread read unless false.

Defaulttrue

Header Parameters

Idempotency-Key?string

A fresh value per request; retry with the same one. The same key and request answers with the first response and Idempotency-Replayed: true; the same key on a different request is 409 idempotency_key_reused; while the first is still running, 409 idempotency_in_progress. A 5xx frees the key only when nothing reached the provider; any other answer is replayed. Kept 24 hours, per workspace.

Length1 <= length <= 255
X-Request-Id?string

Your id for this request; it becomes the request_id of any error. Without it the server makes one.

Request Body

application/json
  1. body
type?string
Default"text"
Value in"text""image""document""video""audio""template"
content?string
Lengthlength <= 4096
url?string
Formaturi
caption?string
Lengthlength <= 1024
filename?string
Lengthlength <= 255
template_name?string
language?string
components?array<>
curl -X POST 'https://v3.ghala.io/v1/conversations/497f6eca-6276-4993-bfeb-53cbbbba6f08/messages' \  -H 'Content-Type: application/json' \  -d '{}'
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "direction": "inbound",  "message_type": "string",  "content": "string",  "status": "string",  "error_message": "string",  "wa_message_id": "string",  "provider_message_id": "string",  "media_url": "string",  "media_mime_type": "string",  "sent_at": "2019-08-24T14:15:22Z",  "delivered_at": "2019-08-24T14:15:22Z",  "read_at": "2019-08-24T14:15:22Z",  "failed_at": "2019-08-24T14:15:22Z"}