New: every plan now includes free incoming texts and rollover credits. See pricing →
Search Help Center Documentation

API reference

Webhook events

The JSON SMSBlast posts to your webhook endpoints, one section per event. To set up an endpoint and verify deliveries, read the Webhooks guide.

Every event#

SMSBlast posts this to every enabled webhook endpoint subscribed to the event, as JSON, with the headers SMSBlast-Signature, SMSBlast-Event-Id, SMSBlast-Event-Type and User-Agent: SMSBlast-Webhooks/1.0. Check the signature before trusting the body (see the Webhooks section).

Answer with any 2xx status within 10 seconds. Anything else is retried after 1 minute, 5 minutes, 30 minutes, 2 hours, 6 hours, 12 hours and 24 hours.

Each body is an envelope: the event id (use it to skip repeats), its type, when it happened (created) and the event's data.

Headers#

SMSBlast-Signaturestringrequired

t=<unix seconds>,v1=<hex HMAC-SHA256>. The HMAC is of <t>.<raw body> with your webhook's secret as the key. Check it before trusting the body.

Example "t=1795712703,v1=5f0b6a8e2d4c71f9b3a0e6d2c8f41a7b9e3d5c0f2a6b8d1e4f7a9c3b5d2e8f01".

SMSBlast-Event-Idstringrequired

The event id, the same as id in the body.

Example "evt_Qm4xT9rV2kLp8NwZ".

SMSBlast-Event-Typestringrequired

The event type, the same as type in the body.

Your answer#

2XX

Received. Any 2xx status within 10 seconds counts; the body is ignored (its first 500 characters are kept in the delivery log).

Other

Any other status, a redirect (redirects are not followed), no answer within 10 seconds or a connection failure counts as a failed attempt and is retried.

A text came in

EVENTmessage.received

Someone texted one of your numbers. Sent for every incoming text, including STOP, HELP, START and keywords (which SMSBlast also handles automatically). mediaUrls holds any pictures they sent.

Body · message.received
{
  "id": "evt_Qm4xT9rV2kLp8NwZ",
  "type": "message.received",
  "created": "2026-11-20T16:45:03.200Z",
  "data": {
    "message": {
      "id": "d1f3a5c7-9e0b-4d2f-a4c6-e8f0b2d4f697",
      "direction": "inbound",
      "status": "received",
      "kind": "inbound",
      "from": "+14155550101",
      "to": "+14155550100",
      "body": "Do you have rye bread today?",
      "mediaUrls": [],
      "credits": 0,
      "contactId": "0f8d5c3a-6b2e-4f1d-9a7c-3e5b8d2f1a60",
      "campaignId": null,
      "error": null,
      "sendAt": null,
      "createdAt": "2026-11-20T16:45:03.118Z",
      "sentAt": null,
      "deliveredAt": null
    }
  }
}

Payload#

application/json

idstringrequired

The event id, evt_ and 16 characters. The same event can be delivered more than once (a retry, or a manual resend): use the id to ignore repeats. Also sent in the SMSBlast-Event-Id header.

typestringrequired

The event type. Also sent in the SMSBlast-Event-Type header.

Always "message.received".

createdstringdate-timerequired

When the event happened.

dataobjectrequired

The text as GET /v1/messages/{id} returned it at the time of the event.

Child fields
messageobjectrequired

One text, sent or received. Field names are camelCase.

Child fields
idstringuuidrequired

The message id.

directionstringrequired

outbound: a text you sent. inbound: a text someone sent to one of your numbers.

One of "outbound", "inbound".

statusstringrequired

Where the text is:

  • queued: waiting to go out (now, at sendAt, when sending hours open, or for a retry after the carrier was busy).
  • sending: being handed to the carrier right now.
  • sent: the carrier accepted it.
  • delivered: the carrier confirmed it reached the phone.
  • failed: it could not be sent, or the carrier reported it undelivered. error says why. A text that never reached the carrier gets its credits back.
  • skipped: not sent, because the person opted out before it went out, its campaign was stopped, the number is blocked on SMSBlast, or (for a keyword reply) there were not enough credits. Credits are given back.
  • received: an inbound text.

One of "queued", "sending", "sent", "delivered", "failed", "skipped", "received".

