How to Check Campaign Status
Query the current delivery status of every recipient of an SMS campaign, on demand, using the campaign_id the API already returned to you when you sent it.
๐ Prerequisites
- Valid
api-tokenandapp-idfrom your LigueLead account - A
campaign_idreturned byPOST /v1/sms(see How to Send SMS)
๐ Check Recipients Status
Endpoint: GET /v1/campaigns/{campaign_id}/recipients
Works for both standard SMS and SMS Flash: campaign_type is sms or sms_flash.
Request Example
curl -X GET "https://api.liguelead.com.br/v1/campaigns/2f7b3c40-8f93-4a3b-9b71-6c8b5bf1b5e2/recipients?limit=100" \
-H "api-token: YOUR_API_TOKEN" \
-H "app-id: YOUR_APP_ID"Response Example
{
"message": "Campaign recipients retrieved successfully.",
"data": {
"campaign_id": "2f7b3c40-8f93-4a3b-9b71-6c8b5bf1b5e2",
"campaign_type": "sms",
"recipients": [
{
"phone": "+5511999999999",
"status": "delivered",
"sent_at": "2026-07-29T11:20:03-03:00",
"updated_at": "2026-07-29T11:20:41-03:00"
},
{
"phone": "+5521888888888",
"status": "invalid_number",
"sent_at": "2026-07-29T11:20:03-03:00",
"updated_at": "2026-07-29T11:20:05-03:00"
}
],
"pagination": {
"limit": 100,
"next_cursor": "KzU1MjE4ODg4ODg4ODg"
}
}
}๐ Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
limit | integer | โ | Page size, 1โ500. Defaults to 100 |
cursor | string | โ | Opaque cursor from a previous response. Cannot be combined with phone |
phone | string | โ | Narrows the result to a single recipient. Cannot be combined with cursor |
๐ Recipient Statuses
| Status | Description |
|---|---|
queued | Accepted by us, not yet handed to a carrier |
in_progress | Accepted by the carrier, delivery report pending |
delivered | Reported as delivered |
unreachable | Number is unreachable or the region is denied |
invalid_number | Number is invalid, a landline, or does not support SMS |
policy_block | Blocked by a content filter (spam, fraud or content policy) |
opt_out | Recipient has unsubscribed from SMS messages |
insufficient_credits | No credits available at send time; the message was never dispatched |
request_error | The carrier rejected the request synchronously |
config_error | Message or account configuration issue |
generic_error | Unknown carrier or platform error |
unknown_error | Unclassified error |
About the timestamps
Both timestamps are ISO-8601 with the Sรฃo Paulo offset (-03:00), not UTC โ the same
form used by the daily detailed report and by the per-message webhook. The offset is part
of the string, so any ISO-8601 parser resolves it to the exact instant:
2026-07-29T18:45:50-03:00 == 2026-07-29T21:45:50Z
About updated_at
updated_atsent_at is when LigueLead processed the message for sending, and it never changes โ it is
filled even when the message was not dispatched, as with insufficient_credits. updated_at
is when LigueLead recorded the recipient's latest status โ it only moves when a new status
is actually recorded, so a duplicated or out-of-order delivery report leaves it untouched. In
the example above the two are 38 seconds apart: the message was processed at 11:20:03 and
its delivery was recorded at 11:20:41.
๐ก Note: This endpoint reports the same statuses as the per-message SMS webhook described in
How to Receive Webhooks, one row per recipient. Use webhooks to be
notified as each status happens, and use this endpoint to reconcile โ to see every recipient,
including one whose webhook your endpoint missed (not the SMS fallback of an RCS send, which this
endpoint does not keep). On an account in the legacy webhook format, the
webhook reports only delivered, and this endpoint is how to see the recipients that were not
delivered.
๐ Pagination
Follow data.pagination.next_cursor until it is no longer present:
# First page
curl -X GET ".../recipients?limit=500" -H "api-token: ..." -H "app-id: ..."
# Next page โ pass the cursor back verbatim
curl -X GET ".../recipients?limit=500&cursor=KzU1MjE4ODg4ODg4ODg" \
-H "api-token: ..." -H "app-id: ..."Two things to keep in mind:
- A page may contain fewer items than
limit. That does not mean you reached the
end โ only the absence ofnext_cursordoes. - The listing is not a point-in-time snapshot. It never repeats a recipient, but a
recipient whose first status is recorded while you are already paginating may only
show up on a later pass. For a definitive count, paginate again once the campaign has
settled.
Treat next_cursor as opaque: pass it back exactly as received, and do not build or
modify one yourself.
๐ฑ Checking a Single Recipient
Pass phone to look up one recipient directly, in any format:
curl -X GET ".../recipients?phone=11999999999" \
-H "api-token: YOUR_API_TOKEN" -H "app-id: YOUR_APP_ID"All of these resolve to the same recipient: 11999999999, (11) 99999-9999,
5511999999999, +5511999999999. For a mobile number, include the ninth digit: a number
sent in the old 8-digit form is stored with the ninth digit restored, and a lookup without
it is not found.
If you use + inside a query string, URL-encode it as %2B (a raw + means "space").
Sending it without the + avoids the issue entirely.
An international SMS recipient is found by its
number with the country code โ %2B61412345678, or 61412345678 without the +.
โฑ๏ธ Availability and Retention
| Right after sending | Recipient records are written as the campaign is processed, which usually begins a few seconds after POST /v1/sms returns. Querying immediately may answer 404 โ retry after a few seconds. If processing is delayed, a record can take up to about an hour to appear |
| Scope | A campaign is read through the app that sent it: use the same app-id you used on the POST /v1/sms. Another app of the same account answers 404 |
| Retention | Records are kept for 72 hours. After that the campaign answers 404; use the daily detailed report for historical data |
๐ ๏ธ Troubleshooting
| Status | Cause | What to do |
|---|---|---|
401 | Missing or invalid api-token / app-id | Check both headers |
404 | Campaign does not exist, belongs to another account or to another app of yours, is older than 72 h, has not started processing yet, or the requested phone is not part of it | Confirm the campaign_id and use the same app-id that sent it; if you just sent it, retry in a few seconds โ and, if it persists, again later: a delayed campaign can take up to about an hour to appear |
422 | campaign_id is not a UUID, limit is outside 1โ500, cursor is invalid, phone is malformed, or phone and cursor were sent together | Check the parameters against the table above |
Recipients that stay in_progress
in_progressSome routes do not return a delivery report. When that happens the recipient legitimately
remains in_progress and the message may still have been delivered โ the carrier simply
never confirmed it. We deliberately do not promote those to a failure status, so what you
read here always matches your detailed report.
A number you sent twice appears once
Recipients are identified by phone number. If the same number appeared more than once in
the same send โ including as different formats such as 11999999999 and
(11) 99999-9999 โ it is listed once here, with a single status. The send itself is
unaffected.
๐ Support
- Documentation: docs.liguelead.com.br
- Client Area: areadocliente.liguelead.app.br
Updated about 14 hours ago
