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.
group_id?stringFor a CSV upload, the group to add every row to.
Format
uuidX-Request-Id?stringYour id for this request; it becomes the request_id of any error. Without it the server makes one.
- body
group_id?stringThe group every row is added to.
Format
uuidcontacts*array<>Items
1 <= items <= 10000curl -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" } ]}