List Email Logs
Beta/v1/core/email-logsThis endpoint is idempotent. Learn more
Returns a paginated list of email logs for the current account, most recently created first.
The q search term matches the subject line or any recipient address.
cursoroptional stringOpaque cursor token identifying where the page of results starts.
Use the cursor value embedded in a previous response's next_page_url or previous_page_url to fetch the adjacent page. Omit to start from the first page.
limitoptional integerMaximum number of results to return in a single page.
qoptional stringFree-text search term used to filter results.
Which fields are matched against the term varies by endpoint.
include[]optional arrayenumValues:sent_bySub-objects to expand in the response. When omitted, sub-objects are returned as null.
objectstringenumValues:listResource type identifier.
page_infoobjectPagination metadata.
next_page_urlstringnullableRelative URL that fetches the next page of results.
previous_page_urlstringnullableRelative URL that fetches the previous page of results.
has_next_pagebooleanWhether more results exist after this page.
has_prev_pagebooleanWhether results exist before this page.
dataarray of email_logResources in this page.
idstringEmail log ID.
objectstringenumValues:email_logResource type identifier.
send_statusstringenumValues:sentpendingWhether the email was handed off to the delivery provider.
sent: the provider accepted the email for delivery. It does not confirm that the recipient's mail server accepted it.pending: the email was never handed off — the send attempt failed, or it was suppressed because the account is in sandbox mode.
recipientsarray of stringRecipient email addresses.
subjectstringnullableEmail subject line.
filenamestringnullableFilename of the document attached to the email.
sent_byactorExpandablenullableThe user or API key that sent the email.
Emails the platform sends automatically, such as system notifications, are not attributed to an actor.
idstringUnique identifier of the actor.
objectstringenumValues:actorResource type identifier.
typestringenumValues:userapi_keyagentActor type.
user: a human user account.api_key: a programmatic caller authenticating with an API key.agent: an automated agent acting on the account's behalf.group: a shared group identity, such as a "Customer Service" persona, rather than a single individual.
namestringnullableThe actor's display name.
handlestringnullableHuman-readable handle identifying the actor.
- For
useractors: the user's email address. - For
api_keyactors: the redacted key value.
Other actor types carry no handle.
avatar_urlstringnullableURL of the actor's profile photo, if one is set.
Only populated for user actors.
The role the actor holds in the account, which determines what it is permitted to do.
null in this endpoint.created_atstring (date-time)Creation timestamp.
updated_atstring (date-time)Last updated timestamp.
Responses
Successful response for List Email Logs