Skip to content
This site documents the main branch, which may hold changes not yet released. Latest release: v0.3.0 (changelog).

Message detail: recipients, events, attachments

GET
/capture/messages/{id}
curl --request GET \
--url http://localhost:3000/capture/messages/example \
--header 'Authorization: Bearer <token>'
id
required
string
/^msg_[A-Za-z0-9-]{1,64}$/

The message.

Media typeapplication/json
object
id
required
string
/^msg_[A-Za-z0-9-]{1,64}$/
connectionId
required
Any of:
string
/^con_[A-Za-z0-9-]{1,64}$/
source
required
string
Allowed values: native resend brevo smtp
from
required
object
email
required
string
name
required
string | null
to
required
Array<object>
object
email
required
string
name
required
string | null
subject
required
string
status
required
string
Allowed values: queued sent delivered deferred soft_bounce hard_bounce complained failed invalid suppressed
tags
required
Array<object>
object
name
required
string
/^[\w-]{1,256}$/
value
required
string
<= 256 characters
hasAttachments
required
boolean
createdAt
required
string format: date-time
/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z|([+-](?:[01]\d|2[0-3]):[0-5]\d)))$/
cc
required
Array<object>
object
email
required
string
name
required
string | null
bcc
required
Array<object>
object
email
required
string
name
required
string | null
replyTo
required
Array<object>
object
email
required
string
name
required
string | null
html
required
string | null
text
required
string | null
headers
required
object
key
additional properties
string
metadata
required
object
key
additional properties
links
required
Array<object>
object
url
required
string
text
string
attachments
required
Array<object>
object
id
required
string
/^att_[A-Za-z0-9-]{1,64}$/
filename
required
string | null
contentType
required
string
contentId
required
string | null
sizeBytes
required
integer
>= -9007199254740991 <= 9007199254740991
inline
required
boolean
downloadUrl
required
string
recipients
required
Array<object>
object
email
required
string
name
required
string | null
kind
required
string
Allowed values: to cc bcc
status
required
string
Allowed values: queued sent delivered deferred soft_bounce hard_bounce complained failed invalid suppressed
reason
required
string | null
events
required
Array<object>
object
id
required
string
/^evt_[A-Za-z0-9-]{1,64}$/
type
required
string
Allowed values: accepted sent delivered deferred soft_bounce hard_bounce complained failed invalid suppressed opened clicked
origin
required
string
Allowed values: simulation api ui mcp
recipient
required
string | null
data
required
object
url
string
userAgent
string
reason
string
smtpCode
integer
>= -9007199254740991 <= 9007199254740991
occurredAt
required
string format: date-time
/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z|([+-](?:[01]\d|2[0-3]):[0-5]\d)))$/
rawUrl
required
string
simulation
required
Any of:
object
key
additional properties
webhookDeliveries
required
Array<object>
object
id
required
string
/^whd_[A-Za-z0-9-]{1,64}$/
endpointId
required
string
/^whe_[A-Za-z0-9-]{1,64}$/
messageId
required
Any of:
string
/^msg_[A-Za-z0-9-]{1,64}$/
eventId
required
Any of:
string
/^evt_[A-Za-z0-9-]{1,64}$/
payloadFormat
required
string
Allowed values: unified resend brevo
canonicalEvent
required
string
Allowed values: email.sent email.delivered email.deferred email.soft_bounced email.hard_bounced email.complained email.opened email.clicked email.suppressed email.failed email.invalid
dialectEvent
required
string
recipient
required
string | null
status
required
string
Allowed values: pending retrying succeeded failed
attemptCount
required
integer
>= -9007199254740991 <= 9007199254740991
nextAttemptAt
required
Any of:
string format: date-time
/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z|([+-](?:[01]\d|2[0-3]):[0-5]\d)))$/
lastStatusCode
required
Any of:
integer
>= -9007199254740991 <= 9007199254740991
replayOf
required
Any of:
string
/^whd_[A-Za-z0-9-]{1,64}$/
replayMode
required
Any of:
string
Allowed values: exact resign
endpointUrl
required
string | null
durationMs
required
Any of:
integer
>= -9007199254740991 <= 9007199254740991
createdAt
required
string format: date-time
/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z|([+-](?:[01]\d|2[0-3]):[0-5]\d)))$/

Example

{
"source": "native",
"status": "queued",
"recipients": [
{
"kind": "to",
"status": "queued"
}
],
"events": [
{
"type": "accepted",
"origin": "simulation"
}
],
"webhookDeliveries": [
{
"payloadFormat": "unified",
"canonicalEvent": "email.sent",
"status": "pending",
"replayMode": "exact"
}
]
}
X-Request-Id
required

Id of the request (req_…), also the id of its request log row.

string

Id of the request (req_…), also the id of its request log row.

Error: validation_error

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: unauthorized forbidden validation_error not_found conflict idempotency_mismatch rate_limited payload_too_large chaos_injected wait_timeout internal_error
message
required
string
details
requestId
required
string

Example

{
"error": {
"code": "unauthorized"
}
}
X-Request-Id
required

Id of the request (req_…), also the id of its request log row.

string

Id of the request (req_…), also the id of its request log row.

Error: unauthorized

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: unauthorized forbidden validation_error not_found conflict idempotency_mismatch rate_limited payload_too_large chaos_injected wait_timeout internal_error
message
required
string
details
requestId
required
string

Example

{
"error": {
"code": "unauthorized"
}
}
X-Request-Id
required

Id of the request (req_…), also the id of its request log row.

string

Id of the request (req_…), also the id of its request log row.

WWW-Authenticate
required

Sent with every 401.

string
Allowed value: Bearer

Sent with every 401.

Error: forbidden

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: unauthorized forbidden validation_error not_found conflict idempotency_mismatch rate_limited payload_too_large chaos_injected wait_timeout internal_error
message
required
string
details
requestId
required
string

Example

{
"error": {
"code": "unauthorized"
}
}
X-Request-Id
required

Id of the request (req_…), also the id of its request log row.

string

Id of the request (req_…), also the id of its request log row.

Error: not_found

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: unauthorized forbidden validation_error not_found conflict idempotency_mismatch rate_limited payload_too_large chaos_injected wait_timeout internal_error
message
required
string
details
requestId
required
string

Example

{
"error": {
"code": "unauthorized"
}
}
X-Request-Id
required

Id of the request (req_…), also the id of its request log row.

string

Id of the request (req_…), also the id of its request log row.

Error: validation_error

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: unauthorized forbidden validation_error not_found conflict idempotency_mismatch rate_limited payload_too_large chaos_injected wait_timeout internal_error
message
required
string
details
requestId
required
string

Example

{
"error": {
"code": "unauthorized"
}
}
X-Request-Id
required

Id of the request (req_…), also the id of its request log row.

string

Id of the request (req_…), also the id of its request log row.

Error: internal_error

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: unauthorized forbidden validation_error not_found conflict idempotency_mismatch rate_limited payload_too_large chaos_injected wait_timeout internal_error
message
required
string
details
requestId
required
string

Example

{
"error": {
"code": "unauthorized"
}
}
X-Request-Id
required

Id of the request (req_…), also the id of its request log row.

string

Id of the request (req_…), also the id of its request log row.