Conversations
List conversations
The inbox.
One inbox for every channel, newest first, each with its last message, unread count and 24 hour window.
channel?stringOne channel, such as whatsapp; every channel when absent.
contact?stringOne contact: their id, or their number or address on the channel.
Length
length <= 128unread?booleanOnly conversations with unread messages.
phone_number_id?stringOne connected number.
Length
length <= 64status?stringValue in
"open""closed""escalated"q?stringA name, a WhatsApp profile name or a number in any spelling; under 2 characters is ignored.
Length
length <= 128cursor?stringlimit?integerRange
1 <= value <= 100X-Request-Id?stringYour id for this request; it becomes the request_id of any error. Without it the server makes one.
curl -X GET 'https://v3.ghala.io/v1/conversations'{ "items": [ { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "phone_number_id": "string", "channel": "string", "contact": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "identity_id": "011a42b9-62d7-49eb-8328-c2e454af88a1", "phone_number": "string", "name": "string" }, "last_message": { "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" }, "unread_count": 0, "status": "open", "last_message_at": "2019-08-24T14:15:22Z", "can_send_freeform": true, "freeform_window_expires_at": "2019-08-24T14:15:22Z", "human_takeover": true, "auto_reply_paused_until": "2019-08-24T14:15:22Z" } ], "next_cursor": "string", "has_more": true}