Skip to content

Search the brand transactional messages by recipient, date, template, stream and status (cursor-paginated, newest first)

GET
/v1/brands/{brand}/messages
curl --request GET \
--url 'https://api.replifier.com/v1/brands/brd_01hx0000000000000000000000/messages?status=queued' \
--header 'Authorization: Bearer <token>'

Filters are combined with AND. Each page is served from a brand index, regardless of how many messages exist. nextCursor is null on the last page. Never returns variables or message content.

brand
required
string
/^brd_[a-z0-9]{26}$/

Example

brd_01hx0000000000000000000000
recipient

Full email address (exact match) or its prefix (at least 3 characters). Case-insensitive.

string
<= 254 characters /^[^\x00-\x1f\x7f]*$/

Full email address (exact match) or its prefix (at least 3 characters). Case-insensitive.

from

Created on or after this date (inclusive)

string format: date-time

Created on or after this date (inclusive)

to

Created before this date (exclusive)

string format: date-time

Created before this date (exclusive)

template
string
/^tpl_[a-z0-9]{26}$/
stream

Stream short name

string
>= 1 characters <= 48 characters /^[a-z0-9]+(-[a-z0-9]+)*$/

Stream short name

status
string
Allowed values: queued sending accepted skipped failed
limit
string
cursor
string

Messages

Media typeapplication/json
object
data
required
Array<object>
object
id
required
string
brandId
required
string
streamId
required
string
streamSlug
required
string
templateId
required
string
nullable
templateVersion
required
integer
nullable
to
required
object
email
required
string
name
required
string
nullable
subject
required
string
locale
required
string
nullable
status
required
string
Allowed values: queued sending accepted skipped failed
skipReason
required
string
nullable
errorCode
required

Stable failure code (unknown_result, provider_rejected…); the provider free-text message is not returned

string
nullable
attempts
required
integer
metadata
required
object
key
additional properties
nullable
sizeBytes
required
integer
sendAt
required
string
nullable
createdAt
required

With microseconds: it is the cursor key

string
updatedAt
required
string
nextCursor
required
string
nullable

Example

{
"data": [
{
"status": "queued"
}
]
}

Invalid data

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string

Example

{
"error": {
"code": "not_found"
}
}

No session, expired session, or invalid, expired or revoked API key

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string

Example

{
"error": {
"code": "not_found"
}
}

Does not exist or is not visible to you

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string

Example

{
"error": {
"code": "not_found"
}
}

Internal error

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string

Example

{
"error": {
"code": "not_found"
}
}