List email messages
Changed onLists messages sorted newest first by created_at desc, id desc. Tags and metadata filters compose with cursor pagination. The legacy /v2/emails GET route is a backward-compatible alias for this operation.
Request
- Base URL: https://api.telnyx.com/v2
- URL: https://api.telnyx.com/v2/email_messages
- Auth: HTTP bearer
Query parameters
Number of results to return. Defaults to 25; maximum is 100. Invalid values are clamped to the valid range.
Opaque URL-safe Base64 cursor returned by a previous list response.
Comma-separated tags. Each segment is trimmed, and messages having at least one supplied tag are returned; matching is exact and case-sensitive after trimming. Because commas delimit values and surrounding whitespace is removed, this filter cannot represent stored tags containing literal commas or leading/trailing whitespace. An empty value omits the filter. Empty segments and non-string/nested query shapes return HTTP 400.
Metadata containment filter, supplied as a JSON object or comma-separated key=value pairs. All supplied key/value pairs must be contained in the message metadata. An empty value or empty JSON object omits the filter. Malformed values, valid non-object JSON, pairs without =, empty keys, and non-string/nested query shapes return HTTP 400.
Response
Paginated list of email messages.
Example response
{
"data": [
{
"recipient_statuses": {
"delivered": 998,
"bounced": 2
}
}
]
}Changes
- warning
added the new
expiredenum value to the////response property for the response status - warning
added the new
gw_rejectenum value to the////response property for the response status - warning
added the new
injection_timeoutenum value to the////response property for the response status - warning
added the new
quarantine_expiredenum value to the////response property for the response status - warning
added the new
quarantine_rejectedenum value to the////response property for the response status - warning
added the new
quarantine_release_dispatchedenum value to the////response property for the response status - warning
added the new
quarantine_releasedenum value to the////response property for the response status - warning
added the new
quarantinedenum value to the////response property for the response status - warning
added the new
scan_deferredenum value to the////response property for the response status - warning
added the new
suppressedenum value to the////response property for the response status - info
added the new optional
queryrequest parameterfilter[metadata] - info
added the new optional
queryrequest parameterfilter[tags] - info
added the non-success response with the status
- info
added the required property
//to the response with the status - info
added the required property
//to the response with the status
- warning
- warning
added the new
10011enum value to the//response property for the response status - warning
added the new
domain_graduation_limit_exceededenum value to the//response property for the response status
- warning