Contacts

Create or update contact

Create a contact, or merge into the one with the same number.

Attributes merge. Every group in group_ids must exist, or nothing is written.

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.

Request Body

application/json
  1. body
phone*string
name?string
email?string
attributes?

Values may be strings, numbers or booleans; they are stored as text.

group_ids?array<>
curl -X POST 'https://v3.ghala.io/v1/contacts' \  -H 'Content-Type: application/json' \  -d '{  "phone": "0712 345 678"}'
{  "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"}