Search Emails

Search for Emails based on the specified criteria.

Data retention: Records are available for 7 days after creation. Requests for data older than 7 days may return incomplete results.

Authentication

AuthorizationBasic

Basic authentication of the form Basic <base64(username:password)>.

OR
AuthorizationBasic

Basic authentication of the form Basic <base64(username:password)>.

Query parameters

pageTokenstringOptional
The token to retrieve the next page of results.
pageSizeintegerOptional1-1000Defaults to 50
The number of resources to return in a page.

Request

This endpoint expects an object.
operationIdstringOptionalformat: "^comms_operation_[0-7][a-hjkmnpqrstv-z0-9]{25,34}"
Filter Emails by Operation ID.
sessionIdstringOptionalformat: "^comms_session_[a-hjkmnpqrstv-z0-9]{26,34}"
Filter Emails by Session ID.
startDatestringOptionalformat: "date-time"
Filter to Emails created after the specified date and time.
endDatestringOptionalformat: "date-time"
Filter to Emails created before the specified date and time.
profilestringOptionalformat: "^mem_profile_[0-7][a-hjkmnpqrstv-z0-9]{25,34}"
Filter Emails sent or received by Profile ID.
addressstringOptional
Filter Emails sent or received from an address.
statusenumOptional
Filter Emails by Delivery Status.
tagsmap from strings to stringsOptional
Match Emails by one or many tags. If more than one tag is specified, the search will return Emails that have all the tags.

Response

OK
emailslist of objects
A list of Emails.
paginationobject

Metadata for paginated results. This object contains two tokens to navigate through paginated results.

  • Use next to retrieve the ‘next’ page in the result list.
  • Use self to retrieve the same page of the result list again.
  • Supply the token in the pageToken query param.

Errors

400
Bad Request Error
429
Too Many Requests Error
500
Internal Server Error
503
Service Unavailable Error