Skip to content
CaptiFi Connect

Developer docs

API reference

Every endpoint in version 1 of the API, built from the OpenAPI 3.1 document. Prefer Postman? Import the Postman collection, made from the same document. New to it? Start with the quickstart.

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.

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

NameTypeAbout
Idempotency-Keyheaderstring

Up to 200 characters. Makes a retried call safe for 24 hours.

Request body (JSON)

NameTypeAbout
messagesrequiredarray of object
senderstring or null

An approved sender name for every text.

schedule_atdate-time or null
append_opt_outboolean

Add the opt-out line to every text. Off unless set.

track_linksboolean
expires_ininteger or null

As on POST /messages.

smart_encodingboolean

As on POST /messages.

Example request body
{
  "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.needed and details.balance say by how much.
  • 404No such resource in this account.
  • 422The request is not valid; details lists 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)

NameTypeAbout
phonerequiredstring
Example request body
{
  "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; details lists 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.
Example 200 response
{
  "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

NameTypeAbout
limitqueryinteger

Items per page, 1 to 100 (default 25).

cursorquerystring

The meta.next_cursor of the previous page.

directionqueryone of outbound, inbound
statusqueryMessageStatus
qquerystring

A number (any format) or text to find in the body.

numberquerystring

Only texts to or from this number, in any format.

campaign_idquerystring
batch_idquerystring
client_refquerystring
sincequerystring

A date (YYYY-MM-DD, the whole day in UK time) or a date-time.

untilquerystring

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; details lists 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

NameTypeAbout
Idempotency-Keyheaderstring

Up to 200 characters. Makes a retried request safe for 24 hours.

Preferheaderstring

Send respond-async (or async: true in the body) with more than 1,000 recipients to get 202 and the batch at once, while the send runs in the background. Follow it with GET /batches/{id}.

Request body (JSON)

NameTypeAbout
tostring or array of string

UK numbers in any common format. A string may hold several, separated by commas or new lines.

contact_idsarray of string
list_idstring
segment_idstring

A segment's contacts, worked out when the send is made. Opted-out numbers are never in one. Treated like list_id for quiet hours and the opt-out line.

bodystring

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_idstring

Used when body is empty.

senderstring or null

An approved sender name. Leave out to send from a number people can reply to.

fromstring or null

One of the numbers GET /numbers/from lists, to send from that number (refused with from_not_available otherwise). Leave out and each text goes from the best number available. Not with sender.

schedule_atdate-time or null

Up to a year ahead.

client_refstring or null

Your own reference, echoed back in webhooks.

append_opt_outboolean

Adds the account opt-out line (for marketing texts). On by default for a send to a list_id, as for a campaign; off otherwise. From a sender name, which nobody can reply to, a line asking for a reply becomes "Text STOP to <number> to opt out" when the account has a dedicated number, otherwise "Opt out: <link>" with a link for each recipient. The quote shows the line and counts it.

ignore_quiet_hoursboolean

A send to a list_id or segment_id started inside the account quiet hours waits for their end unless this is true.

track_linksboolean

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_ininteger or null

Seconds, counted from when the text is due to go (now, schedule_at, or the end of the quiet hours), by which it must have left. A text still waiting then is cancelled with expired_before_send and refunded. For one-time codes and anything that is pointless late.

smart_encodingboolean

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.

asyncboolean

The same as Prefer: respond-async: with more than 1,000 recipients, answer 202 and send in the background.

Example request body
{
  "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). data is the batch, processing until it has been sent.
  • 401Missing, wrong or revoked key.
  • 402Not enough credit. details.needed and details.balance say 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; details lists 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; details lists 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

NameTypeAbout
idpathrequiredstring

The message id.

Responses

  • 200The message.
  • 401Missing, wrong or revoked key.
  • 404No such resource in this account.
  • 422The request is not valid; details lists 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.
Example 200 response
{
  "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

NameTypeAbout
idpathrequiredstring

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; details lists 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

NameTypeAbout
idpathrequiredstring

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; details lists 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; details lists 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 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

NameTypeAbout
phonepathrequiredstring

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; details lists 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

NameTypeAbout
phonepathrequiredstring

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; details lists 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.
Example 200 response
{
  "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

NameTypeAbout
phonepathrequiredstring

As for GET /conversations/{phone}: the number URL-encoded in any common form, or a sender name.

Request body (JSON)

NameTypeAbout
bodyrequiredstring

The note, up to 2,000 characters.

Example request body
{
  "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; details lists 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.
Example 201 response
{
  "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

NameTypeAbout
phonepathrequiredstring

As for GET /conversations/{phone}: the number URL-encoded in any common form, or a sender name.

idpathrequiredstring

The note id.

Request body (JSON)

NameTypeAbout
bodyrequiredstring

The note, up to 2,000 characters.

Responses

  • 200The note.
  • 401Missing, wrong or revoked key.
  • 403Not allowed for this caller; error.message says why.
  • 404No such resource in this account.
  • 422The request is not valid; details lists 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

NameTypeAbout
phonepathrequiredstring

As for GET /conversations/{phone}: the number URL-encoded in any common form, or a sender name.

idpathrequiredstring

The note id.

Responses

  • 204Deleted.
  • 401Missing, wrong or revoked key.
  • 403Not allowed for this caller; error.message says why.
  • 404No such resource in this account.
  • 422The request is not valid; details lists 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

NameTypeAbout
limitqueryinteger

Items per page, 1 to 100 (default 25).

cursorquerystring

The meta.next_cursor of the previous page.

unreadqueryone of true, false
qquerystring
assigned_toquerystring

Only conversations given to this team member (a user id), none for those nobody has, or me (dashboard sign-ins only) for your own.

Responses

  • 200Conversations.
  • 401Missing, wrong or revoked key.
  • 404No such resource in this account.
  • 422The request is not valid; details lists 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

NameTypeAbout
phonepathrequiredstring

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; details lists 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

NameTypeAbout
phonepathrequiredstring

As for GET /conversations/{phone}: the number URL-encoded in any common form, or a sender name.

Request body (JSON)

NameTypeAbout
assigned_to_user_idrequiredstring 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; details lists 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

NameTypeAbout
phonepathrequiredstring

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; details lists 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 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; details lists 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.
Example 200 response
{
  "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

NameTypeAbout
qquerystring
list_idquerystring

Responses

  • 200CSV file.
  • 401Missing, wrong or revoked key.
  • 404No such resource in this account.
  • 422The request is not valid; details lists 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)

NameTypeAbout
contact_idsrequiredarray of string
Example request body
{
  "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; details lists 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.
Example 200 response
{
  "data": {
    "deleted": 2,
    "not_found": 0
  },
  "meta": null
}

List contacts

get/api/v1/contacts

Parameters

NameTypeAbout
limitqueryinteger

Items per page, 1 to 100 (default 25).

cursorquerystring

The meta.next_cursor of the previous page.

qquerystring
list_idquerystring

Responses

  • 200A page of contacts.
  • 401Missing, wrong or revoked key.
  • 404No such resource in this account.
  • 422The request is not valid; details lists 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)

NameTypeAbout
phonerequiredstring
first_namestring or null
last_namestring or null
emailstring or null
notesstring or null
customobject

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_sourcestring or null
consent_atstring or null

ISO 8601 or YYYY-MM-DD; the import also reads DD/MM/YYYY.

consent_wordingstring or null
Example request body
{
  "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; details lists 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

NameTypeAbout
idpathrequiredstring

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; details lists 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

NameTypeAbout
idpathrequiredstring

The contact id.

Request body (JSON)

NameTypeAbout
phonerequiredstring
first_namestring or null
last_namestring or null
emailstring or null
notesstring or null
customobject

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_sourcestring or null
consent_atstring or null

ISO 8601 or YYYY-MM-DD; the import also reads DD/MM/YYYY.

consent_wordingstring or null

Responses

  • 200Updated.
  • 401Missing, wrong or revoked key.
  • 404No such resource in this account.
  • 422The request is not valid; details lists 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

NameTypeAbout
idpathrequiredstring

The contact id.

Responses

  • 204Deleted.
  • 401Missing, wrong or revoked key.
  • 404No such resource in this account.
  • 422The request is not valid; details lists 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)

NameTypeAbout
rowsrequiredarray of ContactInput
list_idstring or null

Responses

  • 200What happened to each row.
  • 401Missing, wrong or revoked key.
  • 404No such resource in this account.
  • 422The request is not valid; details lists 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 lists

get/api/v1/lists

Parameters

NameTypeAbout
limitqueryinteger

Items per page, 1 to 100 (default 25).

cursorquerystring

The meta.next_cursor of the previous page.

Responses

  • 200Lists.
  • 401Missing, wrong or revoked key.
  • 404No such resource in this account.
  • 422The request is not valid; details lists 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)

NameTypeAbout
namerequiredstring
descriptionstring or null

Responses

  • 201Created.
  • 401Missing, wrong or revoked key.
  • 404No such resource in this account.
  • 422The request is not valid; details lists 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

NameTypeAbout
idpathrequiredstring

The list id.

Responses

  • 200The list.
  • 401Missing, wrong or revoked key.
  • 404No such resource in this account.
  • 422The request is not valid; details lists 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

NameTypeAbout
idpathrequiredstring

The list id.

Request body (JSON)

NameTypeAbout
namerequiredstring
descriptionstring or null

Responses

  • 200Updated.
  • 401Missing, wrong or revoked key.
  • 404No such resource in this account.
  • 422The request is not valid; details lists 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

NameTypeAbout
idpathrequiredstring

The list id.

Responses

  • 204Deleted.
  • 401Missing, wrong or revoked key.
  • 404No such resource in this account.
  • 422The request is not valid; details lists 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

NameTypeAbout
idpathrequiredstring

The list id.

limitqueryinteger

Items per page, 1 to 100 (default 25).

cursorquerystring

The meta.next_cursor of the previous page.

Responses

  • 200Members.
  • 401Missing, wrong or revoked key.
  • 404No such resource in this account.
  • 422The request is not valid; details lists 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

NameTypeAbout
idpathrequiredstring

The list id.

Request body (JSON)

NameTypeAbout
contact_idsarray of string
phonesarray of string

Responses

  • 200How many were added.
  • 401Missing, wrong or revoked key.
  • 404No such resource in this account.
  • 422The request is not valid; details lists 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

NameTypeAbout
idpathrequiredstring

The list id.

contactIdpathrequiredstring

Responses

  • 204Removed.
  • 401Missing, wrong or revoked key.
  • 404No such resource in this account.
  • 422The request is not valid; details lists 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 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

NameTypeAbout
idpathrequiredstring

The campaign id.

Responses

  • 200The report.
  • 401Missing, wrong or revoked key.
  • 404No such resource in this account.
  • 422The request is not valid; details lists 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.
Example 200 response
{
  "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

NameTypeAbout
limitqueryinteger

Items per page, 1 to 100 (default 25).

cursorquerystring

The meta.next_cursor of the previous page.

series_idquerystring

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; details lists 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)

NameTypeAbout
namerequiredstring
bodyrequiredstring
list_idstring or null
segment_idstring or null

A segment, worked out when the campaign is sent.

senderstring or null
fromstring or null

One of the numbers GET /numbers/from lists, to send from that number (refused with from_not_available otherwise).

append_opt_outboolean

On unless set to false.

track_linksboolean

Shorten and track links. The account setting track_links_default when left out.

Responses

  • 201The draft.
  • 401Missing, wrong or revoked key.
  • 404No such resource in this account.
  • 422The request is not valid; details lists 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

NameTypeAbout
idpathrequiredstring

The campaign id.

Responses

  • 200The campaign.
  • 401Missing, wrong or revoked key.
  • 404No such resource in this account.
  • 422The request is not valid; details lists 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

NameTypeAbout
idpathrequiredstring

The campaign id.

Request body (JSON)

NameTypeAbout
namerequiredstring
bodyrequiredstring
list_idstring or null
segment_idstring or null

A segment, worked out when the campaign is sent.

senderstring or null
fromstring or null

One of the numbers GET /numbers/from lists, to send from that number (refused with from_not_available otherwise).

append_opt_outboolean

On unless set to false.

track_linksboolean

Shorten and track links. The account setting track_links_default when left out.

Responses

  • 200Updated.
  • 401Missing, wrong or revoked key.
  • 404No such resource in this account.
  • 422The request is not valid; details lists 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

NameTypeAbout
idpathrequiredstring

The campaign id.

Responses

  • 204Deleted.
  • 401Missing, wrong or revoked key.
  • 404No such resource in this account.
  • 422The request is not valid; details lists 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

NameTypeAbout
idpathrequiredstring

The campaign id.

Request body (JSON)

NameTypeAbout
schedule_atdate-time or null
ignore_quiet_hoursboolean

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 scheduled for the window end and meta.quiet_hours_applied is true.

Responses

  • 200Launched.
  • 401Missing, wrong or revoked key.
  • 402Not enough credit. details.needed and details.balance say by how much.
  • 404No such resource in this account.
  • 409Already launched.
  • 422The request is not valid; details lists 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

NameTypeAbout
idpathrequiredstring

The campaign id.

Responses

  • 200Cancelled.
  • 401Missing, wrong or revoked key.
  • 404No such resource in this account.
  • 422The request is not valid; details lists 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 templates

get/api/v1/templates

Parameters

NameTypeAbout
limitqueryinteger

Items per page, 1 to 100 (default 25).

cursorquerystring

The meta.next_cursor of the previous page.

qquerystring

Responses

  • 200Templates.
  • 401Missing, wrong or revoked key.
  • 404No such resource in this account.
  • 422The request is not valid; details lists 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)

NameTypeAbout
namerequiredstring
bodyrequiredstring

Responses

  • 201Created.
  • 401Missing, wrong or revoked key.
  • 404No such resource in this account.
  • 422The request is not valid; details lists 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

NameTypeAbout
idpathrequiredstring

The template id.

Responses

  • 200The template.
  • 401Missing, wrong or revoked key.
  • 404No such resource in this account.
  • 422The request is not valid; details lists 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

NameTypeAbout
idpathrequiredstring

The template id.

Request body (JSON)

NameTypeAbout
namerequiredstring
bodyrequiredstring

Responses

  • 200Updated.
  • 401Missing, wrong or revoked key.
  • 404No such resource in this account.
  • 422The request is not valid; details lists 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

NameTypeAbout
idpathrequiredstring

The template id.

Responses

  • 204Deleted.
  • 401Missing, wrong or revoked key.
  • 404No such resource in this account.
  • 422The request is not valid; details lists 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 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.

Example request body
{
  "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; details lists 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.
Example 200 response
{
  "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

NameTypeAbout
limitqueryinteger

1 to 100 (default 25).

cursorquerystring

The meta.next_cursor of the previous page.

Responses

  • 200Removals.
  • 401Missing, wrong or revoked key.
  • 404No such resource in this account.
  • 422The request is not valid; details lists 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.
Example 200 response
{
  "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

NameTypeAbout
limitqueryinteger

Items per page, 1 to 100 (default 25).

cursorquerystring

The meta.next_cursor of the previous page.

sincequerydate-time

Only opt-outs added at or after this time.

qquerystring
offsetqueryinteger

The older way to page. Use cursor.

Responses

  • 200Opt-outs.
  • 401Missing, wrong or revoked key.
  • 404No such resource in this account.
  • 422The request is not valid; details lists 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)

NameTypeAbout
phonerequiredstring
notestring or null

Responses

  • 200Already opted out.
  • 201Added.
  • 401Missing, wrong or revoked key.
  • 404No such resource in this account.
  • 422The request is not valid; details lists 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

NameTypeAbout
phonepathrequiredstring
reasonquerystring

Instead of the body.

Request body (JSON)

NameTypeAbout
reasonstring
Example request body
{
  "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.

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; details lists 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)

NameTypeAbout
valuerequiredstring
purposestring

Responses

  • 201Waiting for review.
  • 401Missing, wrong or revoked key.
  • 404No such resource in this account.
  • 422The request is not valid; details lists 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

NameTypeAbout
idpathrequiredstring

The sender name id.

Responses

  • 204Withdrawn.
  • 401Missing, wrong or revoked key.
  • 404No such resource in this account.
  • 422The request is not valid; details lists 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

NameTypeAbout
idpathrequiredstring

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; details lists 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

NameTypeAbout
idpathrequiredstring

The sender name id.

Request body (JSON)

NameTypeAbout
brand_ownerone of own, client

own: the name is your business's. client: you send for the business that owns it.

business_namerequiredstring
company_numberstring or null

Companies House number; leave out for a business that is not a registered company.

websitestring or null
addressrequiredstring
phonerequiredstring
evidencestring or null

Links or notes showing the business uses the name.

rep_namerequiredstring

The authorised representative, who signs the letter of authority.

rep_rolerequiredstring
rep_emailrequiredstring
signaturerequiredstring

The representative's full name again.

authoriserequiredboolean
documentsarray of object
remove_document_idsarray 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; details lists 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 webhooks

get/api/v1/webhooks

Responses

  • 200Webhooks.
  • 401Missing, wrong or revoked key.
  • 404No such resource in this account.
  • 422The request is not valid; details lists 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)

NameTypeAbout
urlstring
eventsarray of one of message.sent, message.delivered, message.failed, message.cancelled, message.received, opt_out.created, opt_out.deleted, link.clicked
descriptionstring or null
enabledboolean
rotate_secretboolean
Example request body
{
  "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; details lists 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

NameTypeAbout
idpathrequiredstring

The webhook id.

Responses

  • 200The webhook.
  • 401Missing, wrong or revoked key.
  • 404No such resource in this account.
  • 422The request is not valid; details lists 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

NameTypeAbout
idpathrequiredstring

The webhook id.

Request body (JSON)

NameTypeAbout
urlstring
eventsarray of one of message.sent, message.delivered, message.failed, message.cancelled, message.received, opt_out.created, opt_out.deleted, link.clicked
descriptionstring or null
enabledboolean
rotate_secretboolean

Responses

  • 200Updated.
  • 401Missing, wrong or revoked key.
  • 404No such resource in this account.
  • 422The request is not valid; details lists 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

NameTypeAbout
idpathrequiredstring

The webhook id.

Responses

  • 204Deleted.
  • 401Missing, wrong or revoked key.
  • 404No such resource in this account.
  • 422The request is not valid; details lists 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

NameTypeAbout
idpathrequiredstring

The webhook id.

Responses

  • 200What your endpoint answered.
  • 401Missing, wrong or revoked key.
  • 404No such resource in this account.
  • 422The request is not valid; details lists 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

NameTypeAbout
idpathrequiredstring

The webhook id.

limitqueryinteger

Items per page, 1 to 100 (default 25).

cursorquerystring

The meta.next_cursor of the previous page.

Responses

  • 200Deliveries, newest first.
  • 401Missing, wrong or revoked key.
  • 404No such resource in this account.
  • 422The request is not valid; details lists 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

NameTypeAbout
idpathrequiredstring

The webhook id.

delivery_idpathrequiredstring

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; details lists 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 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; details lists 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.
Example 200 response
{
  "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; details lists 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.
Example 200 response
{
  "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; details lists 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.
Example 200 response
{
  "data": {
    "credits": 1240,
    "account_status": "active"
  },
  "meta": null
}

Totals for a period

get/api/v1/stats/summary

Parameters

NameTypeAbout
daysqueryinteger
fromquerydate-time
toquerydate-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; details lists 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

NameTypeAbout
daysqueryinteger

Responses

  • 200One row per day.
  • 401Missing, wrong or revoked key.
  • 404No such resource in this account.
  • 422The request is not valid; details lists 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; details lists 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)

NameTypeAbout
labelrequiredstring
keystring or null
typeone of text, date, number
Example request body
{
  "label": "Birthday",
  "type": "date"
}

Responses

  • 201Added.
  • 401Missing, wrong or revoked key.
  • 404No such resource in this account.
  • 409field_exists: that key is taken.
  • 422The request is not valid; details lists 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

NameTypeAbout
idpathrequiredstring

The custom field id.

Responses

  • 200The field.
  • 401Missing, wrong or revoked key.
  • 404No such resource in this account.
  • 422The request is not valid; details lists 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

NameTypeAbout
idpathrequiredstring

The custom field id.

Request body (JSON)

NameTypeAbout
labelrequiredstring

Responses

  • 200Renamed.
  • 401Missing, wrong or revoked key.
  • 404No such resource in this account.
  • 422The request is not valid; details lists 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

NameTypeAbout
idpathrequiredstring

The custom field id.

Responses

  • 204Deleted.
  • 401Missing, wrong or revoked key.
  • 404No such resource in this account.
  • 409in_use: a segment or reminder still uses it.
  • 422The request is not valid; details lists 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 segments

get/api/v1/segments

Parameters

NameTypeAbout
limitqueryinteger

Items per page, 1 to 100 (default 25).

cursorquerystring

The meta.next_cursor of the previous page.

Responses

  • 200Segments.
  • 401Missing, wrong or revoked key.
  • 404No such resource in this account.
  • 422The request is not valid; details lists 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)

NameTypeAbout
namerequiredstring
matchone of all, any

People who match all of the conditions (the default), or any one of them.

conditionsrequiredarray of object or object or object or object or object or object

No conditions matches every contact you can text.

Example request body
{
  "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; details lists 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)

NameTypeAbout
matchone of all, any

People who match all of the conditions (the default), or any one of them.

conditionsrequiredarray 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; details lists 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

NameTypeAbout
idpathrequiredstring

The segment id.

Responses

  • 200The segment.
  • 401Missing, wrong or revoked key.
  • 404No such resource in this account.
  • 422The request is not valid; details lists 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

NameTypeAbout
idpathrequiredstring

The segment id.

Request body (JSON)

NameTypeAbout
namestring
matchone of all, any

People who match all of the conditions (the default), or any one of them.

conditionsarray 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; details lists 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

NameTypeAbout
idpathrequiredstring

The segment id.

Responses

  • 204Deleted.
  • 401Missing, wrong or revoked key.
  • 404No such resource in this account.
  • 409in_use: a segment or reminder still uses it.
  • 422The request is not valid; details lists 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

NameTypeAbout
idpathrequiredstring

The segment id.

Responses

  • 200The count.
  • 401Missing, wrong or revoked key.
  • 404No such resource in this account.
  • 422The request is not valid; details lists 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

NameTypeAbout
idpathrequiredstring

The segment id.

limitqueryinteger

Items per page, 1 to 100 (default 25).

cursorquerystring

The meta.next_cursor of the previous page.

Responses

  • 200Contacts.
  • 401Missing, wrong or revoked key.
  • 404No such resource in this account.
  • 422The request is not valid; details lists 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 recurring campaigns

get/api/v1/campaign-series

GET /campaigns?series_id= lists the runs of one.

Parameters

NameTypeAbout
limitqueryinteger

Items per page, 1 to 100 (default 25).

cursorquerystring

The meta.next_cursor of the previous page.

statusquerystring

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; details lists 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)

NameTypeAbout
namerequiredstring
bodyrequiredstring
list_idstring or null

A list to send to. Give this or segment_id.

segment_idstring or null

A segment to send to, worked out at each run.

senderstring or null

An approved sender name. Not with from.

fromstring or null

One of the numbers GET /numbers/from lists. Not with sender.

append_opt_outboolean

On unless set to false.

track_linksboolean

The account setting track_links_default when left out.

repeatrequiredone of weekly, monthly
weekdaysarray of integer

Weekly: 1 for Monday to 7 for Sunday.

month_dayinteger or null

Monthly: the day of the month. In a shorter month the run goes on its last day.

timerequiredstring

HH:MM, 24-hour, UK time.

ends_onstring or null

The last day a run may go. Leave out to run on.

max_runsinteger or null

Stop after this many runs. Leave out to run on.

Example request body
{
  "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; details lists 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

NameTypeAbout
idpathrequiredstring

The recurring campaign id.

Responses

  • 200It.
  • 401Missing, wrong or revoked key.
  • 404No such resource in this account.
  • 422The request is not valid; details lists 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

NameTypeAbout
idpathrequiredstring

The recurring campaign id.

Request body (JSON)

NameTypeAbout
namestring
bodystring
list_idstring or null

A list to send to. Give this or segment_id.

segment_idstring or null

A segment to send to, worked out at each run.

senderstring or null

An approved sender name. Not with from.

fromstring or null

One of the numbers GET /numbers/from lists. Not with sender.

append_opt_outboolean

On unless set to false.

track_linksboolean

The account setting track_links_default when left out.

repeatone of weekly, monthly
weekdaysarray of integer

Weekly: 1 for Monday to 7 for Sunday.

month_dayinteger or null

Monthly: the day of the month. In a shorter month the run goes on its last day.

timestring

HH:MM, 24-hour, UK time.

ends_onstring or null

The last day a run may go. Leave out to run on.

max_runsinteger 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.
  • 409series_ended: the series has been stopped or has finished.
  • 422The request is not valid; details lists 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

NameTypeAbout
idpathrequiredstring

The recurring campaign id.

Responses

  • 200Paused.
  • 401Missing, wrong or revoked key.
  • 404No such resource in this account.
  • 409series_ended: the series has been stopped or has finished.
  • 422The request is not valid; details lists 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

NameTypeAbout
idpathrequiredstring

The recurring campaign id.

Responses

  • 200Resumed.
  • 401Missing, wrong or revoked key.
  • 404No such resource in this account.
  • 409series_ended: the series has been stopped or has finished.
  • 422The request is not valid; details lists 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

NameTypeAbout
idpathrequiredstring

The recurring campaign id.

Responses

  • 200Stopped.
  • 401Missing, wrong or revoked key.
  • 404No such resource in this account.
  • 409series_ended: the series has been stopped or has finished.
  • 422The request is not valid; details lists 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 reminders

get/api/v1/automations

Parameters

NameTypeAbout
limitqueryinteger

Items per page, 1 to 100 (default 25).

cursorquerystring

The meta.next_cursor of the previous page.

Responses

  • 200Reminders.
  • 401Missing, wrong or revoked key.
  • 404No such resource in this account.
  • 422The request is not valid; details lists 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)

NameTypeAbout
namerequiredstring
bodystring or null

The text. Merge fields, including custom fields, are filled from each contact; a date field reads as 14 March 2026.

template_idstring or null

A template whose wording at the time of each run is sent instead of body.

field_keyrequiredstring

A custom field of type date.

directionone of before, on, after
offset_daysinteger

Days before or after the date; 0 with on.

timestring

HH:MM, 24-hour, UK time.

every_yearboolean

Match the day and month only, for birthdays and anniversaries.

audienceone of all, list, segment

Every contact, one list or one segment.

list_idstring or null
segment_idstring or null
senderstring or null

An approved sender name. Not with from.

fromstring or null

One of the numbers GET /numbers/from lists. Not with sender.

append_opt_outboolean

On unless set to false. Marketing texts need it (PECR).

enabledboolean
Example request body
{
  "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; details lists 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

NameTypeAbout
idpathrequiredstring

The reminder id.

Responses

  • 200The reminder.
  • 401Missing, wrong or revoked key.
  • 404No such resource in this account.
  • 422The request is not valid; details lists 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

NameTypeAbout
idpathrequiredstring

The reminder id.

Request body (JSON)

NameTypeAbout
namestring
bodystring or null

The text. Merge fields, including custom fields, are filled from each contact; a date field reads as 14 March 2026.

template_idstring or null

A template whose wording at the time of each run is sent instead of body.

field_keystring

A custom field of type date.

directionone of before, on, after
offset_daysinteger

Days before or after the date; 0 with on.

timestring

HH:MM, 24-hour, UK time.

every_yearboolean

Match the day and month only, for birthdays and anniversaries.

audienceone of all, list, segment

Every contact, one list or one segment.

list_idstring or null
segment_idstring or null
senderstring or null

An approved sender name. Not with from.

fromstring or null

One of the numbers GET /numbers/from lists. Not with sender.

append_opt_outboolean

On unless set to false. Marketing texts need it (PECR).

enabledboolean

Responses

  • 200Changed.
  • 401Missing, wrong or revoked key.
  • 404No such resource in this account.
  • 422The request is not valid; details lists 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

NameTypeAbout
idpathrequiredstring

The reminder id.

Responses

  • 204Deleted.
  • 401Missing, wrong or revoked key.
  • 404No such resource in this account.
  • 422The request is not valid; details lists 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

NameTypeAbout
idpathrequiredstring

The reminder id.

Responses

  • 200The next run.
  • 401Missing, wrong or revoked key.
  • 404No such resource in this account.
  • 422The request is not valid; details lists 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

NameTypeAbout
idpathrequiredstring

The reminder id.

limitqueryinteger

Items per page, 1 to 100 (default 25).

cursorquerystring

The meta.next_cursor of the previous page.

Responses

  • 200The log.
  • 401Missing, wrong or revoked key.
  • 404No such resource in this account.
  • 422The request is not valid; details lists 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

NameTypeAbout
limitqueryinteger

Items per page, 1 to 100 (default 25).

cursorquerystring

The meta.next_cursor of the previous page.

Responses

  • 200Keywords.
  • 401Missing, wrong or revoked key.
  • 404No such resource in this account.
  • 422The request is not valid; details lists 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)

NameTypeAbout
keywordrequiredstring

Letters and digits; stored upper-case. Not an opt-out or opt-in word.

replystring or null

Sent back from your number when the keyword matches. Leave empty for no reply.

add_to_list_idstring or null

A list of yours the sender is added to.

enabledboolean
Example request body
{
  "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; details lists 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.
Example 201 response
{
  "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

NameTypeAbout
idpathrequiredstring

The keyword id.

Responses

  • 200The keyword.
  • 401Missing, wrong or revoked key.
  • 404No such resource in this account.
  • 422The request is not valid; details lists 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

NameTypeAbout
idpathrequiredstring

The keyword id.

Request body (JSON)

NameTypeAbout
keywordrequiredstring

Letters and digits; stored upper-case. Not an opt-out or opt-in word.

replystring or null

Sent back from your number when the keyword matches. Leave empty for no reply.

add_to_list_idstring or null

A list of yours the sender is added to.

enabledboolean

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; details lists 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

NameTypeAbout
idpathrequiredstring

The keyword id.

Responses

  • 204Deleted.
  • 401Missing, wrong or revoked key.
  • 404No such resource in this account.
  • 422The request is not valid; details lists 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.

Batches

One send request and everything in it.

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

NameTypeAbout
idpathrequiredstring

The batch id.

Responses

  • 200The batch.
  • 401Missing, wrong or revoked key.
  • 404No such resource in this account.
  • 422The request is not valid; details lists 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.
Example 200 response
{
  "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

NameTypeAbout
idpathrequiredstring

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; details lists 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 and privacy

Erasing a person from your account.

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)

NameTypeAbout
phonerequiredstring
Example request body
{
  "phone": "07412 000001"
}

Responses

  • 200What was erased.
  • 401Missing, wrong or revoked key.
  • 404No such resource in this account.
  • 422The request is not valid; details lists 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.

Reference

This document and the Postman collection, no key needed.

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).