Zum Inhalt springen

Delivery status of the mails of an API send

GET
/campaigns/{campaignId}/messages
Code sample: Shell / cURL
curl --request GET \
--url https://rocketem.fotone.io/api/v2/campaigns/example/messages \
--header 'Authorization: Bearer <token>'

Required scope: messages:status

The state of the mails an API-send campaign took, by your own reference. Pass reference for one mail or references[] for up to 50. A reference nothing was handed in under is not in the answer; a reference used for several addresses returns one entry per address. States are kept for 90 days.

Requires the messages:status scope. The address, the subject and the reply of the receiving mail server are part of the answer only for a token that also has messages:status_pii (or recipients:read_pii, which covers the whole recipient list).

campaignId
required
string

Campaign public_id

reference
string
<= 191 characters
references[]
Array<string>
<= 50 items

States

Media typeapplication/json
object
data
Array<object>
object
reference
string
email

Only with messages:status_pii or recipients:read_pii

string
subject

The subject the mail went out with, null until it is sent. Only with messages:status_pii or recipients:read_pii

string
nullable
status

queued: accepted. sent: taken over by our mail server. delivered: accepted by the recipient’s mail server. deferred: delayed, further attempts follow. bounced: given up or rejected by the recipient’s server. failed: could not be sent. skipped: not sent (suppressed).

string
Allowed values: queued sent delivered deferred bounced failed skipped
detail

Bounce kind (hard, soft, reputation) and server answer; for skipped the reason (e.g. blacklisted:legal, hard_bounce, campaign_blacklist, unsubscribed); for failed one of send_failed, attachment_invalid, campaign_deactivated, skipped_by_hook. Without the recipients:read_pii scope a bounce or deferral shows kind and status codes only (hard: 550 5.1.1), not the text of the mail server.

string
nullable
queued_at
string format: date-time
nullable
sent_at
string format: date-time
nullable
status_at
string format: date-time
nullable

Examples

Examplestates

One mail delivered, one bounced

{
"data": [
{
"reference": "RE-2026-0001",
"status": "delivered",
"detail": null,
"queued_at": "2026-11-12T09:15:02+01:00",
"sent_at": "2026-11-12T09:15:04+01:00",
"status_at": "2026-11-12T09:15:06+01:00"
},
{
"reference": "RE-2026-0002",
"status": "bounced",
"detail": "hard: 550 5.1.1 User unknown",
"queued_at": "2026-11-12T09:15:02+01:00",
"sent_at": "2026-11-12T09:15:04+01:00",
"status_at": "2026-11-12T09:15:05+01:00"
}
]
}

Missing scope

Resource not found

Media typeapplication/json
object
error
object
code
string
message
string
status
integer

Example generated

{
"error": {
"code": "example",
"message": "example",
"status": 1
}
}

Neither reference nor references[] given, or more than 50

The state could not be read right now. Ask again after Retry-After seconds.

Media typeapplication/json
object
error
object
code
string
message
string
status
integer

Example

{
"error": {
"code": "retry_later",
"message": "Not available right now. Ask again after Retry-After seconds.",
"status": 503
}
}
Retry-After
integer

Seconds to wait