Add a Contact
Request Parameters
The contact’s full name (e.g.
Maria Santos).The contact’s phone number in E.164 format. Must include the
+ prefix followed by the country code and subscriber number (e.g. +244912345678 for an Angolan number).The contact’s email address. Required if you plan to target this contact via the
email channel.An array of contact list IDs to assign this contact to upon creation (e.g.
["lst_abc123", "lst_def456"]). You can also add contacts to lists later via the dashboard.Request Example
Response Fields
The unique contact identifier, prefixed with
cnt_ (e.g. cnt_def456).The contact’s full name as provided in the request.
The contact’s phone number in E.164 format.
The contact’s email address, if provided.
An array of contact list IDs the contact belongs to.
ISO 8601 UTC timestamp of when the contact was created.
201 Created):
Error Scenarios
| Status | Error | Description |
|---|---|---|
400 | invalid_request | Missing required fields or malformed JSON body |
401 | unauthorized | API key is missing or invalid |
409 | conflict | A contact with this phone number already exists on the account |
422 | validation_error | phone is not in E.164 format, or email is malformed |
List Contacts
Retrieve a paginated list of contacts on your account. Optionally filter by contact list.Query Parameters
Filter contacts by a specific contact list ID. Returns only contacts belonging to the specified list.
Page number (default:
1).Results per page (default:
50, max: 100).Request Example
Response Fields
An array of contact objects matching the query.
Pagination metadata.
Delete a Contact
Permanently remove a contact from your account by their ID:204 No Content with an empty response body.
Error Scenarios
| Status | Error | Description |
|---|---|---|
401 | unauthorized | API key is missing or invalid |
404 | not_found | No contact with the given ID exists on the account |
Deleting a contact removes them from all contact lists they belong to and permanently excludes them from future campaigns. This action cannot be undone. If you simply want to stop targeting a contact in a specific campaign, remove them from the relevant contact list instead.
