The basics
Base URL https://captificonnect.co.uk/api/v1. Send Authorization: Bearer <api key> on every request, and JSON bodies with Content-Type: application/json, up to 1 MB. Each key can make 20 requests a second, with bursts up to 40, and an account's keys together can make 40 a second, with bursts up to 80. Responses carry X-RateLimit-Limit and X-RateLimit-Remaining for whichever of the two is closer to running out.
When you create a key you can limit it to a scope (full, send or read), give it an expiry date and tie it to the IP addresses or ranges your servers use. A request outside those limits answers 403 insufficient_scope or ip_not_allowed, or 401 key_expired. An Idempotency-Key on a send is remembered for 24 hours.
Successful responses are { "data": ..., "meta": ... }. Lists are newest first, 25 to a page by default (up to 100 with limit); pass meta.next_cursor back as cursor for the next page. Errors are described in errors, and events in webhooks.
Messages
Send texts and read what was sent and received.
Send a different text to each number
post/api/v1/messages/bulk
Up to 1,000 texts in one call and one batch, each with its own to, body, client_ref and vars (merge values: first_name, last_name, email, phone and any custom field). sender, schedule_at, append_opt_out, track_links, expires_in and smart_encoding apply to them all.
Every item is checked on its own. data.results has one entry per item, in order: accepted with its message_id, or rejected with a reason (the rejection reasons of POST /messages, or invalid_item with errors when the item itself is malformed). Only accepted items are charged. When none can be sent the call fails with no_valid_recipients and every item in details.rejected.
An Idempotency-Key covers the whole call. Credits, opt-outs, quiet hours and refunds work exactly as for POST /messages to typed numbers. The same number may appear more than once with different texts; the same number with the same text twice is a duplicate.
Parameters
| Name | Type | About |
|---|---|---|
Idempotency-Keyheader | string | Up to 200 characters. Makes a retried call safe for 24 hours. |
Request body (JSON)
| Name | Type | About |
|---|---|---|
messagesrequired | array of object | |
sender | string or null | An approved sender name for every text. |
schedule_at | date-time or null | |
append_opt_out | boolean | Add the opt-out line to every text. Off unless set. |
track_links | boolean | |
expires_in | integer or null | As on POST /messages. |
smart_encoding | boolean | As on POST /messages. |
{
"messages": [
{
"to": "07412 000001",
"body": "Hi {first_name}, your table for 4 is at 7pm.",
"client_ref": "booking-1042",
"vars": {
"first_name": "Priya"
}
},
{
"to": "07412 000002",
"body": "Your order 881 is ready to collect.",
"client_ref": "order-881"
}
],
"sender": "BISTRO",
"expires_in": 3600
}Responses
- 200An idempotent replay of an earlier call.
- 201Accepted. Each item says whether it was sent.
- 401Missing, wrong or revoked key.
- 402Not enough credit.
details.neededanddetails.balancesay by how much. - 404No such resource in this account.
- 422The request is not valid;
detailslists the fields. - 429Over 20 requests a second for the key (burst 40), 40 a second for all the account's keys together (burst 80), or ten exports or imports a minute. Retry after the Retry-After header.
Check a number before you text it
post/api/v1/lookup
Free, and answered from the numbering plan and your own records: no network is asked, so it says nothing about whether the phone is switched on. type comes from the UK prefix (07 is mobile, 01 and 02 landline, anything else other), so a number keeps its type when it moves network. rejection is what POST /messages would say about it, or null when it can be sent to.
Request body (JSON)
| Name | Type | About |
|---|---|---|
phonerequired | string |
{
"phone": "07412 000001"
}Responses
- 200What we know about the number.
- 401Missing, wrong or revoked key.
- 404No such resource in this account.
- 422The request is not valid;
detailslists the fields. - 429Over 20 requests a second for the key (burst 40), 40 a second for all the account's keys together (burst 80), or ten exports or imports a minute. Retry after the Retry-After header.
{
"data": {
"input": "07412 000001",
"phone": "+447412000001",
"valid": true,
"region": "GB",
"type": "mobile",
"opted_out": false,
"sendable": true,
"rejection": null
},
"meta": null
}List messages
get/api/v1/messages
A test key lists only the test texts it sent, and the simulated replies to them.
Parameters
| Name | Type | About |
|---|---|---|
limitquery | integer | Items per page, 1 to 100 (default 25). |
cursorquery | string | The |
directionquery | one of outbound, inbound | |
statusquery | MessageStatus | |
qquery | string | A number (any format) or text to find in the body. |
numberquery | string | Only texts to or from this number, in any format. |
campaign_idquery | string | |
batch_idquery | string | |
client_refquery | string | |
sincequery | string | A date (YYYY-MM-DD, the whole day in UK time) or a date-time. |
untilquery | string | A date (YYYY-MM-DD, the whole day in UK time) or a date-time. |
Responses
- 200A page of messages.
- 401Missing, wrong or revoked key.
- 404No such resource in this account.
- 422The request is not valid;
detailslists the fields. - 429Over 20 requests a second for the key (burst 40), 40 a second for all the account's keys together (burst 80), or ten exports or imports a minute. Retry after the Retry-After header.
Send texts
post/api/v1/messages
Sends one text to every recipient given in to, contact_ids and list_id together. Numbers are checked and de-duplicated; refused numbers are listed in rejected and not charged. Merge fields such as {first_name} are filled from contacts. Credits are taken when the request is accepted (one per SMS part) and refunded for any text that fails before leaving.
Parameters
| Name | Type | About |
|---|---|---|
Idempotency-Keyheader | string | Up to 200 characters. Makes a retried request safe for 24 hours. |
Preferheader | string | Send |
Request body (JSON)
| Name | Type | About |
|---|---|---|
to | string or array of string | UK numbers in any common format. A string may hold several, separated by commas or new lines. |
contact_ids | array of string | |
list_id | string | |
segment_id | string | A segment's contacts, worked out when the send is made. Opted-out numbers are never in one. Treated like |
body | string | Up to 10 SMS parts. Merge fields: {first_name}, {last_name}, {full_name}, {phone}, {email}, and each custom field by its key (a date field reads as 14 March 2026). |
template_id | string | Used when body is empty. |
sender | string or null | An approved sender name. Leave out to send from a number people can reply to. |
from | string or null | One of the numbers GET /numbers/from lists, to send from that number (refused with |
schedule_at | date-time or null | Up to a year ahead. |
client_ref | string or null | Your own reference, echoed back in webhooks. |
append_opt_out | boolean | Adds the account opt-out line (for marketing texts). On by default for a send to a |
ignore_quiet_hours | boolean | A send to a |
track_links | boolean | Replace each URL with a short tracked link per recipient, so clicks show per text. The quote counts the shorter text. Ignored on a test send. |
expires_in | integer or null | Seconds, counted from when the text is due to go (now, |
smart_encoding | boolean | Replace curly quotes, en and em dashes, the ellipsis, non-breaking and other special spaces and invisible characters with their plain GSM-7 equivalents before the text is counted. One such character makes a whole text Unicode (70 characters a part instead of 160). Letters and emoji are left alone. |
async | boolean | The same as |
{
"to": [
"07412 000001",
"+447412000002"
],
"body": "Hi {first_name}, your order is ready.",
"client_ref": "order-881"
}Responses
- 200An idempotent replay of an earlier request.
- 201Accepted. Texts are queued (or scheduled).
- 202Accepted for the background (a send over 1,000 recipients with
Prefer: respond-async).datais the batch,processinguntil it has been sent. - 401Missing, wrong or revoked key.
- 402Not enough credit.
details.neededanddetails.balancesay by how much. - 403The account cannot send: it is suspended (
account_suspended), its owner has not confirmed their email (email_unconfirmed) or it is on hold for proof of the business (business_unverified). Or a test key named contacts or a list (test_key_live_data). - 404No such resource in this account.
- 422The request is not valid;
detailslists the fields. - 429Over 20 requests a second for the key (burst 40), 40 a second for all the account's keys together (burst 80), or ten exports or imports a minute. Retry after the Retry-After header.
Price a send without sending
post/api/v1/messages/quote
Takes the same body as POST /messages and returns what it would charge. Add "source": "campaign" to price the text as a campaign launch sends it: a campaign can go by another route than a one-off send, which can change the opt-out line and so the parts, and it keeps to the quiet hours unless ignore_quiet_hours is true.
Responses
- 200The quote.
- 401Missing, wrong or revoked key.
- 404No such resource in this account.
- 422The request is not valid;
detailslists the fields. - 429Over 20 requests a second for the key (burst 40), 40 a second for all the account's keys together (burst 80), or ten exports or imports a minute. Retry after the Retry-After header.
Get a message with its status timeline
get/api/v1/messages/{id}
A test key reads only the test texts it sent; a live text answers 403 test_key_live_data. A send-scoped key reads only the texts it sent.
Parameters
| Name | Type | About |
|---|---|---|
idpathrequired | string | The message id. |
Responses
- 200The message.
- 401Missing, wrong or revoked key.
- 404No such resource in this account.
- 422The request is not valid;
detailslists the fields. - 429Over 20 requests a second for the key (burst 40), 40 a second for all the account's keys together (burst 80), or ten exports or imports a minute. Retry after the Retry-After header.
{
"data": {
"id": "msg_01J9Z8X7W6V5T4S3R2Q1P0N9M8",
"direction": "outbound",
"status": "delivered",
"to": "+447412000001",
"from": "+447700900321",
"contact_number": "+447412000001",
"body": "Your table for 4 at 7pm is confirmed.",
"encoding": "gsm7",
"segments": 1,
"credits": 1,
"route": "sim",
"sender": null,
"client_ref": "booking-1042",
"batch_id": "bat_01J9Z8X7W6V5T4S3R2Q1P0N9M7",
"campaign_id": null,
"contact_id": null,
"error_code": null,
"error_message": null,
"test": false,
"scheduled_at": null,
"sent_at": "2026-10-16T09:00:02.000Z",
"delivered_at": "2026-10-16T09:00:06.000Z",
"failed_at": null,
"cancelled_at": null,
"received_at": null,
"read_at": null,
"expires_at": null,
"redacted_at": null,
"created_at": "2026-10-16T09:00:00.000Z",
"events": [
{
"status": "queued",
"detail": null,
"at": "2026-10-16T09:00:00.000Z"
}
]
},
"meta": null
}Remove a text's body
delete/api/v1/messages/{id}
Replaces the body with [redacted] for good. The message stays, with its status, parts and cost, so reports and billing still add up; redacted_at says when, and the account activity log says who. A text that has not left yet answers 409 not_redactable: cancel it first. Doing it again changes nothing.
Parameters
| Name | Type | About |
|---|---|---|
idpathrequired | string | The message id. |
Responses
- 200The message, without its body.
- 401Missing, wrong or revoked key.
- 404No such resource in this account.
- 409Not sent yet (
not_redactable). - 422The request is not valid;
detailslists the fields. - 429Over 20 requests a second for the key (burst 40), 40 a second for all the account's keys together (burst 80), or ten exports or imports a minute. Retry after the Retry-After header.
Cancel a scheduled text
post/api/v1/messages/{id}/cancel
Works while the text is scheduled or still queued. Its credits are refunded and message.cancelled is raised. A test or send-scoped key cancels only texts it sent.
Parameters
| Name | Type | About |
|---|---|---|
idpathrequired | string | The message id. |
Responses
- 200Cancelled.
- 401Missing, wrong or revoked key.
- 404No such resource in this account.
- 409Already on its way.
- 422The request is not valid;
detailslists the fields. - 429Over 20 requests a second for the key (burst 40), 40 a second for all the account's keys together (burst 80), or ten exports or imports a minute. Retry after the Retry-After header.
Export messages as CSV
get/api/v1/messages/export
Accepts the list filters. Up to 50,000 rows.
Responses
- 200CSV file.
- 401Missing, wrong or revoked key.
- 404No such resource in this account.
- 422The request is not valid;
detailslists the fields. - 429Over 20 requests a second for the key (burst 40), 40 a second for all the account's keys together (burst 80), or ten exports or imports a minute. Retry after the Retry-After header.
Conversations
Two-way threads: one per number that replied or that you texted on its own from the dashboard, with your team's notes and who looks after each.
Mark a conversation unread
post/api/v1/conversations/{phone}/unread
The newest text they sent counts as unread again, so the thread shows as unread until someone reads it. marked_unread is 0 when nothing they sent was read (or they have sent nothing).
Parameters
| Name | Type | About |
|---|---|---|
phonepathrequired | string | As for GET /conversations/{phone}: the number URL-encoded in any common form, or a sender name. |
Responses
- 200How many texts were marked unread.
- 401Missing, wrong or revoked key.
- 404No such resource in this account.
- 422The request is not valid;
detailslists the fields. - 429Over 20 requests a second for the key (burst 40), 40 a second for all the account's keys together (burst 80), or ten exports or imports a minute. Retry after the Retry-After header.
List the notes on a conversation
get/api/v1/conversations/{phone}/notes
Notes your team left on the thread, oldest first. Notes are never sent to the contact and never appear in webhooks.
Parameters
| Name | Type | About |
|---|---|---|
phonepathrequired | string | As for GET /conversations/{phone}: the number URL-encoded in any common form, or a sender name. |
Responses
- 200Notes.
- 401Missing, wrong or revoked key.
- 404No such resource in this account.
- 422The request is not valid;
detailslists the fields. - 429Over 20 requests a second for the key (burst 40), 40 a second for all the account's keys together (burst 80), or ten exports or imports a minute. Retry after the Retry-After header.
{
"data": [
{
"id": "note_01JB2C3D4E5F6G7H8J9K0M1N2P",
"contact_number": "+447412000001",
"body": "Asked for a table for six on Friday. Called back to confirm.",
"author_user_id": "usr_01JA1B2C3D4E5F6G7H8J9K0M1N",
"author_name": "Sam Patel",
"created_at": "2026-11-07T10:15:00.000Z",
"updated_at": "2026-11-07T10:15:00.000Z"
}
],
"meta": null
}Add a note to a conversation
post/api/v1/conversations/{phone}/notes
A note added with an API key has no author_user_id and is named after the key. Only the person who wrote a note can change or delete it, from the dashboard.
Parameters
| Name | Type | About |
|---|---|---|
phonepathrequired | string | As for GET /conversations/{phone}: the number URL-encoded in any common form, or a sender name. |
Request body (JSON)
| Name | Type | About |
|---|---|---|
bodyrequired | string | The note, up to 2,000 characters. |
{
"body": "Asked for a table for six on Friday. Called back to confirm."
}Responses
- 201The note.
- 401Missing, wrong or revoked key.
- 404No such resource in this account.
- 422The request is not valid;
detailslists the fields. - 429Over 20 requests a second for the key (burst 40), 40 a second for all the account's keys together (burst 80), or ten exports or imports a minute. Retry after the Retry-After header.
{
"data": {
"id": "note_01JB2C3D4E5F6G7H8J9K0M1N2P",
"contact_number": "+447412000001",
"body": "Asked for a table for six on Friday. Called back to confirm.",
"author_user_id": "usr_01JA1B2C3D4E5F6G7H8J9K0M1N",
"author_name": "Sam Patel",
"created_at": "2026-11-07T10:15:00.000Z",
"updated_at": "2026-11-07T10:15:00.000Z"
},
"meta": null
}Change a note
patch/api/v1/conversations/{phone}/notes/{id}
Only the person who wrote the note, signed in to the dashboard. Anyone else, and any API key, gets 403.
Parameters
| Name | Type | About |
|---|---|---|
phonepathrequired | string | As for GET /conversations/{phone}: the number URL-encoded in any common form, or a sender name. |
idpathrequired | string | The note id. |
Request body (JSON)
| Name | Type | About |
|---|---|---|
bodyrequired | string | The note, up to 2,000 characters. |
Responses
- 200The note.
- 401Missing, wrong or revoked key.
- 403Not allowed for this caller;
error.messagesays why. - 404No such resource in this account.
- 422The request is not valid;
detailslists the fields. - 429Over 20 requests a second for the key (burst 40), 40 a second for all the account's keys together (burst 80), or ten exports or imports a minute. Retry after the Retry-After header.
Delete a note
delete/api/v1/conversations/{phone}/notes/{id}
Only the person who wrote the note, signed in to the dashboard. Anyone else, and any API key, gets 403.
Parameters
| Name | Type | About |
|---|---|---|
phonepathrequired | string | As for GET /conversations/{phone}: the number URL-encoded in any common form, or a sender name. |
idpathrequired | string | The note id. |
Responses
- 204Deleted.
- 401Missing, wrong or revoked key.
- 403Not allowed for this caller;
error.messagesays why. - 404No such resource in this account.
- 422The request is not valid;
detailslists the fields. - 429Over 20 requests a second for the key (burst 40), 40 a second for all the account's keys together (burst 80), or ten exports or imports a minute. Retry after the Retry-After header.
List conversations
get/api/v1/conversations
One entry per number that has texted you, or that you texted on its own from the dashboard (Send SMS to one number, or the inbox), newest activity first. Numbers you only reached in a bulk send, a campaign or through the API are left out until they reply.
Parameters
| Name | Type | About |
|---|---|---|
limitquery | integer | Items per page, 1 to 100 (default 25). |
cursorquery | string | The |
unreadquery | one of true, false | |
qquery | string | |
assigned_toquery | string | Only conversations given to this team member (a user id), |
Responses
- 200Conversations.
- 401Missing, wrong or revoked key.
- 404No such resource in this account.
- 422The request is not valid;
detailslists the fields. - 429Over 20 requests a second for the key (burst 40), 40 a second for all the account's keys together (burst 80), or ten exports or imports a minute. Retry after the Retry-After header.
Get one conversation
get/api/v1/conversations/{phone}
Parameters
| Name | Type | About |
|---|---|---|
phonepathrequired | string | The number, URL-encoded: E.164 (%2B447412000001), 447412000001 or 07412000001 all find the same thread. A sender name (a bank, say) as it appears. |
Responses
- 200The last 200 texts, oldest first, with the notes and who looks after it.
- 401Missing, wrong or revoked key.
- 404No such resource in this account.
- 422The request is not valid;
detailslists the fields. - 429Over 20 requests a second for the key (burst 40), 40 a second for all the account's keys together (burst 80), or ten exports or imports a minute. Retry after the Retry-After header.
Assign a conversation
patch/api/v1/conversations/{phone}
Gives the thread to a team member, or back to nobody with null. The person given it gets a notification in the dashboard. API keys, owners and admins can assign anyone on the account; a member signed in to the dashboard can take a thread themselves and let go of their own.
Parameters
| Name | Type | About |
|---|---|---|
phonepathrequired | string | As for GET /conversations/{phone}: the number URL-encoded in any common form, or a sender name. |
Request body (JSON)
| Name | Type | About |
|---|---|---|
assigned_to_user_idrequired | string or null | A user id on this account, or null. |
Responses
- 200Who looks after it now.
- 401Missing, wrong or revoked key.
- 403A member tried to give the thread to someone else.
- 404No such resource in this account.
- 422The request is not valid;
detailslists the fields. - 429Over 20 requests a second for the key (burst 40), 40 a second for all the account's keys together (burst 80), or ten exports or imports a minute. Retry after the Retry-After header.
Mark a conversation read
post/api/v1/conversations/{phone}/read
Parameters
| Name | Type | About |
|---|---|---|
phonepathrequired | string | As for GET /conversations/{phone}. |
Responses
- 200How many texts were marked read.
- 401Missing, wrong or revoked key.
- 404No such resource in this account.
- 422The request is not valid;
detailslists the fields. - 429Over 20 requests a second for the key (burst 40), 40 a second for all the account's keys together (burst 80), or ten exports or imports a minute. Retry after the Retry-After header.
Contacts
Your address book.
List custom field keys
get/api/v1/contacts/fields
The keys of your custom fields, so a text can merge them as {key}. GET /custom-fields gives each with its name and type.
Responses
- 200Field keys, oldest field first.
- 401Missing, wrong or revoked key.
- 404No such resource in this account.
- 422The request is not valid;
detailslists the fields. - 429Over 20 requests a second for the key (burst 40), 40 a second for all the account's keys together (burst 80), or ten exports or imports a minute. Retry after the Retry-After header.
{
"data": [
"booking_ref",
"branch"
],
"meta": null
}Export contacts as CSV
get/api/v1/contacts/export
Every contact (or those matching q or list_id), newest first, with the names of its lists, whether the number is on the opt-out list, and the permission record (consent_source, consent_at, consent_wording). Custom fields are one JSON column (custom) and then one column each, headed by the field key, after updated_at; a date reads YYYY-MM-DD. Written as it is read, so large address books are fine.
Parameters
| Name | Type | About |
|---|---|---|
qquery | string | |
list_idquery | string |
Responses
- 200CSV file.
- 401Missing, wrong or revoked key.
- 404No such resource in this account.
- 422The request is not valid;
detailslists the fields. - 429Over 20 requests a second for the key (burst 40), 40 a second for all the account's keys together (burst 80), or ten exports or imports a minute. Retry after the Retry-After header.
Delete contacts in bulk
post/api/v1/contacts/bulk-delete
Deletes up to 1,000 contacts in one go, all or none. Ids that are not contacts on this account (already deleted, or never there) are counted in not_found and do not stop the rest. Texts to and from the contacts stay in the message log, and they come off every list. Opt-outs are kept.
Request body (JSON)
| Name | Type | About |
|---|---|---|
contact_idsrequired | array of string |
{
"contact_ids": [
"con_01J9Z8X7W6V5T4S3R2Q1P0N9M7",
"con_01J9Z8X7W6V5T4S3R2Q1P0N9M8"
]
}Responses
- 200How many were deleted.
- 401Missing, wrong or revoked key.
- 404No such resource in this account.
- 422The request is not valid;
detailslists the fields. - 429Over 20 requests a second for the key (burst 40), 40 a second for all the account's keys together (burst 80), or ten exports or imports a minute. Retry after the Retry-After header.
{
"data": {
"deleted": 2,
"not_found": 0
},
"meta": null
}List contacts
get/api/v1/contacts
Parameters
| Name | Type | About |
|---|---|---|
limitquery | integer | Items per page, 1 to 100 (default 25). |
cursorquery | string | The |
qquery | string | |
list_idquery | string |
Responses
- 200A page of contacts.
- 401Missing, wrong or revoked key.
- 404No such resource in this account.
- 422The request is not valid;
detailslists the fields. - 429Over 20 requests a second for the key (burst 40), 40 a second for all the account's keys together (burst 80), or ten exports or imports a minute. Retry after the Retry-After header.
Create a contact
post/api/v1/contacts
Request body (JSON)
| Name | Type | About |
|---|---|---|
phonerequired | string | |
first_name | string or null | |
last_name | string or null | |
email | string or null | |
notes | string or null | |
custom | object | Custom field values by key (GET /custom-fields), replacing the contact's map on PATCH; a blank value removes one. A date field takes YYYY-MM-DD or DD/MM/YYYY and is stored as YYYY-MM-DD; a number field takes a number. A key that is not a field yet is added as a text field while the account has fewer than 20. |
consent_source | string or null | |
consent_at | string or null | ISO 8601 or YYYY-MM-DD; the import also reads DD/MM/YYYY. |
consent_wording | string or null |
{
"phone": "07412 000001",
"first_name": "Priya",
"last_name": "Shah"
}Responses
- 201Created.
- 401Missing, wrong or revoked key.
- 404No such resource in this account.
- 409That number is already a contact.
- 422The request is not valid;
detailslists the fields. - 429Over 20 requests a second for the key (burst 40), 40 a second for all the account's keys together (burst 80), or ten exports or imports a minute. Retry after the Retry-After header.
Get a contact
get/api/v1/contacts/{id}
Parameters
| Name | Type | About |
|---|---|---|
idpathrequired | string | The contact id. |
Responses
- 200The contact and its list ids.
- 401Missing, wrong or revoked key.
- 404No such resource in this account.
- 422The request is not valid;
detailslists the fields. - 429Over 20 requests a second for the key (burst 40), 40 a second for all the account's keys together (burst 80), or ten exports or imports a minute. Retry after the Retry-After header.
Update a contact
patch/api/v1/contacts/{id}
Parameters
| Name | Type | About |
|---|---|---|
idpathrequired | string | The contact id. |
Request body (JSON)
| Name | Type | About |
|---|---|---|
phonerequired | string | |
first_name | string or null | |
last_name | string or null | |
email | string or null | |
notes | string or null | |
custom | object | Custom field values by key (GET /custom-fields), replacing the contact's map on PATCH; a blank value removes one. A date field takes YYYY-MM-DD or DD/MM/YYYY and is stored as YYYY-MM-DD; a number field takes a number. A key that is not a field yet is added as a text field while the account has fewer than 20. |
consent_source | string or null | |
consent_at | string or null | ISO 8601 or YYYY-MM-DD; the import also reads DD/MM/YYYY. |
consent_wording | string or null |
Responses
- 200Updated.
- 401Missing, wrong or revoked key.
- 404No such resource in this account.
- 422The request is not valid;
detailslists the fields. - 429Over 20 requests a second for the key (burst 40), 40 a second for all the account's keys together (burst 80), or ten exports or imports a minute. Retry after the Retry-After header.
Delete a contact
delete/api/v1/contacts/{id}
Parameters
| Name | Type | About |
|---|---|---|
idpathrequired | string | The contact id. |
Responses
- 204Deleted.
- 401Missing, wrong or revoked key.
- 404No such resource in this account.
- 422The request is not valid;
detailslists the fields. - 429Over 20 requests a second for the key (burst 40), 40 a second for all the account's keys together (burst 80), or ten exports or imports a minute. Retry after the Retry-After header.
Import contacts
post/api/v1/contacts/import
Upserts up to 20,000 rows by number. Blank fields leave stored values alone.
Request body (JSON)
| Name | Type | About |
|---|---|---|
rowsrequired | array of ContactInput | |
list_id | string or null |
Responses
- 200What happened to each row.
- 401Missing, wrong or revoked key.
- 404No such resource in this account.
- 422The request is not valid;
detailslists the fields. - 429Over 20 requests a second for the key (burst 40), 40 a second for all the account's keys together (burst 80), or ten exports or imports a minute. Retry after the Retry-After header.
Lists
Groups of contacts.
List lists
get/api/v1/lists
Parameters
| Name | Type | About |
|---|---|---|
limitquery | integer | Items per page, 1 to 100 (default 25). |
cursorquery | string | The |
Responses
- 200Lists.
- 401Missing, wrong or revoked key.
- 404No such resource in this account.
- 422The request is not valid;
detailslists the fields. - 429Over 20 requests a second for the key (burst 40), 40 a second for all the account's keys together (burst 80), or ten exports or imports a minute. Retry after the Retry-After header.
Create a list
post/api/v1/lists
Request body (JSON)
| Name | Type | About |
|---|---|---|
namerequired | string | |
description | string or null |
Responses
- 201Created.
- 401Missing, wrong or revoked key.
- 404No such resource in this account.
- 422The request is not valid;
detailslists the fields. - 429Over 20 requests a second for the key (burst 40), 40 a second for all the account's keys together (burst 80), or ten exports or imports a minute. Retry after the Retry-After header.
Get a list
get/api/v1/lists/{id}
Parameters
| Name | Type | About |
|---|---|---|
idpathrequired | string | The list id. |
Responses
- 200The list.
- 401Missing, wrong or revoked key.
- 404No such resource in this account.
- 422The request is not valid;
detailslists the fields. - 429Over 20 requests a second for the key (burst 40), 40 a second for all the account's keys together (burst 80), or ten exports or imports a minute. Retry after the Retry-After header.
Rename a list
patch/api/v1/lists/{id}
Parameters
| Name | Type | About |
|---|---|---|
idpathrequired | string | The list id. |
Request body (JSON)
| Name | Type | About |
|---|---|---|
namerequired | string | |
description | string or null |
Responses
- 200Updated.
- 401Missing, wrong or revoked key.
- 404No such resource in this account.
- 422The request is not valid;
detailslists the fields. - 429Over 20 requests a second for the key (burst 40), 40 a second for all the account's keys together (burst 80), or ten exports or imports a minute. Retry after the Retry-After header.
Delete a list (contacts stay)
delete/api/v1/lists/{id}
Parameters
| Name | Type | About |
|---|---|---|
idpathrequired | string | The list id. |
Responses
- 204Deleted.
- 401Missing, wrong or revoked key.
- 404No such resource in this account.
- 422The request is not valid;
detailslists the fields. - 429Over 20 requests a second for the key (burst 40), 40 a second for all the account's keys together (burst 80), or ten exports or imports a minute. Retry after the Retry-After header.
List members
get/api/v1/lists/{id}/contacts
Parameters
| Name | Type | About |
|---|---|---|
idpathrequired | string | The list id. |
limitquery | integer | Items per page, 1 to 100 (default 25). |
cursorquery | string | The |
Responses
- 200Members.
- 401Missing, wrong or revoked key.
- 404No such resource in this account.
- 422The request is not valid;
detailslists the fields. - 429Over 20 requests a second for the key (burst 40), 40 a second for all the account's keys together (burst 80), or ten exports or imports a minute. Retry after the Retry-After header.
Add members
post/api/v1/lists/{id}/contacts
By contact id or by number (new numbers become contacts).
Parameters
| Name | Type | About |
|---|---|---|
idpathrequired | string | The list id. |
Request body (JSON)
| Name | Type | About |
|---|---|---|
contact_ids | array of string | |
phones | array of string |
Responses
- 200How many were added.
- 401Missing, wrong or revoked key.
- 404No such resource in this account.
- 422The request is not valid;
detailslists the fields. - 429Over 20 requests a second for the key (burst 40), 40 a second for all the account's keys together (burst 80), or ten exports or imports a minute. Retry after the Retry-After header.
Remove a member
delete/api/v1/lists/{id}/contacts/{contactId}
Parameters
| Name | Type | About |
|---|---|---|
idpathrequired | string | The list id. |
contactIdpathrequired | string |
Responses
- 204Removed.
- 401Missing, wrong or revoked key.
- 404No such resource in this account.
- 422The request is not valid;
detailslists the fields. - 429Over 20 requests a second for the key (burst 40), 40 a second for all the account's keys together (burst 80), or ten exports or imports a minute. Retry after the Retry-After header.
Campaigns
One text to a whole list or segment.
A campaign's report
get/api/v1/campaigns/{id}/report
What became of a campaign's texts and what people did after: texts by status, why the ones not delivered were not, link taps, and replies and opt-outs in the 7 days from when it started. Replies and opt-outs count each person once.
Parameters
| Name | Type | About |
|---|---|---|
idpathrequired | string | The campaign id. |
Responses
- 200The report.
- 401Missing, wrong or revoked key.
- 404No such resource in this account.
- 422The request is not valid;
detailslists the fields. - 429Over 20 requests a second for the key (burst 40), 40 a second for all the account's keys together (burst 80), or ten exports or imports a minute. Retry after the Retry-After header.
{
"data": {
"campaign_id": "cmp_01J9Z8X7W6V5T4S3R2Q1P0N9M7",
"campaign_status": "completed",
"started_at": "2026-11-03T10:00:00.000Z",
"texts": 1200,
"by_status": {
"pending_review": 0,
"scheduled": 0,
"queued": 0,
"sending": 0,
"sent": 6,
"delivered": 1171,
"undelivered": 14,
"failed": 4,
"cancelled": 5
},
"failure_reasons": [
{
"error_code": "unreachable",
"status": "undelivered",
"meaning": "The phone was switched off or out of coverage until the network stopped trying.",
"count": 11
},
{
"error_code": "number_refused",
"status": "failed",
"meaning": "The route refused the number: not a valid mobile, blocked, or one no route reaches.",
"count": 4
},
{
"error_code": "network_rejected",
"status": "undelivered",
"meaning": "The network refused the text, for example for a barred or blocked handset.",
"count": 3
}
],
"links": {
"tracked": 1195,
"clicks": 412,
"unique_clickers": 301
},
"replies": 38,
"opt_outs": 9,
"response_window": {
"from": "2026-11-03T10:00:00.000Z",
"to": "2026-11-10T10:00:00.000Z",
"complete": false
}
},
"meta": null
}List campaigns
get/api/v1/campaigns
Parameters
| Name | Type | About |
|---|---|---|
limitquery | integer | Items per page, 1 to 100 (default 25). |
cursorquery | string | The |
series_idquery | string | Only the runs of this recurring campaign. |
Responses
- 200Campaigns with message counts.
- 401Missing, wrong or revoked key.
- 404No such resource in this account.
- 422The request is not valid;
detailslists the fields. - 429Over 20 requests a second for the key (burst 40), 40 a second for all the account's keys together (burst 80), or ten exports or imports a minute. Retry after the Retry-After header.
Create a draft campaign
post/api/v1/campaigns
Request body (JSON)
| Name | Type | About |
|---|---|---|
namerequired | string | |
bodyrequired | string | |
list_id | string or null | |
segment_id | string or null | A segment, worked out when the campaign is sent. |
sender | string or null | |
from | string or null | One of the numbers GET /numbers/from lists, to send from that number (refused with |
append_opt_out | boolean | On unless set to false. |
track_links | boolean | Shorten and track links. The account setting |
Responses
- 201The draft.
- 401Missing, wrong or revoked key.
- 404No such resource in this account.
- 422The request is not valid;
detailslists the fields. - 429Over 20 requests a second for the key (burst 40), 40 a second for all the account's keys together (burst 80), or ten exports or imports a minute. Retry after the Retry-After header.
Get a campaign
get/api/v1/campaigns/{id}
Parameters
| Name | Type | About |
|---|---|---|
idpathrequired | string | The campaign id. |
Responses
- 200The campaign.
- 401Missing, wrong or revoked key.
- 404No such resource in this account.
- 422The request is not valid;
detailslists the fields. - 429Over 20 requests a second for the key (burst 40), 40 a second for all the account's keys together (burst 80), or ten exports or imports a minute. Retry after the Retry-After header.
Edit a draft
patch/api/v1/campaigns/{id}
Parameters
| Name | Type | About |
|---|---|---|
idpathrequired | string | The campaign id. |
Request body (JSON)
| Name | Type | About |
|---|---|---|
namerequired | string | |
bodyrequired | string | |
list_id | string or null | |
segment_id | string or null | A segment, worked out when the campaign is sent. |
sender | string or null | |
from | string or null | One of the numbers GET /numbers/from lists, to send from that number (refused with |
append_opt_out | boolean | On unless set to false. |
track_links | boolean | Shorten and track links. The account setting |
Responses
- 200Updated.
- 401Missing, wrong or revoked key.
- 404No such resource in this account.
- 422The request is not valid;
detailslists the fields. - 429Over 20 requests a second for the key (burst 40), 40 a second for all the account's keys together (burst 80), or ten exports or imports a minute. Retry after the Retry-After header.
Delete a draft
delete/api/v1/campaigns/{id}
Parameters
| Name | Type | About |
|---|---|---|
idpathrequired | string | The campaign id. |
Responses
- 204Deleted.
- 401Missing, wrong or revoked key.
- 404No such resource in this account.
- 422The request is not valid;
detailslists the fields. - 429Over 20 requests a second for the key (burst 40), 40 a second for all the account's keys together (burst 80), or ten exports or imports a minute. Retry after the Retry-After header.
Send or schedule a draft
post/api/v1/campaigns/{id}/send
Parameters
| Name | Type | About |
|---|---|---|
idpathrequired | string | The campaign id. |
Request body (JSON)
| Name | Type | About |
|---|---|---|
schedule_at | date-time or null | |
ignore_quiet_hours | boolean | Send inside the account quiet hours (Europe/London, default 21:00 to 09:00) instead of waiting. Without it a launch inside the window comes back |
Responses
- 200Launched.
- 401Missing, wrong or revoked key.
- 402Not enough credit.
details.neededanddetails.balancesay by how much. - 404No such resource in this account.
- 409Already launched.
- 422The request is not valid;
detailslists the fields. - 429Over 20 requests a second for the key (burst 40), 40 a second for all the account's keys together (burst 80), or ten exports or imports a minute. Retry after the Retry-After header.
Cancel a scheduled or sending campaign
post/api/v1/campaigns/{id}/cancel
Texts not yet taken by a route are cancelled and refunded.
Parameters
| Name | Type | About |
|---|---|---|
idpathrequired | string | The campaign id. |
Responses
- 200Cancelled.
- 401Missing, wrong or revoked key.
- 404No such resource in this account.
- 422The request is not valid;
detailslists the fields. - 429Over 20 requests a second for the key (burst 40), 40 a second for all the account's keys together (burst 80), or ten exports or imports a minute. Retry after the Retry-After header.
Templates
Saved texts.
List templates
get/api/v1/templates
Parameters
| Name | Type | About |
|---|---|---|
limitquery | integer | Items per page, 1 to 100 (default 25). |
cursorquery | string | The |
qquery | string |
Responses
- 200Templates.
- 401Missing, wrong or revoked key.
- 404No such resource in this account.
- 422The request is not valid;
detailslists the fields. - 429Over 20 requests a second for the key (burst 40), 40 a second for all the account's keys together (burst 80), or ten exports or imports a minute. Retry after the Retry-After header.
Create a template
post/api/v1/templates
Request body (JSON)
| Name | Type | About |
|---|---|---|
namerequired | string | |
bodyrequired | string |
Responses
- 201Created.
- 401Missing, wrong or revoked key.
- 404No such resource in this account.
- 422The request is not valid;
detailslists the fields. - 429Over 20 requests a second for the key (burst 40), 40 a second for all the account's keys together (burst 80), or ten exports or imports a minute. Retry after the Retry-After header.
Get a template
get/api/v1/templates/{id}
Parameters
| Name | Type | About |
|---|---|---|
idpathrequired | string | The template id. |
Responses
- 200The template.
- 401Missing, wrong or revoked key.
- 404No such resource in this account.
- 422The request is not valid;
detailslists the fields. - 429Over 20 requests a second for the key (burst 40), 40 a second for all the account's keys together (burst 80), or ten exports or imports a minute. Retry after the Retry-After header.
Update a template
patch/api/v1/templates/{id}
Parameters
| Name | Type | About |
|---|---|---|
idpathrequired | string | The template id. |
Request body (JSON)
| Name | Type | About |
|---|---|---|
namerequired | string | |
bodyrequired | string |
Responses
- 200Updated.
- 401Missing, wrong or revoked key.
- 404No such resource in this account.
- 422The request is not valid;
detailslists the fields. - 429Over 20 requests a second for the key (burst 40), 40 a second for all the account's keys together (burst 80), or ten exports or imports a minute. Retry after the Retry-After header.
Delete a template
delete/api/v1/templates/{id}
Parameters
| Name | Type | About |
|---|---|---|
idpathrequired | string | The template id. |
Responses
- 204Deleted.
- 401Missing, wrong or revoked key.
- 404No such resource in this account.
- 422The request is not valid;
detailslists the fields. - 429Over 20 requests a second for the key (burst 40), 40 a second for all the account's keys together (burst 80), or ten exports or imports a minute. Retry after the Retry-After header.
Opt-outs
Numbers that must not be texted.
Import an opt-out list
post/api/v1/opt-outs/import
Adds up to 20,000 numbers in one go, for example a suppression list from another system. Send the rows of a parsed CSV ({ "rows": [{ "phone": "...", "note": "..." }] }, as the contacts import does), { "phones": [...] }, or a plain array of numbers. Numbers in any common format are normalised; ones that cannot be read are listed in invalid and not stored. Numbers already on the list keep their record, so importing the same file twice changes nothing. Texts not yet sent to an added number are cancelled and refunded.
{
"rows": [
{
"phone": "07412 000001",
"note": "Unsubscribed in our old system"
},
{
"phone": "+447412000002"
}
]
}Responses
- 200What happened to the numbers.
- 401Missing, wrong or revoked key.
- 404No such resource in this account.
- 422The request is not valid;
detailslists the fields. - 429Over 20 requests a second for the key (burst 40), 40 a second for all the account's keys together (burst 80), or ten exports or imports a minute. Retry after the Retry-After header.
{
"data": {
"added": 1,
"already_opted_out": 1,
"invalid": [
{
"row": 3,
"phone": "12345"
}
]
},
"meta": null
}Numbers taken off the opt-out list
get/api/v1/opt-outs/removals
The record kept each time a number is taken off the list: when, by whom (a login or an API key), the reason given, and how the number had opted out. Newest first.
Parameters
| Name | Type | About |
|---|---|---|
limitquery | integer | 1 to 100 (default 25). |
cursorquery | string | The |
Responses
- 200Removals.
- 401Missing, wrong or revoked key.
- 404No such resource in this account.
- 422The request is not valid;
detailslists the fields. - 429Over 20 requests a second for the key (burst 40), 40 a second for all the account's keys together (burst 80), or ten exports or imports a minute. Retry after the Retry-After header.
{
"data": [
{
"id": 1042,
"phone": "+447412000001",
"reason": "Asked in the shop to get offers again",
"opted_out_at": "2026-09-02T18:20:00.000Z",
"opt_out_source": "keyword",
"opt_out_note": "Texted \"STOP\"",
"removed_by": {
"name": "Priya Shah",
"email": "priya@example.com"
},
"api_key": null,
"removed_at": "2026-10-16T09:00:00.000Z"
}
],
"meta": {
"next_cursor": null
}
}List opt-outs
get/api/v1/opt-outs
Newest first, 25 to a page; pass meta.next_cursor back as cursor. since returns only opt-outs added from that time on, which suits a regular sync. Paging with offset (50 to a page by default, with meta.total) still works for now; new code should use the cursor.
Parameters
| Name | Type | About |
|---|---|---|
limitquery | integer | Items per page, 1 to 100 (default 25). |
cursorquery | string | The |
sincequery | date-time | Only opt-outs added at or after this time. |
qquery | string | |
offsetquery | integer | The older way to page. Use |
Responses
- 200Opt-outs.
- 401Missing, wrong or revoked key.
- 404No such resource in this account.
- 422The request is not valid;
detailslists the fields. - 429Over 20 requests a second for the key (burst 40), 40 a second for all the account's keys together (burst 80), or ten exports or imports a minute. Retry after the Retry-After header.
Add an opt-out
post/api/v1/opt-outs
Request body (JSON)
| Name | Type | About |
|---|---|---|
phonerequired | string | |
note | string or null |
Responses
- 200Already opted out.
- 201Added.
- 401Missing, wrong or revoked key.
- 404No such resource in this account.
- 422The request is not valid;
detailslists the fields. - 429Over 20 requests a second for the key (burst 40), 40 a second for all the account's keys together (burst 80), or ten exports or imports a minute. Retry after the Retry-After header.
Remove an opt-out
delete/api/v1/opt-outs/{phone}
Only when the person has asked to hear from you again. Give the reason as { "reason": "..." } or ?reason=; it is kept with who removed the number (see GET /opt-outs/removals). From the dashboard, only an owner or admin can do this.
Parameters
| Name | Type | About |
|---|---|---|
phonepathrequired | string | |
reasonquery | string | Instead of the body. |
Request body (JSON)
| Name | Type | About |
|---|---|---|
reason | string |
{
"reason": "Asked in the shop to get offers again"
}Responses
- 204Removed.
- 401Missing, wrong or revoked key.
- 404No such resource in this account.
- 422No reason given (
reason_required), or the request is not valid. - 429Over 20 requests a second for the key (burst 40), 40 a second for all the account's keys together (burst 80), or ten exports or imports a minute. Retry after the Retry-After header.
Sender names
Alphanumeric senders (approval needed).
List sender names
get/api/v1/sender-ids
Responses
- 200Sender names and their review state.
- 401Missing, wrong or revoked key.
- 404No such resource in this account.
- 422The request is not valid;
detailslists the fields. - 429Over 20 requests a second for the key (burst 40), 40 a second for all the account's keys together (burst 80), or ten exports or imports a minute. Retry after the Retry-After header.
Ask for a sender name
post/api/v1/sender-ids
The networks also need the business behind the name: send it with PUT /sender-ids/{id}/details.
Request body (JSON)
| Name | Type | About |
|---|---|---|
valuerequired | string | |
purpose | string |
Responses
- 201Waiting for review.
- 401Missing, wrong or revoked key.
- 404No such resource in this account.
- 422The request is not valid;
detailslists the fields. - 429Over 20 requests a second for the key (burst 40), 40 a second for all the account's keys together (burst 80), or ten exports or imports a minute. Retry after the Retry-After header.
Withdraw a sender name
delete/api/v1/sender-ids/{id}
Takes back a request, or a name you no longer want. Texts already sent under it are not affected.
Parameters
| Name | Type | About |
|---|---|---|
idpathrequired | string | The sender name id. |
Responses
- 204Withdrawn.
- 401Missing, wrong or revoked key.
- 404No such resource in this account.
- 422The request is not valid;
detailslists the fields. - 429Over 20 requests a second for the key (burst 40), 40 a second for all the account's keys together (burst 80), or ten exports or imports a minute. Retry after the Retry-After header.
Get the business details behind a sender name
get/api/v1/sender-ids/{id}/details
Parameters
| Name | Type | About |
|---|---|---|
idpathrequired | string | The sender name id. |
Responses
- 200The details (null until given) and the files on record, without their content.
- 401Missing, wrong or revoked key.
- 404No such resource in this account.
- 422The request is not valid;
detailslists the fields. - 429Over 20 requests a second for the key (burst 40), 40 a second for all the account's keys together (burst 80), or ten exports or imports a minute. Retry after the Retry-After header.
Give the business details behind a sender name
put/api/v1/sender-ids/{id}/details
The networks clear a sender name only once they know who it belongs to. This saves the business details and signs a letter of authority in the representative's name, replacing anything given before.
signature must repeat rep_name, and authorise must be true. Give a website, evidence or an evidence file. When brand_owner is client, include an authorisation file (the brand owner's permission letter or contract). Files are PDF, PNG or JPEG, up to 4 MB each and 5 per name, sent as base64.
Parameters
| Name | Type | About |
|---|---|---|
idpathrequired | string | The sender name id. |
Request body (JSON)
| Name | Type | About |
|---|---|---|
brand_owner | one of own, client |
|
business_namerequired | string | |
company_number | string or null | Companies House number; leave out for a business that is not a registered company. |
website | string or null | |
addressrequired | string | |
phonerequired | string | |
evidence | string or null | Links or notes showing the business uses the name. |
rep_namerequired | string | The authorised representative, who signs the letter of authority. |
rep_rolerequired | string | |
rep_emailrequired | string | |
signaturerequired | string | The representative's full name again. |
authoriserequired | boolean | |
documents | array of object | |
remove_document_ids | array of string | Files already on record to drop. |
Responses
- 200Saved.
- 401Missing, wrong or revoked key.
- 404No such resource in this account.
- 422The request is not valid;
detailslists the fields. - 429Over 20 requests a second for the key (burst 40), 40 a second for all the account's keys together (burst 80), or ten exports or imports a minute. Retry after the Retry-After header.
Webhooks
Endpoints that receive events.
List webhooks
get/api/v1/webhooks
Responses
- 200Webhooks.
- 401Missing, wrong or revoked key.
- 404No such resource in this account.
- 422The request is not valid;
detailslists the fields. - 429Over 20 requests a second for the key (burst 40), 40 a second for all the account's keys together (burst 80), or ten exports or imports a minute. Retry after the Retry-After header.
Create a webhook
post/api/v1/webhooks
The response includes secret, shown only this once. One created with a test key is test_only: it receives events about test texts only, and test keys see no other webhooks.
Request body (JSON)
| Name | Type | About |
|---|---|---|
url | string | |
events | array of one of message.sent, message.delivered, message.failed, message.cancelled, message.received, opt_out.created, opt_out.deleted, link.clicked | |
description | string or null | |
enabled | boolean | |
rotate_secret | boolean |
{
"url": "https://example.com/connect/events",
"events": [
"message.delivered",
"message.received"
]
}Responses
- 201Created.
- 401Missing, wrong or revoked key.
- 404No such resource in this account.
- 422The request is not valid;
detailslists the fields. - 429Over 20 requests a second for the key (burst 40), 40 a second for all the account's keys together (burst 80), or ten exports or imports a minute. Retry after the Retry-After header.
Get a webhook
get/api/v1/webhooks/{id}
Parameters
| Name | Type | About |
|---|---|---|
idpathrequired | string | The webhook id. |
Responses
- 200The webhook.
- 401Missing, wrong or revoked key.
- 404No such resource in this account.
- 422The request is not valid;
detailslists the fields. - 429Over 20 requests a second for the key (burst 40), 40 a second for all the account's keys together (burst 80), or ten exports or imports a minute. Retry after the Retry-After header.
Update a webhook
patch/api/v1/webhooks/{id}
rotate_secret: true issues a new secret, returned once. For the next 24 hours deliveries are signed with both secrets (see previous_secret_expires_at), so you can switch over without dropping an event.
Parameters
| Name | Type | About |
|---|---|---|
idpathrequired | string | The webhook id. |
Request body (JSON)
| Name | Type | About |
|---|---|---|
url | string | |
events | array of one of message.sent, message.delivered, message.failed, message.cancelled, message.received, opt_out.created, opt_out.deleted, link.clicked | |
description | string or null | |
enabled | boolean | |
rotate_secret | boolean |
Responses
- 200Updated.
- 401Missing, wrong or revoked key.
- 404No such resource in this account.
- 422The request is not valid;
detailslists the fields. - 429Over 20 requests a second for the key (burst 40), 40 a second for all the account's keys together (burst 80), or ten exports or imports a minute. Retry after the Retry-After header.
Delete a webhook
delete/api/v1/webhooks/{id}
Parameters
| Name | Type | About |
|---|---|---|
idpathrequired | string | The webhook id. |
Responses
- 204Deleted.
- 401Missing, wrong or revoked key.
- 404No such resource in this account.
- 422The request is not valid;
detailslists the fields. - 429Over 20 requests a second for the key (burst 40), 40 a second for all the account's keys together (burst 80), or ten exports or imports a minute. Retry after the Retry-After header.
Send a test event now
post/api/v1/webhooks/{id}/test
Parameters
| Name | Type | About |
|---|---|---|
idpathrequired | string | The webhook id. |
Responses
- 200What your endpoint answered.
- 401Missing, wrong or revoked key.
- 404No such resource in this account.
- 422The request is not valid;
detailslists the fields. - 429Over 20 requests a second for the key (burst 40), 40 a second for all the account's keys together (burst 80), or ten exports or imports a minute. Retry after the Retry-After header.
Recent deliveries
get/api/v1/webhooks/{id}/deliveries
Parameters
| Name | Type | About |
|---|---|---|
idpathrequired | string | The webhook id. |
limitquery | integer | Items per page, 1 to 100 (default 25). |
cursorquery | string | The |
Responses
- 200Deliveries, newest first.
- 401Missing, wrong or revoked key.
- 404No such resource in this account.
- 422The request is not valid;
detailslists the fields. - 429Over 20 requests a second for the key (burst 40), 40 a second for all the account's keys together (burst 80), or ten exports or imports a minute. Retry after the Retry-After header.
Send a delivery again
post/api/v1/webhooks/{id}/deliveries/{delivery_id}/retry
Puts a failed (or still waiting) delivery back in the queue to go within a few seconds, with a fresh set of retries. Use it after fixing your endpoint, or after turning a switched-off webhook back on. The event id and X-Connect-Delivery stay the same, so your duplicate check still works.
Parameters
| Name | Type | About |
|---|---|---|
idpathrequired | string | The webhook id. |
delivery_idpathrequired | string | The delivery id (whd_...). |
Responses
- 200Queued.
- 401Missing, wrong or revoked key.
- 404No such resource in this account.
- 409The webhook is switched off (
webhook_disabled), or your endpoint already accepted this delivery (already_delivered). - 422The request is not valid;
detailslists the fields. - 429Over 20 requests a second for the key (burst 40), 40 a second for all the account's keys together (burst 80), or ten exports or imports a minute. Retry after the Retry-After header.
Account
Balance and usage.
List dedicated numbers
get/api/v1/numbers
The UK mobile numbers dedicated to the account. Texts on the SIM route go from one of them and every reply to it belongs to the account. Each is rented monthly in credits (rental_credits, taken every 30 days from rental_charged_at). Ask for one, or release one, from the Numbers page in the dashboard.
Responses
- 200Dedicated numbers.
- 401Missing, wrong or revoked key.
- 404No such resource in this account.
- 422The request is not valid;
detailslists the fields. - 429Over 20 requests a second for the key (burst 40), 40 a second for all the account's keys together (burst 80), or ten exports or imports a minute. Retry after the Retry-After header.
{
"data": [
{
"id": "gw_01J9Z8X7W6V5T4S3R2Q1P0N9M8",
"phone_number": "+447700900321",
"online": true,
"rental_credits": 250,
"monthly_credits": 250,
"rental_charged_at": "2026-10-16T09:00:00.000Z",
"assigned_at": "2026-10-16T09:00:00.000Z"
}
],
"meta": null
}List the numbers you can send from
get/api/v1/numbers/from
Every number the account can pass as from on POST /messages. A sim number is a SIM gateway: a text sent from it waits for that gateway while it is offline. An aggregator number is always available.
Responses
- 200Numbers to send from.
- 401Missing, wrong or revoked key.
- 404No such resource in this account.
- 422The request is not valid;
detailslists the fields. - 429Over 20 requests a second for the key (burst 40), 40 a second for all the account's keys together (burst 80), or ten exports or imports a minute. Retry after the Retry-After header.
{
"data": [
{
"number": "+447700900321",
"kind": "sim",
"online": true
},
{
"number": "+447700900654",
"kind": "aggregator",
"online": true
}
],
"meta": null
}Credit balance
get/api/v1/balance
Responses
- 200Balance.
- 401Missing, wrong or revoked key.
- 404No such resource in this account.
- 422The request is not valid;
detailslists the fields. - 429Over 20 requests a second for the key (burst 40), 40 a second for all the account's keys together (burst 80), or ten exports or imports a minute. Retry after the Retry-After header.
{
"data": {
"credits": 1240,
"account_status": "active"
},
"meta": null
}Totals for a period
get/api/v1/stats/summary
Parameters
| Name | Type | About |
|---|---|---|
daysquery | integer | |
fromquery | date-time | |
toquery | date-time |
Responses
- 200Sent, delivered, received and credits, with the change on the period before, and
waiting: texts not sent yet right now (awaiting review, scheduled, queued, sending), whatever the period. - 401Missing, wrong or revoked key.
- 404No such resource in this account.
- 422The request is not valid;
detailslists the fields. - 429Over 20 requests a second for the key (burst 40), 40 a second for all the account's keys together (burst 80), or ten exports or imports a minute. Retry after the Retry-After header.
Daily counts for a period
get/api/v1/stats/timeseries
Parameters
| Name | Type | About |
|---|---|---|
daysquery | integer |
Responses
- 200One row per day.
- 401Missing, wrong or revoked key.
- 404No such resource in this account.
- 422The request is not valid;
detailslists the fields. - 429Over 20 requests a second for the key (burst 40), 40 a second for all the account's keys together (burst 80), or ten exports or imports a minute. Retry after the Retry-After header.
Custom fields
Up to 20 extra fields on every contact, each text, date or number, usable as merge fields.
List custom fields
get/api/v1/custom-fields
Oldest first; at most 20, so never paged. Keys contacts already held before the list existed are added as text fields the first time it is read.
Responses
- 200The fields.
- 401Missing, wrong or revoked key.
- 404No such resource in this account.
- 422The request is not valid;
detailslists the fields. - 429Over 20 requests a second for the key (burst 40), 40 a second for all the account's keys together (burst 80), or ten exports or imports a minute. Retry after the Retry-After header.
Add a custom field
post/api/v1/custom-fields
Up to 20 an account. The key is made from the label when left out ("Renewal date" becomes renewal_date). A contact sent through the API with a key that is not a field yet gets it added as a text field while there is room.
Request body (JSON)
| Name | Type | About |
|---|---|---|
labelrequired | string | |
key | string or null | |
type | one of text, date, number |
{
"label": "Birthday",
"type": "date"
}Responses
- 201Added.
- 401Missing, wrong or revoked key.
- 404No such resource in this account.
- 409
field_exists: that key is taken. - 422The request is not valid;
detailslists the fields. - 429Over 20 requests a second for the key (burst 40), 40 a second for all the account's keys together (burst 80), or ten exports or imports a minute. Retry after the Retry-After header.
Get a custom field
get/api/v1/custom-fields/{id}
Parameters
| Name | Type | About |
|---|---|---|
idpathrequired | string | The custom field id. |
Responses
- 200The field.
- 401Missing, wrong or revoked key.
- 404No such resource in this account.
- 422The request is not valid;
detailslists the fields. - 429Over 20 requests a second for the key (burst 40), 40 a second for all the account's keys together (burst 80), or ten exports or imports a minute. Retry after the Retry-After header.
Rename a custom field
patch/api/v1/custom-fields/{id}
Only the label changes. The key, which texts use, and the type stay as they are.
Parameters
| Name | Type | About |
|---|---|---|
idpathrequired | string | The custom field id. |
Request body (JSON)
| Name | Type | About |
|---|---|---|
labelrequired | string |
Responses
- 200Renamed.
- 401Missing, wrong or revoked key.
- 404No such resource in this account.
- 422The request is not valid;
detailslists the fields. - 429Over 20 requests a second for the key (burst 40), 40 a second for all the account's keys together (burst 80), or ten exports or imports a minute. Retry after the Retry-After header.
Delete a custom field
delete/api/v1/custom-fields/{id}
Removes the field and its value from every contact. Refused while a segment or reminder uses it.
Parameters
| Name | Type | About |
|---|---|---|
idpathrequired | string | The custom field id. |
Responses
- 204Deleted.
- 401Missing, wrong or revoked key.
- 404No such resource in this account.
- 409
in_use: a segment or reminder still uses it. - 422The request is not valid;
detailslists the fields. - 429Over 20 requests a second for the key (burst 40), 40 a second for all the account's keys together (burst 80), or ten exports or imports a minute. Retry after the Retry-After header.
Segments
Saved filters that work as a dynamic audience for campaigns and sends.
List segments
get/api/v1/segments
Parameters
| Name | Type | About |
|---|---|---|
limitquery | integer | Items per page, 1 to 100 (default 25). |
cursorquery | string | The |
Responses
- 200Segments.
- 401Missing, wrong or revoked key.
- 404No such resource in this account.
- 422The request is not valid;
detailslists the fields. - 429Over 20 requests a second for the key (burst 40), 40 a second for all the account's keys together (burst 80), or ten exports or imports a minute. Retry after the Retry-After header.
Create a segment
post/api/v1/segments
Request body (JSON)
| Name | Type | About |
|---|---|---|
namerequired | string | |
match | one of all, any | People who match all of the conditions (the default), or any one of them. |
conditionsrequired | array of object or object or object or object or object or object | No conditions matches every contact you can text. |
{
"name": "Birthdays this week",
"match": "all",
"conditions": [
{
"type": "field",
"field": "birthday",
"op": "within_days",
"days": 7,
"every_year": true
},
{
"type": "list",
"op": "in",
"list_id": "lst_01J9Z8X7W6V5T4S3R2Q1P0N9M7"
}
]
}Responses
- 201Created.
- 401Missing, wrong or revoked key.
- 404No such resource in this account.
- 422The request is not valid;
detailslists the fields. - 429Over 20 requests a second for the key (burst 40), 40 a second for all the account's keys together (burst 80), or ten exports or imports a minute. Retry after the Retry-After header.
Preview conditions
post/api/v1/segments/preview
Checks conditions without saving them: how many contacts they match now, and the ten newest of them.
Request body (JSON)
| Name | Type | About |
|---|---|---|
match | one of all, any | People who match all of the conditions (the default), or any one of them. |
conditionsrequired | array of object or object or object or object or object or object | No conditions matches every contact you can text. |
Responses
- 200The count and a sample.
- 401Missing, wrong or revoked key.
- 404No such resource in this account.
- 422The request is not valid;
detailslists the fields. - 429Over 20 requests a second for the key (burst 40), 40 a second for all the account's keys together (burst 80), or ten exports or imports a minute. Retry after the Retry-After header.
Get a segment
get/api/v1/segments/{id}
Parameters
| Name | Type | About |
|---|---|---|
idpathrequired | string | The segment id. |
Responses
- 200The segment.
- 401Missing, wrong or revoked key.
- 404No such resource in this account.
- 422The request is not valid;
detailslists the fields. - 429Over 20 requests a second for the key (burst 40), 40 a second for all the account's keys together (burst 80), or ten exports or imports a minute. Retry after the Retry-After header.
Change a segment
patch/api/v1/segments/{id}
Parameters
| Name | Type | About |
|---|---|---|
idpathrequired | string | The segment id. |
Request body (JSON)
| Name | Type | About |
|---|---|---|
name | string | |
match | one of all, any | People who match all of the conditions (the default), or any one of them. |
conditions | array of object or object or object or object or object or object | No conditions matches every contact you can text. |
Responses
- 200Changed.
- 401Missing, wrong or revoked key.
- 404No such resource in this account.
- 422The request is not valid;
detailslists the fields. - 429Over 20 requests a second for the key (burst 40), 40 a second for all the account's keys together (burst 80), or ten exports or imports a minute. Retry after the Retry-After header.
Delete a segment
delete/api/v1/segments/{id}
Refused while a recurring campaign that has not ended, or a reminder, sends to it. A draft campaign just loses its segment.
Parameters
| Name | Type | About |
|---|---|---|
idpathrequired | string | The segment id. |
Responses
- 204Deleted.
- 401Missing, wrong or revoked key.
- 404No such resource in this account.
- 409
in_use: a segment or reminder still uses it. - 422The request is not valid;
detailslists the fields. - 429Over 20 requests a second for the key (burst 40), 40 a second for all the account's keys together (burst 80), or ten exports or imports a minute. Retry after the Retry-After header.
Count a segment
get/api/v1/segments/{id}/count
How many contacts are in it right now.
Parameters
| Name | Type | About |
|---|---|---|
idpathrequired | string | The segment id. |
Responses
- 200The count.
- 401Missing, wrong or revoked key.
- 404No such resource in this account.
- 422The request is not valid;
detailslists the fields. - 429Over 20 requests a second for the key (burst 40), 40 a second for all the account's keys together (burst 80), or ten exports or imports a minute. Retry after the Retry-After header.
A segment's contacts
get/api/v1/segments/{id}/contacts
As it stands now, newest first.
Parameters
| Name | Type | About |
|---|---|---|
idpathrequired | string | The segment id. |
limitquery | integer | Items per page, 1 to 100 (default 25). |
cursorquery | string | The |
Responses
- 200Contacts.
- 401Missing, wrong or revoked key.
- 404No such resource in this account.
- 422The request is not valid;
detailslists the fields. - 429Over 20 requests a second for the key (burst 40), 40 a second for all the account's keys together (burst 80), or ten exports or imports a minute. Retry after the Retry-After header.
Recurring campaigns
A campaign that sends again weekly or monthly, one run per slot.
List recurring campaigns
get/api/v1/campaign-series
GET /campaigns?series_id= lists the runs of one.
Parameters
| Name | Type | About |
|---|---|---|
limitquery | integer | Items per page, 1 to 100 (default 25). |
cursorquery | string | The |
statusquery | string | Comma-separated, for example active,paused. |
Responses
- 200Recurring campaigns.
- 401Missing, wrong or revoked key.
- 404No such resource in this account.
- 422The request is not valid;
detailslists the fields. - 429Over 20 requests a second for the key (burst 40), 40 a second for all the account's keys together (burst 80), or ten exports or imports a minute. Retry after the Retry-After header.
Start a recurring campaign
post/api/v1/campaign-series
The first run goes at the first slot after now.
Request body (JSON)
| Name | Type | About |
|---|---|---|
namerequired | string | |
bodyrequired | string | |
list_id | string or null | A list to send to. Give this or |
segment_id | string or null | A segment to send to, worked out at each run. |
sender | string or null | An approved sender name. Not with |
from | string or null | One of the numbers GET /numbers/from lists. Not with |
append_opt_out | boolean | On unless set to false. |
track_links | boolean | The account setting |
repeatrequired | one of weekly, monthly | |
weekdays | array of integer | Weekly: 1 for Monday to 7 for Sunday. |
month_day | integer or null | Monthly: the day of the month. In a shorter month the run goes on its last day. |
timerequired | string | HH:MM, 24-hour, UK time. |
ends_on | string or null | The last day a run may go. Leave out to run on. |
max_runs | integer or null | Stop after this many runs. Leave out to run on. |
{
"name": "Friday specials",
"body": "This weekend at the Crown: {first_name}, show this text for a free dessert.",
"list_id": "lst_01J9Z8X7W6V5T4S3R2Q1P0N9M7",
"repeat": "weekly",
"weekdays": [
5
],
"time": "11:00"
}Responses
- 201Started.
- 401Missing, wrong or revoked key.
- 404No such resource in this account.
- 422The request is not valid;
detailslists the fields. - 429Over 20 requests a second for the key (burst 40), 40 a second for all the account's keys together (burst 80), or ten exports or imports a minute. Retry after the Retry-After header.
Get a recurring campaign
get/api/v1/campaign-series/{id}
Parameters
| Name | Type | About |
|---|---|---|
idpathrequired | string | The recurring campaign id. |
Responses
- 200It.
- 401Missing, wrong or revoked key.
- 404No such resource in this account.
- 422The request is not valid;
detailslists the fields. - 429Over 20 requests a second for the key (burst 40), 40 a second for all the account's keys together (burst 80), or ten exports or imports a minute. Retry after the Retry-After header.
Change a recurring campaign
patch/api/v1/campaign-series/{id}
For one that has not ended. A new schedule counts from now; runs already made keep their own text.
Parameters
| Name | Type | About |
|---|---|---|
idpathrequired | string | The recurring campaign id. |
Request body (JSON)
| Name | Type | About |
|---|---|---|
name | string | |
body | string | |
list_id | string or null | A list to send to. Give this or |
segment_id | string or null | A segment to send to, worked out at each run. |
sender | string or null | An approved sender name. Not with |
from | string or null | One of the numbers GET /numbers/from lists. Not with |
append_opt_out | boolean | On unless set to false. |
track_links | boolean | The account setting |
repeat | one of weekly, monthly | |
weekdays | array of integer | Weekly: 1 for Monday to 7 for Sunday. |
month_day | integer or null | Monthly: the day of the month. In a shorter month the run goes on its last day. |
time | string | HH:MM, 24-hour, UK time. |
ends_on | string or null | The last day a run may go. Leave out to run on. |
max_runs | integer or null | Stop after this many runs. Leave out to run on. |
Responses
- 200Changed.
- 401Missing, wrong or revoked key.
- 404No such resource in this account.
- 409
series_ended: the series has been stopped or has finished. - 422The request is not valid;
detailslists the fields. - 429Over 20 requests a second for the key (burst 40), 40 a second for all the account's keys together (burst 80), or ten exports or imports a minute. Retry after the Retry-After header.
Pause
post/api/v1/campaign-series/{id}/pause
No runs are made until it is resumed.
Parameters
| Name | Type | About |
|---|---|---|
idpathrequired | string | The recurring campaign id. |
Responses
- 200Paused.
- 401Missing, wrong or revoked key.
- 404No such resource in this account.
- 409
series_ended: the series has been stopped or has finished. - 422The request is not valid;
detailslists the fields. - 429Over 20 requests a second for the key (burst 40), 40 a second for all the account's keys together (burst 80), or ten exports or imports a minute. Retry after the Retry-After header.
Resume
post/api/v1/campaign-series/{id}/resume
Carries on from the next slot after now. Runs missed while it was paused are not sent.
Parameters
| Name | Type | About |
|---|---|---|
idpathrequired | string | The recurring campaign id. |
Responses
- 200Resumed.
- 401Missing, wrong or revoked key.
- 404No such resource in this account.
- 409
series_ended: the series has been stopped or has finished. - 422The request is not valid;
detailslists the fields. - 429Over 20 requests a second for the key (burst 40), 40 a second for all the account's keys together (burst 80), or ten exports or imports a minute. Retry after the Retry-After header.
Stop for good
post/api/v1/campaign-series/{id}/stop
Runs already made carry on; cancel one with POST /campaigns/{id}/cancel.
Parameters
| Name | Type | About |
|---|---|---|
idpathrequired | string | The recurring campaign id. |
Responses
- 200Stopped.
- 401Missing, wrong or revoked key.
- 404No such resource in this account.
- 409
series_ended: the series has been stopped or has finished. - 422The request is not valid;
detailslists the fields. - 429Over 20 requests a second for the key (burst 40), 40 a second for all the account's keys together (burst 80), or ten exports or imports a minute. Retry after the Retry-After header.
Reminders
Texts tied to a date on each contact, such as a birthday or renewal date.
List reminders
get/api/v1/automations
Parameters
| Name | Type | About |
|---|---|---|
limitquery | integer | Items per page, 1 to 100 (default 25). |
cursorquery | string | The |
Responses
- 200Reminders.
- 401Missing, wrong or revoked key.
- 404No such resource in this account.
- 422The request is not valid;
detailslists the fields. - 429Over 20 requests a second for the key (burst 40), 40 a second for all the account's keys together (burst 80), or ten exports or imports a minute. Retry after the Retry-After header.
Create a reminder
post/api/v1/automations
One made after today's time first runs tomorrow.
Request body (JSON)
| Name | Type | About |
|---|---|---|
namerequired | string | |
body | string or null | The text. Merge fields, including custom fields, are filled from each contact; a date field reads as 14 March 2026. |
template_id | string or null | A template whose wording at the time of each run is sent instead of |
field_keyrequired | string | A custom field of type date. |
direction | one of before, on, after | |
offset_days | integer | Days before or after the date; 0 with |
time | string | HH:MM, 24-hour, UK time. |
every_year | boolean | Match the day and month only, for birthdays and anniversaries. |
audience | one of all, list, segment | Every contact, one list or one segment. |
list_id | string or null | |
segment_id | string or null | |
sender | string or null | An approved sender name. Not with |
from | string or null | One of the numbers GET /numbers/from lists. Not with |
append_opt_out | boolean | On unless set to false. Marketing texts need it (PECR). |
enabled | boolean |
{
"name": "Birthday treat",
"body": "Happy birthday {first_name}! Your free coffee is waiting this week.",
"field_key": "birthday",
"direction": "on",
"time": "10:00",
"every_year": true,
"audience": "all"
}Responses
- 201Created.
- 401Missing, wrong or revoked key.
- 404No such resource in this account.
- 422The request is not valid;
detailslists the fields. - 429Over 20 requests a second for the key (burst 40), 40 a second for all the account's keys together (burst 80), or ten exports or imports a minute. Retry after the Retry-After header.
Get a reminder
get/api/v1/automations/{id}
Parameters
| Name | Type | About |
|---|---|---|
idpathrequired | string | The reminder id. |
Responses
- 200The reminder.
- 401Missing, wrong or revoked key.
- 404No such resource in this account.
- 422The request is not valid;
detailslists the fields. - 429Over 20 requests a second for the key (burst 40), 40 a second for all the account's keys together (burst 80), or ten exports or imports a minute. Retry after the Retry-After header.
Change a reminder
patch/api/v1/automations/{id}
Parameters
| Name | Type | About |
|---|---|---|
idpathrequired | string | The reminder id. |
Request body (JSON)
| Name | Type | About |
|---|---|---|
name | string | |
body | string or null | The text. Merge fields, including custom fields, are filled from each contact; a date field reads as 14 March 2026. |
template_id | string or null | A template whose wording at the time of each run is sent instead of |
field_key | string | A custom field of type date. |
direction | one of before, on, after | |
offset_days | integer | Days before or after the date; 0 with |
time | string | HH:MM, 24-hour, UK time. |
every_year | boolean | Match the day and month only, for birthdays and anniversaries. |
audience | one of all, list, segment | Every contact, one list or one segment. |
list_id | string or null | |
segment_id | string or null | |
sender | string or null | An approved sender name. Not with |
from | string or null | One of the numbers GET /numbers/from lists. Not with |
append_opt_out | boolean | On unless set to false. Marketing texts need it (PECR). |
enabled | boolean |
Responses
- 200Changed.
- 401Missing, wrong or revoked key.
- 404No such resource in this account.
- 422The request is not valid;
detailslists the fields. - 429Over 20 requests a second for the key (burst 40), 40 a second for all the account's keys together (burst 80), or ten exports or imports a minute. Retry after the Retry-After header.
Delete a reminder
delete/api/v1/automations/{id}
Its log goes too; the texts it sent stay in the message log.
Parameters
| Name | Type | About |
|---|---|---|
idpathrequired | string | The reminder id. |
Responses
- 204Deleted.
- 401Missing, wrong or revoked key.
- 404No such resource in this account.
- 422The request is not valid;
detailslists the fields. - 429Over 20 requests a second for the key (burst 40), 40 a second for all the account's keys together (burst 80), or ten exports or imports a minute. Retry after the Retry-After header.
Next run
get/api/v1/automations/{id}/preview
When the reminder runs next and how many contacts it would text then, as things stand now.
Parameters
| Name | Type | About |
|---|---|---|
idpathrequired | string | The reminder id. |
Responses
- 200The next run.
- 401Missing, wrong or revoked key.
- 404No such resource in this account.
- 422The request is not valid;
detailslists the fields. - 429Over 20 requests a second for the key (burst 40), 40 a second for all the account's keys together (burst 80), or ten exports or imports a minute. Retry after the Retry-After header.
A reminder's log
get/api/v1/automations/{id}/sends
Who it texted, or skipped and why, and for which date, newest first.
Parameters
| Name | Type | About |
|---|---|---|
idpathrequired | string | The reminder id. |
limitquery | integer | Items per page, 1 to 100 (default 25). |
cursorquery | string | The |
Responses
- 200The log.
- 401Missing, wrong or revoked key.
- 404No such resource in this account.
- 422The request is not valid;
detailslists the fields. - 429Over 20 requests a second for the key (burst 40), 40 a second for all the account's keys together (burst 80), or ten exports or imports a minute. Retry after the Retry-After header.
Keywords
Words people text in for an automatic reply and a list.
List keywords
get/api/v1/keywords
Parameters
| Name | Type | About |
|---|---|---|
limitquery | integer | Items per page, 1 to 100 (default 25). |
cursorquery | string | The |
Responses
- 200Keywords.
- 401Missing, wrong or revoked key.
- 404No such resource in this account.
- 422The request is not valid;
detailslists the fields. - 429Over 20 requests a second for the key (burst 40), 40 a second for all the account's keys together (burst 80), or ten exports or imports a minute. Retry after the Retry-After header.
Create a keyword
post/api/v1/keywords
A keyword is matched against the first word of an inbound text, ignoring case and punctuation. When it matches, the sender becomes a contact, is added to add_to_list_id when set, and gets reply as a text from your number (one credit per part, nothing to an opted-out number). STOP, STOPALL, UNSUBSCRIBE, CANCEL, END, QUIT, OPTOUT, START and UNSTOP are reserved and refused with reserved_keyword. On a shared number a keyword works for people you texted in the last 30 days; on a dedicated number it works for anyone.
Request body (JSON)
| Name | Type | About |
|---|---|---|
keywordrequired | string | Letters and digits; stored upper-case. Not an opt-out or opt-in word. |
reply | string or null | Sent back from your number when the keyword matches. Leave empty for no reply. |
add_to_list_id | string or null | A list of yours the sender is added to. |
enabled | boolean |
{
"keyword": "JOIN",
"reply": "Thanks, you are on the list.",
"add_to_list_id": "lst_01J9Z8X7W6V5T4S3R2Q1P0N9M2"
}Responses
- 201Created.
- 401Missing, wrong or revoked key.
- 404No such resource in this account.
- 409That keyword already exists on the account (
keyword_exists). - 422The request is not valid;
detailslists the fields. - 429Over 20 requests a second for the key (burst 40), 40 a second for all the account's keys together (burst 80), or ten exports or imports a minute. Retry after the Retry-After header.
{
"data": {
"id": "kw_01J9Z8X7W6V5T4S3R2Q1P0N9M1",
"keyword": "JOIN",
"reply": "Thanks, you are on the list. Reply STOP at any time to leave.",
"add_to_list_id": "lst_01J9Z8X7W6V5T4S3R2Q1P0N9M2",
"enabled": true,
"match_count": 12,
"last_matched_at": "2026-10-16T09:12:00.000Z",
"created_at": "2026-10-01T10:00:00.000Z",
"updated_at": "2026-10-01T10:00:00.000Z"
},
"meta": null
}Get a keyword
get/api/v1/keywords/{id}
Parameters
| Name | Type | About |
|---|---|---|
idpathrequired | string | The keyword id. |
Responses
- 200The keyword.
- 401Missing, wrong or revoked key.
- 404No such resource in this account.
- 422The request is not valid;
detailslists the fields. - 429Over 20 requests a second for the key (burst 40), 40 a second for all the account's keys together (burst 80), or ten exports or imports a minute. Retry after the Retry-After header.
Edit a keyword
patch/api/v1/keywords/{id}
Parameters
| Name | Type | About |
|---|---|---|
idpathrequired | string | The keyword id. |
Request body (JSON)
| Name | Type | About |
|---|---|---|
keywordrequired | string | Letters and digits; stored upper-case. Not an opt-out or opt-in word. |
reply | string or null | Sent back from your number when the keyword matches. Leave empty for no reply. |
add_to_list_id | string or null | A list of yours the sender is added to. |
enabled | boolean |
Responses
- 200Updated.
- 401Missing, wrong or revoked key.
- 404No such resource in this account.
- 409That keyword already exists on the account.
- 422The request is not valid;
detailslists the fields. - 429Over 20 requests a second for the key (burst 40), 40 a second for all the account's keys together (burst 80), or ten exports or imports a minute. Retry after the Retry-After header.
Delete a keyword
delete/api/v1/keywords/{id}
Parameters
| Name | Type | About |
|---|---|---|
idpathrequired | string | The keyword id. |
Responses
- 204Deleted.
- 401Missing, wrong or revoked key.
- 404No such resource in this account.
- 422The request is not valid;
detailslists the fields. - 429Over 20 requests a second for the key (burst 40), 40 a second for all the account's keys together (burst 80), or ten exports or imports a minute. Retry after the Retry-After header.
List tracked links
get/api/v1/links
One row per URL per recipient, newest first. Filter by campaign or message.
Parameters
| Name | Type | About |
|---|---|---|
limitquery | integer | Items per page, 1 to 100 (default 25). |
cursorquery | string | The |
campaign_idquery | string | |
message_idquery | string |
Responses
- 200Links.
- 401Missing, wrong or revoked key.
- 404No such resource in this account.
- 422The request is not valid;
detailslists the fields. - 429Over 20 requests a second for the key (burst 40), 40 a second for all the account's keys together (burst 80), or ten exports or imports a minute. Retry after the Retry-After header.
Get a tracked link
get/api/v1/links/{id}
Parameters
| Name | Type | About |
|---|---|---|
idpathrequired | string | The link id. |
Responses
- 200The link.
- 401Missing, wrong or revoked key.
- 404No such resource in this account.
- 422The request is not valid;
detailslists the fields. - 429Over 20 requests a second for the key (burst 40), 40 a second for all the account's keys together (burst 80), or ten exports or imports a minute. Retry after the Retry-After header.
{
"data": {
"id": "lnk_01J9Z8X7W6V5T4S3R2Q1P0N9M3",
"code": "k3Dx9aQ",
"short_url": "https://captificonnect.co.uk/l/k3Dx9aQ",
"url": "https://example.com/october-offer",
"message_id": "msg_01J9Z8X7W6V5T4S3R2Q1P0N9M8",
"campaign_id": "cmp_01J9Z8X7W6V5T4S3R2Q1P0N9M4",
"contact_number": "+447412000001",
"clicks": 1,
"first_clicked_at": "2026-10-16T09:05:00.000Z",
"last_clicked_at": "2026-10-16T09:05:00.000Z",
"created_at": "2026-10-16T09:00:00.000Z"
},
"meta": null
}Get a batch
get/api/v1/batches/{id}
A batch is one send request: POST /messages, a bulk send or a campaign launch (every message carries its batch_id). counts gives its texts by status. A send of more than 1,000 recipients made with Prefer: respond-async is processing until it has been sent, then processed, or failed with the reason in error (for example insufficient_credit), in which case nothing was sent or charged.
Parameters
| Name | Type | About |
|---|---|---|
idpathrequired | string | The batch id. |
Responses
- 200The batch.
- 401Missing, wrong or revoked key.
- 404No such resource in this account.
- 422The request is not valid;
detailslists the fields. - 429Over 20 requests a second for the key (burst 40), 40 a second for all the account's keys together (burst 80), or ten exports or imports a minute. Retry after the Retry-After header.
{
"data": {
"id": "bat_01J9Z8X7W6V5T4S3R2Q1P0N9M7",
"status": "processed",
"source": "api",
"test": false,
"messages": 1200,
"counts": {
"delivered": 1180,
"undelivered": 9,
"queued": 11
},
"credits": 1200,
"rejected_count": 3,
"rejected": [
{
"to": "01632 960000",
"reason": "not_mobile"
}
],
"quiet_hours_applied": false,
"error": null,
"processed_at": "2026-11-07T09:00:04.000Z",
"created_at": "2026-11-07T09:00:00.000Z"
},
"meta": null
}Cancel everything unsent in a batch
post/api/v1/batches/{id}/cancel
Cancels every text in the batch that has not left yet (awaiting review, scheduled or queued), refunds it and raises message.cancelled for each. Texts already on their way finish as normal. A background send still processing is stopped before anything is charged. A campaign launch is cancelled with POST /campaigns/{id}/cancel instead (campaign_send).
Parameters
| Name | Type | About |
|---|---|---|
idpathrequired | string | The batch id. |
Responses
- 200Cancelled.
- 401Missing, wrong or revoked key.
- 404No such resource in this account.
- 409Nothing in it is waiting any more (
not_cancellable), or it is a campaign launch (campaign_send). - 422The request is not valid;
detailslists the fields. - 429Over 20 requests a second for the key (burst 40), 40 a second for all the account's keys together (burst 80), or ten exports or imports a minute. Retry after the Retry-After header.
Erase a number from your account
post/api/v1/erasures
For a person who has asked you to delete their data. In one step: texts not yet sent to the number are cancelled and refunded (error code number_erased), its contact is deleted, every text to or from it has its body removed and the number replaced by a stand-in, its tracked link clicks are deleted, and earlier webhook deliveries that name it are deleted. Texts already on their way are left to finish (messages_in_flight); erase again once they have.
If the number had opted out it stays blocked: we keep a keyed hash of it, not the number, so your account still refuses to text it. Take it off with DELETE /opt-outs/{phone} if the person later asks to hear from you. Erasing cannot be undone. Owners and admins only from the dashboard; live keys only.
Request body (JSON)
| Name | Type | About |
|---|---|---|
phonerequired | string |
{
"phone": "07412 000001"
}Responses
- 200What was erased.
- 401Missing, wrong or revoked key.
- 404No such resource in this account.
- 422The request is not valid;
detailslists the fields. - 429Over 20 requests a second for the key (burst 40), 40 a second for all the account's keys together (burst 80), or ten exports or imports a minute. Retry after the Retry-After header.
This OpenAPI document
get/api/v1/openapi.json
Responses
- 200The OpenAPI 3.1 document.
A Postman collection of the API
get/api/v1/postman.json
Built from this document. Import it into Postman, then set the collection variables baseUrl and api_key.
Responses
- 200A Postman collection (format 2.1).