Skip to main content
The Contacts API lets you build and maintain your recipient database programmatically. Add contacts individually, organise them into contact lists for use with the Campaigns API, query and filter your contact database, and remove contacts when they are no longer needed. All phone numbers must be in E.164 format to ensure reliable delivery across all channels.

Add a Contact

Request Parameters

string
required
The contact’s full name (e.g. Maria Santos).
string
required
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).
string
The contact’s email address. Required if you plan to target this contact via the email channel.
array
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

string
The unique contact identifier, prefixed with cnt_ (e.g. cnt_def456).
string
The contact’s full name as provided in the request.
string
The contact’s phone number in E.164 format.
string
The contact’s email address, if provided.
array
An array of contact list IDs the contact belongs to.
string
ISO 8601 UTC timestamp of when the contact was created.
Example response (201 Created):
Phone numbers must be in E.164 format. Use the + prefix followed by the country code and local number — for example, +244 for Angola, +351 for Portugal, and +1 for the United States. Submissions in local formats (e.g. 0912345678) will be rejected with a 422 error.

Error Scenarios


List Contacts

Retrieve a paginated list of contacts on your account. Optionally filter by contact list.

Query Parameters

string
Filter contacts by a specific contact list ID. Returns only contacts belonging to the specified list.
integer
Page number (default: 1).
integer
Results per page (default: 50, max: 100).

Request Example

Response Fields

array
An array of contact objects matching the query.
object
Pagination metadata.
Example response:

Delete a Contact

Permanently remove a contact from your account by their ID:
A successful deletion returns 204 No Content with an empty response body.

Error Scenarios

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.