Menu

List campaign messages

GET/v1/campaigns/{id}/messages

Requires an API key with the campaigns:read scope. About keys and scopes

Delivery records for one campaign — one per contact per channel — including status and any provider failure reason. Filter with channel to see one channel. Results are cursor-paginated: pass meta.pagination.nextCursor back as cursor until it comes back null. The cursor is opaque — do not construct or parse one.

Path parameters

idstringrequired

uuid

Query parameters

limitintegeroptional

min > 0 · max 100 · default 20

cursorstringoptional

1–2048 characters

channelstringoptional

Only this channel; a multi-channel campaign lists one row per contact per channel.

one of email, push

statusstringoptional

Only messages in this status.

one of queued, sending, skipped, sent, failed, delivered, bounced, complained

emailstringoptional

Part of the recipient's address, case-insensitive.

1–320 characters

openedstringoptional

true: opened (or clicked) at least once; false: never.

one of true, false

clickedstringoptional

true: a link clicked at least once; false: never.

one of true, false

Returns

Returns 200 OK with a list of CampaignDeliveryMessage objects in data, and the next page's cursor in meta (see pagination). Otherwise returns an error; Errors lists every code and which to retry.

idstringrequired

uuid

contactIdstring | nullrequired

Null when the contact was erased, or the message passed the retention period: the message no longer names anyone.

uuid

recipientAddressstring | nullrequired

The email address it went to; null for a push message.

email

channelstringrequired

one of email, push

statusstringrequired

Where the message is in delivery.

one of queued, sending, skipped, sent, failed, delivered, bounced, complained

failureReasonstring | nullrequired

Why it failed or was skipped, if it did.

sentAtstring | nullrequired

When it was handed to the provider.

date-time

deliveredAtstring | nullrequired

When delivery was confirmed.

date-time

failedAtstring | nullrequired

When it failed.

date-time

openedAtstring | nullrequired

When it was first opened.

date-time

clickedAtstring | nullrequired

When a link was first clicked.

date-time

createdAtstringrequired

date-time