Conversations

List conversations

The inbox.

One inbox for every channel, newest first, each with its last message, unread count and 24 hour window.

Query Parameters

channel?string

One channel, such as whatsapp; every channel when absent.

contact?string

One contact: their id, or their number or address on the channel.

Lengthlength <= 128
unread?boolean

Only conversations with unread messages.

phone_number_id?string

One connected number.

Lengthlength <= 64
status?string
Value in"open""closed""escalated"
q?string

A name, a WhatsApp profile name or a number in any spelling; under 2 characters is ignored.

Lengthlength <= 128
cursor?string
limit?integer
Range1 <= value <= 100

Header Parameters

X-Request-Id?string

Your 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}