Contacts

List contacts

List contacts.

Query Parameters

search?string

Part of a name or number.

q?stringDeprecated

The older name for search.

group_id?string
Formatuuid
suppressed?boolean

true keeps only suppressed numbers, false only the ones that can be messaged.

attributes?string

A JSON object of attribute names to lists of values, like {"city":["Arusha"]}. At most 20 names and 50 values each.

limit?integer
Range1 <= value <= 500
Default50
since?string

Added at or after this time.

Formatdate-time
until?string

Added before this time.

Formatdate-time
cursor?string

The next_cursor of the previous page. Opaque.

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/contacts'
{  "next_cursor": "string",  "has_more": true,  "data": [    {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "phone": "255712345678",      "name": "string",      "email": "string",      "attributes": {        "property1": "string",        "property2": "string"      },      "suppression": "opt_out",      "identities": [        {          "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",          "channel": "whatsapp",          "address": "string",          "display": "string",          "created_at": "2019-08-24T14:15:22Z"        }      ],      "created_at": "2019-08-24T14:15:22Z",      "updated_at": "2019-08-24T14:15:22Z"    }  ]}