Skip to content
Letterhead Letterhead Letterhead Help Center
Admin Tools

Get an SMS campaign's non-delivery breakdown

GET
/api/v3/channels/{channelSlug}/letters/{letterUniqueId}/sms/delivery-errors
curl --request GET \
--url 'https://api.tryletterhead.com/api/v3/channels/example/letters/example/sms/delivery-errors?api=true' \
--header 'Authorization: Bearer <token>'

One SMS campaign’s non-delivery breakdown for the campaign report’s delivery-errors card: the classes of failure and how many recipients each hit, most-affected first. Counts only — no recipient identity ever appears in the response.

This endpoint is gated behind an internal feature flag that is not yet enabled for any tenant. While it’s off, the endpoint returns an empty list.

v3 endpoints expect a company API key.

channelSlug
required
string

The newsletter’s channel identifier (slug).

letterUniqueId
required
string

Unique id of the SMS campaign (letter).

api
required
boolean

Required. Set to true.

200 OK

Media type application/json
object
items
Array<object>
object
category
string
errorCode
string
affectedRecipients
integer
message
string
total
integer
Example
{
"items": [
{
"category": "carrier_rejected",
"errorCode": "30007",
"affectedRecipients": 12
}
],
"message": "Ok",
"total": 1
}

404 Not Found — channelSlug doesn’t match a channel this company owns, the letter isn’t found on this channel, or the letter isn’t an SMS campaign.

Media type application/json
object
data
Array<object>
object
items
Array<object>
object
message
string
total
integer
Example
{
"data": [],
"items": [],
"message": "Letter is not found on this channel.",
"total": 0
}

Still can’t find what you need? Contact support.