kindstringrequired

What sent it: campaign, api (POST /v1/messages), conversation (a reply from the inbox), workflow, welcome (a signup form's welcome text), reply (the answer to a signup keyword), compliance (the automatic answer to STOP, HELP or START), test (a campaign test send) or inbound (a text someone sent you).

One of "campaign", "api", "conversation", "workflow", "welcome", "reply", "compliance", "test", "inbound".

fromstringrequired

The sending number for outbound texts; the person's number for inbound ones. E.164.

tostringrequired

The person's number for outbound texts; your number for inbound ones. E.164.

bodystringrequired

The text exactly as sent or received (personalisation already filled in, tracked links already shortened).

mediaUrlsarray of stringsurirequired

Pictures sent with the text (MMS). For inbound texts, the pictures the person sent.

creditsintegerrequired

Credits it cost: 1 per SMS segment, 3 for a picture message, 0 for inbound texts and compliance answers.

contactIdstringuuidnullablerequired

The contact it was sent to or came from, when there is one.

campaignIdstringuuidnullablerequired

The campaign it belongs to, for campaign texts.

errorstringnullablerequired

Why it failed or was skipped. While a text is queued for another try after the carrier was busy, this reads "Will retry: ...".

sendAtstringdate-timenullablerequired

The earliest time it may go out, when it was scheduled, held for sending hours, or is waiting for a retry. Empty when it goes out as soon as possible.

createdAtstringdate-timerequired

When it was created (outbound) or received (inbound).

sentAtstringdate-timenullablerequired

When the carrier accepted it.

deliveredAtstringdate-timenullablerequired

When the carrier confirmed delivery.

A text was sent

EVENTmessage.sent

The carrier accepted one of your outgoing texts, of any kind (campaign, API, inbox, workflow, keyword reply, compliance answer or test).

Body · message.sent
{
  "id": "evt_Qm4xT9rV2kLp8NwZ",
  "type": "message.sent",
  "created": "2026-11-20T17:02:12.110Z",
  "data": {
    "message": {
      "id": "a4c6e8f0-2b4d-4f6a-8c0e-1d3f5a7c9e86",
      "direction": "outbound",
      "status": "sent",
      "kind": "api",
      "from": "+14155550100",
      "to": "+14155550101",
      "body": "Hi Alice, your sourdough order is ready for pickup at Corner Bakery. Reply STOP to opt out.",
      "mediaUrls": [],
      "credits": 1,
      "contactId": "0f8d5c3a-6b2e-4f1d-9a7c-3e5b8d2f1a60",
      "campaignId": null,
      "error": null,
      "sendAt": null,
      "createdAt": "2026-11-20T17:02:11.482Z",
      "sentAt": "2026-11-20T17:02:12.104Z",
      "deliveredAt": null
    }
  }
}

Payload#

application/json

idstringrequired

The event id, evt_ and 16 characters. The same event can be delivered more than once (a retry, or a manual resend): use the id to ignore repeats. Also sent in the SMSBlast-Event-Id header.

typestringrequired

The event type. Also sent in the SMSBlast-Event-Type header.

Always "message.sent".

createdstringdate-timerequired

When the event happened.

dataobjectrequired

The text as GET /v1/messages/{id} returned it at the time of the event.

Child fields
messageobjectrequired

One text, sent or received. Field names are camelCase.

Child fields
idstringuuidrequired

The message id.

directionstringrequired

outbound: a text you sent. inbound: a text someone sent to one of your numbers.

One of "outbound", "inbound".

statusstringrequired

Where the text is:

  • queued: waiting to go out (now, at sendAt, when sending hours open, or for a retry after the carrier was busy).
  • sending: being handed to the carrier right now.
  • sent: the carrier accepted it.
  • delivered: the carrier confirmed it reached the phone.
  • failed: it could not be sent, or the carrier reported it undelivered. error says why. A text that never reached the carrier gets its credits back.
  • skipped: not sent, because the person opted out before it went out, its campaign was stopped, the number is blocked on SMSBlast, or (for a keyword reply) there were not enough credits. Credits are given back.
  • received: an inbound text.

One of "queued", "sending", "sent", "delivered", "failed", "skipped", "received".

kindstringrequired

What sent it: campaign, api (POST /v1/messages), conversation (a reply from the inbox), workflow, welcome (a signup form's welcome text), reply (the answer to a signup keyword), compliance (the automatic answer to STOP, HELP or START), test (a campaign test send) or inbound (a text someone sent you).

One of "campaign", "api", "conversation", "workflow", "welcome", "reply", "compliance", "test", "inbound".

fromstringrequired

The sending number for outbound texts; the person's number for inbound ones. E.164.

tostringrequired

The person's number for outbound texts; your number for inbound ones. E.164.

bodystringrequired

The text exactly as sent or received (personalisation already filled in, tracked links already shortened).

mediaUrlsarray of stringsurirequired

Pictures sent with the text (MMS). For inbound texts, the pictures the person sent.

creditsintegerrequired

Credits it cost: 1 per SMS segment, 3 for a picture message, 0 for inbound texts and compliance answers.

contactIdstringuuidnullablerequired

The contact it was sent to or came from, when there is one.

campaignIdstringuuidnullablerequired

The campaign it belongs to, for campaign texts.

errorstringnullablerequired

Why it failed or was skipped. While a text is queued for another try after the carrier was busy, this reads "Will retry: ...".

sendAtstringdate-timenullablerequired

The earliest time it may go out, when it was scheduled, held for sending hours, or is waiting for a retry. Empty when it goes out as soon as possible.

createdAtstringdate-timerequired

When it was created (outbound) or received (inbound).

sentAtstringdate-timenullablerequired

When the carrier accepted it.

deliveredAtstringdate-timenullablerequired

When the carrier confirmed delivery.

A text was delivered

EVENTmessage.delivered

The carrier confirmed one of your texts reached the phone.

Body · message.delivered
{
  "id": "evt_Qm4xT9rV2kLp8NwZ",
  "type": "message.delivered",
  "created": "2026-11-20T17:02:15.940Z",
  "data": {
    "message": {
      "id": "a4c6e8f0-2b4d-4f6a-8c0e-1d3f5a7c9e86",
      "direction": "outbound",
      "status": "delivered",
      "kind": "api",
      "from": "+14155550100",
      "to": "+14155550101",
      "body": "Hi Alice, your sourdough order is ready for pickup at Corner Bakery. Reply STOP to opt out.",
      "mediaUrls": [],
      "credits": 1,
      "contactId": "0f8d5c3a-6b2e-4f1d-9a7c-3e5b8d2f1a60",
      "campaignId": null,
      "error": null,
      "sendAt": null,
      "createdAt": "2026-11-20T17:02:11.482Z",
      "sentAt": "2026-11-20T17:02:12.104Z",
      "deliveredAt": "2026-11-20T17:02:15.930Z"
    }
  }
}

Payload#

application/json

idstringrequired

The event id, evt_ and 16 characters. The same event can be delivered more than once (a retry, or a manual resend): use the id to ignore repeats. Also sent in the SMSBlast-Event-Id header.

typestringrequired

The event type. Also sent in the SMSBlast-Event-Type header.

Always "message.delivered".

createdstringdate-timerequired

When the event happened.

dataobjectrequired

The text as GET /v1/messages/{id} returned it at the time of the event.

Child fields
messageobjectrequired

One text, sent or received. Field names are camelCase.

Child fields
idstringuuidrequired

The message id.

directionstringrequired

outbound: a text you sent. inbound: a text someone sent to one of your numbers.

One of "outbound", "inbound".

statusstringrequired

Where the text is:

  • queued: waiting to go out (now, at sendAt, when sending hours open, or for a retry after the carrier was busy).
  • sending: being handed to the carrier right now.
  • sent: the carrier accepted it.
  • delivered: the carrier confirmed it reached the phone.
  • failed: it could not be sent, or the carrier reported it undelivered. error says why. A text that never reached the carrier gets its credits back.
  • skipped: not sent, because the person opted out before it went out, its campaign was stopped, the number is blocked on SMSBlast, or (for a keyword reply) there were not enough credits. Credits are given back.
  • received: an inbound text.

One of "queued", "sending", "sent", "delivered", "failed", "skipped", "received".

kindstringrequired

What sent it: campaign, api (POST /v1/messages), conversation (a reply from the inbox), workflow, welcome (a signup form's welcome text), reply (the answer to a signup keyword), compliance (the automatic answer to STOP, HELP or START), test (a campaign test send) or inbound (a text someone sent you).

One of "campaign", "api", "conversation", "workflow", "welcome", "reply", "compliance", "test", "inbound".

fromstringrequired

The sending number for outbound texts; the person's number for inbound ones. E.164.

tostringrequired

The person's number for outbound texts; your number for inbound ones. E.164.

bodystringrequired

The text exactly as sent or received (personalisation already filled in, tracked links already shortened).

mediaUrlsarray of stringsurirequired

Pictures sent with the text (MMS). For inbound texts, the pictures the person sent.

creditsintegerrequired

Credits it cost: 1 per SMS segment, 3 for a picture message, 0 for inbound texts and compliance answers.

contactIdstringuuidnullablerequired

The contact it was sent to or came from, when there is one.

campaignIdstringuuidnullablerequired

The campaign it belongs to, for campaign texts.

errorstringnullablerequired

Why it failed or was skipped. While a text is queued for another try after the carrier was busy, this reads "Will retry: ...".

sendAtstringdate-timenullablerequired

The earliest time it may go out, when it was scheduled, held for sending hours, or is waiting for a retry. Empty when it goes out as soon as possible.

createdAtstringdate-timerequired

When it was created (outbound) or received (inbound).

sentAtstringdate-timenullablerequired

When the carrier accepted it.

deliveredAtstringdate-timenullablerequired

When the carrier confirmed delivery.

A text failed

EVENTmessage.failed

One of your texts could not be sent, or the carrier reported it undelivered. data.message.error says why. Texts that never reached the carrier are refunded. Skipped texts (the person opted out before it went out) send no event.

Body · message.failed
{
  "id": "evt_Qm4xT9rV2kLp8NwZ",
  "type": "message.failed",
  "created": "2026-11-20T17:02:15.940Z",
  "data": {
    "message": {
      "id": "a4c6e8f0-2b4d-4f6a-8c0e-1d3f5a7c9e86",
      "direction": "outbound",
      "status": "failed",
      "kind": "api",
      "from": "+14155550100",
      "to": "+14155550101",
      "body": "Hi Alice, your sourdough order is ready for pickup at Corner Bakery. Reply STOP to opt out.",
      "mediaUrls": [],
      "credits": 1,
      "contactId": "0f8d5c3a-6b2e-4f1d-9a7c-3e5b8d2f1a60",
      "campaignId": null,
      "error": "Number is not reachable",
      "sendAt": null,
      "createdAt": "2026-11-20T17:02:11.482Z",
      "sentAt": "2026-11-20T17:02:12.104Z",
      "deliveredAt": null
    }
  }
}

Payload#

application/json

idstringrequired

The event id, evt_ and 16 characters. The same event can be delivered more than once (a retry, or a manual resend): use the id to ignore repeats. Also sent in the SMSBlast-Event-Id header.

typestringrequired

The event type. Also sent in the SMSBlast-Event-Type header.

Always "message.failed".

createdstringdate-timerequired

When the event happened.

dataobjectrequired

The text as GET /v1/messages/{id} returned it at the time of the event.

Child fields
messageobjectrequired

One text, sent or received. Field names are camelCase.

Child fields
idstringuuidrequired

The message id.

directionstringrequired

outbound: a text you sent. inbound: a text someone sent to one of your numbers.

One of "outbound", "inbound".

statusstringrequired

Where the text is:

  • queued: waiting to go out (now, at sendAt, when sending hours open, or for a retry after the carrier was busy).
  • sending: being handed to the carrier right now.
  • sent: the carrier accepted it.
  • delivered: the carrier confirmed it reached the phone.
  • failed: it could not be sent, or the carrier reported it undelivered. error says why. A text that never reached the carrier gets its credits back.
  • skipped: not sent, because the person opted out before it went out, its campaign was stopped, the number is blocked on SMSBlast, or (for a keyword reply) there were not enough credits. Credits are given back.
  • received: an inbound text.

One of "queued", "sending", "sent", "delivered", "failed", "skipped", "received".

kindstringrequired

What sent it: campaign, api (POST /v1/messages), conversation (a reply from the inbox), workflow, welcome (a signup form's welcome text), reply (the answer to a signup keyword), compliance (the automatic answer to STOP, HELP or START), test (a campaign test send) or inbound (a text someone sent you).

One of "campaign", "api", "conversation", "workflow", "welcome", "reply", "compliance", "test", "inbound".

fromstringrequired

The sending number for outbound texts; the person's number for inbound ones. E.164.

tostringrequired

The person's number for outbound texts; your number for inbound ones. E.164.

bodystringrequired

The text exactly as sent or received (personalisation already filled in, tracked links already shortened).

mediaUrlsarray of stringsurirequired

Pictures sent with the text (MMS). For inbound texts, the pictures the person sent.

creditsintegerrequired

Credits it cost: 1 per SMS segment, 3 for a picture message, 0 for inbound texts and compliance answers.

contactIdstringuuidnullablerequired

The contact it was sent to or came from, when there is one.

campaignIdstringuuidnullablerequired

The campaign it belongs to, for campaign texts.

errorstringnullablerequired

Why it failed or was skipped. While a text is queued for another try after the carrier was busy, this reads "Will retry: ...".

sendAtstringdate-timenullablerequired

The earliest time it may go out, when it was scheduled, held for sending hours, or is waiting for a retry. Empty when it goes out as soon as possible.

createdAtstringdate-timerequired

When it was created (outbound) or received (inbound).

sentAtstringdate-timenullablerequired

When the carrier accepted it.

deliveredAtstringdate-timenullablerequired

When the carrier confirmed delivery.

A contact was added

EVENTcontact.created

A contact was added: with POST /v1/contacts (or by hand in the dashboard), by texting a signup keyword, or as an opt-out record when an unknown number texted STOP (then status is unsubscribed). Imports do not send this event.

Body · contact.created
{
  "id": "evt_Qm4xT9rV2kLp8NwZ",
  "type": "contact.created",
  "created": "2026-11-20T16:45:03.200Z",
  "data": {
    "contact": {
      "id": "0f8d5c3a-6b2e-4f1d-9a7c-3e5b8d2f1a60",
      "phone": "+14155550101",
      "first_name": "Alice",
      "last_name": "Moreno",
      "email": "alice@example.com",
      "timezone": "America/Los_Angeles",
      "status": "subscribed",
      "source": "api",
      "fields": {
        "favorite_bread": "Sourdough",
        "store": "Mission St"
      },
      "created_at": "2026-11-02T18:24:09.311Z"
    }
  }
}

Payload#

application/json

idstringrequired

The event id, evt_ and 16 characters. The same event can be delivered more than once (a retry, or a manual resend): use the id to ignore repeats. Also sent in the SMSBlast-Event-Id header.

typestringrequired

The event type. Also sent in the SMSBlast-Event-Type header.

Always "contact.created".

createdstringdate-timerequired

When the event happened.

dataobjectrequired

The contact as GET /v1/contacts/{id} returns it, at the time of the event.

Child fields
contactobjectrequired

A person on your contact list. Field names are snake_case.

Child fields
idstringuuidrequired

The contact id.

phonestringrequired

Mobile number in E.164 format, such as +14155550101. There is one contact per number in an account.

first_namestringnullablerequired

First name. Used by the {first_name} personalisation tag.

last_namestringnullablerequired

Last name. Used by the {last_name} personalisation tag.

emailstringnullablerequired

Email address, lower case.

timezonestringnullablerequired

IANA time zone such as America/Chicago. Campaign and workflow texts wait for 8am to 9pm in this time zone; when it is empty, the account time zone is used.

statusstringrequired

subscribed people can be texted. unsubscribed people opted out (by texting STOP or similar, or by being unsubscribed by you) and get nothing until they opt back in themselves.

One of "subscribed", "unsubscribed".

sourcestringnullablerequired

How the contact first got onto your list: import (an import or POST /v1/contacts/import), manual (POST /v1/contacts, or added by hand in the dashboard), keyword:JOIN (texted that signup keyword), form:Website footer (signed up with that signup form, by its name) or sms (first heard from when they texted STOP).

fieldsobjectrequired

Custom fields, as text: up to 30 per contact, names up to 60 characters, values up to 500. Segments can filter on them.

Any keys, each with a string value.

created_atstringdate-timerequired

When the contact was added.

A contact opted in

EVENTcontact.opted_in

A contact agreed to get your texts: added with consent through POST /v1/contacts (or by hand), texted a signup keyword, or texted START after opting out. source says which. Imports do not send this event.

Body · contact.opted_in
{
  "id": "evt_Qm4xT9rV2kLp8NwZ",
  "type": "contact.opted_in",
  "created": "2026-11-09T21:40:52.100Z",
  "data": {
    "contact": {
      "id": "7c4e1b9d-2a3f-4c5e-8d6b-9f0a1e2d3c71",
      "phone": "+14155550102",
      "first_name": "Ben",
      "last_name": "Carter",
      "email": null,
      "timezone": null,
      "status": "subscribed",
      "source": "keyword:JOIN",
      "fields": {},
      "created_at": "2026-11-09T21:40:52.007Z"
    },
    "source": "keyword:JOIN"
  }
}

Payload#

application/json

idstringrequired

The event id, evt_ and 16 characters. The same event can be delivered more than once (a retry, or a manual resend): use the id to ignore repeats. Also sent in the SMSBlast-Event-Id header.

typestringrequired

The event type. Also sent in the SMSBlast-Event-Type header.

Always "contact.opted_in".

createdstringdate-timerequired

When the event happened.

dataobjectrequired

The contact as GET /v1/contacts/{id} returns it, at the time of the event.

Child fields
contactobjectrequired

A person on your contact list. Field names are snake_case.

Child fields
idstringuuidrequired

The contact id.

phonestringrequired

Mobile number in E.164 format, such as +14155550101. There is one contact per number in an account.

first_namestringnullablerequired

First name. Used by the {first_name} personalisation tag.

last_namestringnullablerequired

Last name. Used by the {last_name} personalisation tag.

emailstringnullablerequired

Email address, lower case.

timezonestringnullablerequired

IANA time zone such as America/Chicago. Campaign and workflow texts wait for 8am to 9pm in this time zone; when it is empty, the account time zone is used.

statusstringrequired

subscribed people can be texted. unsubscribed people opted out (by texting STOP or similar, or by being unsubscribed by you) and get nothing until they opt back in themselves.

One of "subscribed", "unsubscribed".

sourcestringnullablerequired

How the contact first got onto your list: import (an import or POST /v1/contacts/import), manual (POST /v1/contacts, or added by hand in the dashboard), keyword:JOIN (texted that signup keyword), form:Website footer (signed up with that signup form, by its name) or sms (first heard from when they texted STOP).

fieldsobjectrequired

Custom fields, as text: up to 30 per contact, names up to 60 characters, values up to 500. Segments can filter on them.

Any keys, each with a string value.

created_atstringdate-timerequired

When the contact was added.

sourcestringrequired

Where they opted in: the consent source given to POST /v1/contacts (default manual), keyword:JOIN, form:Rk4xT9vQ (a signup form's publicId) or sms:START (the word they texted).

A contact opted out

EVENTcontact.opted_out

A contact opted out: they texted STOP or a similar word or phrase (source sms:...), or were unsubscribed with POST /v1/contacts/bulk or in the dashboard (manual). SMSBlast will not text them again; stop texting them from your other systems too.

Body · contact.opted_out
{
  "id": "evt_Qm4xT9rV2kLp8NwZ",
  "type": "contact.opted_out",
  "created": "2026-11-19T23:15:02.700Z",
  "data": {
    "contact": {
      "id": "7c4e1b9d-2a3f-4c5e-8d6b-9f0a1e2d3c71",
      "phone": "+14155550102",
      "first_name": "Ben",
      "last_name": "Carter",
      "email": null,
      "timezone": null,
      "status": "unsubscribed",
      "source": "keyword:JOIN",
      "fields": {},
      "created_at": "2026-11-09T21:40:52.007Z"
    },
    "source": "sms:STOP"
  }
}

Payload#

application/json

idstringrequired

The event id, evt_ and 16 characters. The same event can be delivered more than once (a retry, or a manual resend): use the id to ignore repeats. Also sent in the SMSBlast-Event-Id header.

typestringrequired

The event type. Also sent in the SMSBlast-Event-Type header.

Always "contact.opted_out".

createdstringdate-timerequired

When the event happened.

dataobjectrequired

The contact as GET /v1/contacts/{id} returns it, at the time of the event.

Child fields
contactobjectrequired

A person on your contact list. Field names are snake_case.

Child fields
idstringuuidrequired

The contact id.

phonestringrequired

Mobile number in E.164 format, such as +14155550101. There is one contact per number in an account.

first_namestringnullablerequired

First name. Used by the {first_name} personalisation tag.

last_namestringnullablerequired

Last name. Used by the {last_name} personalisation tag.

emailstringnullablerequired

Email address, lower case.

timezonestringnullablerequired

IANA time zone such as America/Chicago. Campaign and workflow texts wait for 8am to 9pm in this time zone; when it is empty, the account time zone is used.

statusstringrequired

subscribed people can be texted. unsubscribed people opted out (by texting STOP or similar, or by being unsubscribed by you) and get nothing until they opt back in themselves.

One of "subscribed", "unsubscribed".

sourcestringnullablerequired

How the contact first got onto your list: import (an import or POST /v1/contacts/import), manual (POST /v1/contacts, or added by hand in the dashboard), keyword:JOIN (texted that signup keyword), form:Website footer (signed up with that signup form, by its name) or sms (first heard from when they texted STOP).

fieldsobjectrequired

Custom fields, as text: up to 30 per contact, names up to 60 characters, values up to 500. Segments can filter on them.

Any keys, each with a string value.

created_atstringdate-timerequired

When the contact was added.

sourcestringrequired

How they opted out: sms:STOP (the words they texted, normalised, such as sms:PLEASE STOP) or manual (unsubscribed with POST /v1/contacts/bulk or in the dashboard).

A campaign was sent or scheduled

EVENTcampaign.sending

A campaign was sent (or scheduled, then scheduledFor is set) and its texts are queued.

Body · campaign.sending
{
  "id": "evt_Qm4xT9rV2kLp8NwZ",
  "type": "campaign.sending",
  "created": "2026-11-20T22:30:11.000Z",
  "data": {
    "campaign": {
      "id": "c8d2e4f6-a1b3-4c5d-8e7f-9a0b1c2d3e64",
      "name": "Holiday stollen",
      "status": "sending",
      "recipients": 1284,
      "credits": 1290,
      "startedAt": "2026-11-21T17:00:00.000Z",
      "scheduledFor": "2026-11-21T17:00:00.000Z"
    }
  }
}

Payload#

application/json

idstringrequired

The event id, evt_ and 16 characters. The same event can be delivered more than once (a retry, or a manual resend): use the id to ignore repeats. Also sent in the SMSBlast-Event-Id header.

typestringrequired

The event type. Also sent in the SMSBlast-Event-Type header.

Always "campaign.sending".

createdstringdate-timerequired

When the event happened.

dataobjectrequired
Child fields
campaignobjectrequired
Child fields
idstringuuidrequired

The campaign id.

namestringrequired

The campaign name.

recipientsintegerrequired

How many people it was sent to.

creditsintegerrequired

Credits taken for it.

startedAtstringdate-timerequired

When sending started, or the time it was scheduled for.

statusstringrequired

Always "sending".

scheduledForstringdate-timenullablerequired

The time it is scheduled for, or empty when it goes now.

A campaign finished

EVENTcampaign.sent

Every text of a campaign has gone out or ended. results are the counts at that moment; delivery reports can still arrive afterwards (see GET /v1/campaigns/{id}).

Body · campaign.sent
{
  "id": "evt_Qm4xT9rV2kLp8NwZ",
  "type": "campaign.sent",
  "created": "2026-11-21T17:09:47.600Z",
  "data": {
    "campaign": {
      "id": "c8d2e4f6-a1b3-4c5d-8e7f-9a0b1c2d3e64",
      "name": "Holiday stollen",
      "status": "sent",
      "recipients": 1284,
      "credits": 1290,
      "startedAt": "2026-11-21T17:00:00.000Z",
      "finishedAt": "2026-11-21T17:09:47.512Z",
      "results": {
        "sent": 1272,
        "delivered": 1198,
        "failed": 9,
        "skipped": 3
      }
    }
  }
}

Payload#

application/json

idstringrequired

The event id, evt_ and 16 characters. The same event can be delivered more than once (a retry, or a manual resend): use the id to ignore repeats. Also sent in the SMSBlast-Event-Id header.

typestringrequired

The event type. Also sent in the SMSBlast-Event-Type header.

Always "campaign.sent".

createdstringdate-timerequired

When the event happened.

dataobjectrequired
Child fields
campaignobjectrequired
Child fields
idstringuuidrequired

The campaign id.

namestringrequired

The campaign name.

recipientsintegerrequired

How many people it was sent to.

creditsintegerrequired

Credits taken for it.

startedAtstringdate-timerequired

When sending started, or the time it was scheduled for.

statusstringrequired

Always "sent".

finishedAtstringdate-timerequired

When the last text went out or ended.

resultsobjectrequired

Results at the moment it finished. Delivery reports can still arrive later.

Child fields
sentintegerrequired

Texts the carrier accepted (including the delivered ones).

deliveredintegerrequired

Texts confirmed delivered so far.

failedintegerrequired

Texts that failed.

skippedintegerrequired

Texts not sent because the person opted out first.

A tracked link was clicked

EVENTlink.clicked

A person opened a tracked link in one of your texts for the first time. Later clicks on the same link by the same person, and visits by link previewers and scanners, send no event.

Body · link.clicked
{
  "id": "evt_Qm4xT9rV2kLp8NwZ",
  "type": "link.clicked",
  "created": "2026-11-21T18:02:44.019Z",
  "data": {
    "link": {
      "url": "https://example.com/stollen",
      "campaignId": "c8d2e4f6-a1b3-4c5d-8e7f-9a0b1c2d3e64",
      "workflowId": null,
      "clickedAt": "2026-11-21T18:02:44.019Z"
    },
    "contact": {
      "id": "0f8d5c3a-6b2e-4f1d-9a7c-3e5b8d2f1a60",
      "phone": "+14155550101",
      "first_name": "Alice",
      "last_name": "Moreno",
      "status": "subscribed"
    }
  }
}

Payload#

application/json

idstringrequired

The event id, evt_ and 16 characters. The same event can be delivered more than once (a retry, or a manual resend): use the id to ignore repeats. Also sent in the SMSBlast-Event-Id header.

typestringrequired

The event type. Also sent in the SMSBlast-Event-Type header.

Always "link.clicked".

createdstringdate-timerequired

When the event happened.

dataobjectrequired
Child fields
linkobjectrequired
Child fields
urlstringrequired

The original link.

campaignIdstringuuidnullablerequired

The campaign the text was part of.

workflowIdstringuuidnullablerequired

The workflow the text was part of.

clickedAtstringdate-timerequired

When it was clicked.

contactobjectnullablerequired

Who clicked, when the text went to a contact.

Child fields
idstringuuidrequired

The contact id.

phonestringrequired

Their number, E.164.

first_namestringnullablerequired

First name.

last_namestringnullablerequired

Last name.

statusstringrequired

Their status now.

One of "subscribed", "unsubscribed".

Test event

EVENTwebhook.test

Sent only when you call POST /v1/webhooks/{id}/test, even to a webhook that is switched off. It is tried once and never retried, and does not count towards switching a failing webhook off.

Body · webhook.test
{
  "id": "evt_Qm4xT9rV2kLp8NwZ",
  "type": "webhook.test",
  "created": "2026-11-20T16:45:03.200Z",
  "data": {
    "message": "This is a test event from SMSBlast. If you can read it, your endpoint works."
  }
}

Payload#

application/json

idstringrequired

The event id, evt_ and 16 characters. The same event can be delivered more than once (a retry, or a manual resend): use the id to ignore repeats. Also sent in the SMSBlast-Event-Id header.

typestringrequired

The event type. Also sent in the SMSBlast-Event-Type header.

Always "webhook.test".

createdstringdate-timerequired

When the event happened.

dataobjectrequired
Child fields
messagestringrequired

Always "This is a test event from SMSBlast. If you can read it, your endpoint works."