List emails
Returns a paginated collection of incoming emails.
Arguments
agreementIds
The IDs of the agreements linked to the records to return, including unconfirmed suggestions.
archived
The archived state of the records to return. The default is EXCLUDE.
Allowed values:
contactIds
The IDs of the contacts linked to the records to return. Matches emails linked to any of them.
createdOnMax
The latest creation date to return.
createdOnMin
The earliest creation date to return.
dealIds
The IDs of the deals linked to the records to return, including unconfirmed suggestions.
disclosureIds
The IDs of the disclosures linked to the records to return, including unconfirmed suggestions.
filingIds
The IDs of the filings linked to the records to return, including unconfirmed suggestions.
from
The sender address to match. Returns emails whose sender’s address contains this text, case-insensitively.
ideaIds
The IDs of the ideas linked to the records to return, including unconfirmed suggestions.
limit
The number of records returned. The default is 20, and the maximum is 500.
matterTypes
The types of the matters linked to the records to return, such as
Disclosure or Filing. Includes unconfirmed suggestions.
opportunityIds
The IDs of the opportunities linked to the records to return, including unconfirmed suggestions.
page
The page number to return. Starts at 1.
q
The text to search for. Matches title and text body.
receivedAtMax
The latest received date of the records to return.
receivedAtMin
The earliest received date of the records to return.
sortDirection
The sort direction. The default is DESC.
Allowed values:
sortField
The field to sort by. One of received_at, title, created_at, and updated_at. The default is received_at.
stateEnums
The states of the records to return.
Allowed values:
tagIds
The IDs of the tags applied to the records to return. Matches emails with any of them.
tagNames
The names of the tags applied to the records to return. Matches emails with any of them.
updatedOnMax
The latest last-updated date to return.
updatedOnMin
The earliest last-updated date to return.
withoutContacts
Whether to return only emails that have no linked contacts. Pass true to apply the filter.
Returns
collection
A collection of paginated IncomingEmailCollection
metadata
Pagination Metadata for navigating the Pagination