Skip to Content
SendlySendly
API ReferenceCampaigns

List a campaign's failed sends

GET
/api/v1/campaigns/{id}/failures

The recipients this campaign did not reach, read from its per-contact send ledger. The campaign counters say how many were sent; only this says WHO was dropped and why, which is what makes retrying a decision rather than a guess.

reason comes from a fixed vocabulary, not from the underlying error text, so it is stable enough to branch on. It is null for rows recorded before reasons were captured.

Cursor-paginated like every other v1 list. Unlike them it also returns total: the retry action operates on that number, and a page that can only say has_more cannot tell you whether 3 or 30,000 sends failed.

Requires the campaigns:read scope — View your campaigns and their performance.

headerAuthorizationBearer <API Key>

API key authentication. Use a sk_* (FULL) or pk_* (SENDING_ONLY) key as the bearer token. Public keys (pk_*) are restricted to the email-send endpoints and the self-serve list subscribe/unsubscribe pair; every other endpoint — event tracking included — answers 403 for them. In scope terms (used by /api/v1/* operations): FULL keys hold every scope; SENDING_ONLY keys hold only emails:send.

id*string

Resource id.

Formatuuid
limit?integer
Range1 <= value <= 100
Default20
after?string

Opaque cursor from a previous response's next_cursor.

Length1 <= length

Response Body

Failed sends

application/json
  1. response

Cursor-paginated list of a campaign's failed sends.

data*array<>
has_more*boolean
next_cursor*|

Pass as after to fetch the next page. null on the last page.

total*integer

Every FAILED row on this campaign, not just this page.

Example Request
curl -X GET 'https://api.sendly.now/api/v1/campaigns/497f6eca-6276-4993-bfeb-53cbbbba6f08/failures'
Example Response
{  "data": [    {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "contact_id": "f245e2a3-e141-4d41-912c-b1c1f5bd5598",      "email": "string",      "reason": "string",      "failed_at": "2019-08-24T14:15:22Z"    }  ],  "has_more": true,  "next_cursor": "string",  "total": 0}