Contacts

Import contacts

Import many contacts at once.

JSON, or a CSV file sent as text/csv with the group in ?group_id=. Up to 10,000 rows; a CSV file may be up to 16 MiB. Every row is imported or refused on its own.

Query Parameters

group_id?string

For a CSV upload, the group to add every row to.

Formatuuid

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

  1. body
group_id?string

The group every row is added to.

Formatuuid
contacts*array<>
Items1 <= items <= 10000
curl -X POST 'https://v3.ghala.io/v1/contacts/import' \  -H 'Content-Type: application/json' \  -d '{  "contacts": [    {      "phone": "string"    }  ]}'
{  "created": 0,  "updated": 0,  "added_to_group": 0,  "failed": 0,  "failures": [    {      "line": 0,      "phone": "string",      "code": "string",      "error": "string"    }  ]}