Skip to navigation

List emails

Returns a paginated collection of incoming emails.

Arguments

agreementIdslist of StringsOptional
The IDs of the agreements linked to the records to return, including unconfirmed suggestions.
archivedArchivedEnumOptional

The archived state of the records to return. The default is EXCLUDE.

Allowed values:
contactIdslist of StringsOptional
The IDs of the contacts linked to the records to return. Matches emails linked to any of them.
createdOnMaxStringOptional
The latest creation date to return.
createdOnMinStringOptional
The earliest creation date to return.
dealIdslist of StringsOptional
The IDs of the deals linked to the records to return, including unconfirmed suggestions.
disclosureIdslist of StringsOptional
The IDs of the disclosures linked to the records to return, including unconfirmed suggestions.
filingIdslist of StringsOptional
The IDs of the filings linked to the records to return, including unconfirmed suggestions.
fromStringOptional

The sender address to match. Returns emails whose sender’s address contains this text, case-insensitively.

ideaIdslist of StringsOptional
The IDs of the ideas linked to the records to return, including unconfirmed suggestions.
limitIntegerOptional
The number of records returned. The default is 20, and the maximum is 500.
matterTypeslist of StringsOptional

The types of the matters linked to the records to return, such as Disclosure or Filing. Includes unconfirmed suggestions.

opportunityIdslist of StringsOptional
The IDs of the opportunities linked to the records to return, including unconfirmed suggestions.
pageIntegerOptional
The page number to return. Starts at 1.
qStringOptional
The text to search for. Matches title and text body.
receivedAtMaxStringOptional
The latest received date of the records to return.
receivedAtMinStringOptional
The earliest received date of the records to return.
sortDirectionSortDirectionEnumOptional

The sort direction. The default is DESC.

Allowed values:
sortFieldStringOptional

The field to sort by. One of received_at, title, created_at, and updated_at. The default is received_at.

stateEnumslist of IncomingEmailStateEnumsOptional
The states of the records to return.
Allowed values:
tagIdslist of StringsOptional
The IDs of the tags applied to the records to return. Matches emails with any of them.
tagNameslist of StringsOptional
The names of the tags applied to the records to return. Matches emails with any of them.
updatedOnMaxStringOptional

The latest last-updated date to return.

updatedOnMinStringOptional

The earliest last-updated date to return.

withoutContactsBooleanOptional

Whether to return only emails that have no linked contacts. Pass true to apply the filter.

Returns

an IncomingEmailCollection
collectionlist of IncomingEmails
A collection of paginated IncomingEmailCollection
Pagination Metadata for navigating the Pagination