FlaresendDocs
Emails

List emails

Search the project's emails by status, recipient, sender, subject, tag and date.

GET/v1/emailsAPI key

Returns the project's emails, newest first, paginated. Every filter is optional and they combine with AND.

Each email includes its recipients, but events is always an empty array here. Retrieve the email to get its event timeline.

Query parameters

limitnumberquerydefault: 25

1 to 100.

cursorstringquery

The nextCursor from the previous page.

statusstringquery

One of queued, scheduled, sending, sent, delivered, deferred, bounced, complained, rejected, failed, test, canceled. See Email statuses.

tostringquery

Matches any recipient, whether in to, cc or bcc. A full address (with @) must match exactly. Anything else matches part of an address, so to=example.com finds every recipient at that domain.

fromstringquery

The sender's bare address, exact match. Case doesn't matter.

qstringquery

Text the subject contains.

tagstringquery

One tag as key:value, for example tag=kind:welcome.

sincestringquery

Only emails created at or after this ISO 8601 date-time. Needs a time zone offset.

untilstringquery

Only emails created before this ISO 8601 date-time. Needs a time zone offset.

Response

dataEmail[]

The emails on this page. Each has the fields described in Retrieve an email, with events: [].

nextCursorstring | null

Pass it as cursor to get the next page. null on the last page.

Errors

StatusCodeWhen
400invalid_queryA parameter is invalid: limit out of range, an unknown status, a tag without :, or a date without a time zone. param names it.