List emails
Retrieve all emails objects.
Query parameters
Number of results per page
A value used for cursor-based pagination. Obtain this value from the next or previous URLs in a paginated response. Do not construct cursor values manually.
Object ID(s) filter
Filter emails created before this date
Filter emails created after this date
Filter by email subject
Queue ID(s) filter
Filter by inbox ID
Filter by document ID
Filter by sender email address
Filter by sender name
Filter by recipient email address
Filter emails with last thread email created before this date
Filter emails with last thread email created after this date
Filter by email type
Filter by email thread ID
Filter emails that have or don't have documents
Result ordering.
Response
OK
Example response
{
"results": [
{
"id": 1234,
"url": "https://example.rossum.app/api/v1/emails/1234",
"queue": "https://example.rossum.app/api/v1/queues/8198",
"inbox": "https://example.rossum.app/api/v1/inboxes/1229",
"parent": "https://example.rossum.app/api/v1/emails/1234",
"email_thread": "https://example.rossum.app/api/v1/email_threads/456",
"children": [
"https://example.rossum.app/api/v1/emails/1244"
],
"documents": [
"https://example.rossum.app/api/v1/documents/5678"
],
"created_at": "2021-03-26T14:31:46.993427Z",
"last_thread_email_created_at": "2021-03-27T14:29:48.665478Z",
"subject": "Some email subject",
"from": {
"email": "company@east-west.com",
"name": "Company East"
},
"to": [
{
"email": "east-west-trading-co-a34f3a@example.rossum.app",
"name": "East West Trading"
}
],
"cc": [],
"bcc": [],
"body_text_plain": "Some body",
"body_text_html": "<div dir=\"ltr\">Some body</div>",
"metadata": {
"some_key": "some_value"
},
"type": "outgoing",
"annotation_counts": {
"annotations": 3,
"annotations_processed": 1,
"annotations_unprocessed": 1,
"annotations_rejected": 1
},
"annotations": [
"https://example.rossum.app/api/v1/annotations/1",
"https://example.rossum.app/api/v1/annotations/2",
"https://example.rossum.app/api/v1/annotations/4"
],
"related_annotations": [],
"related_documents": [
"https://example.rossum.app/api/v1/documents/3"
],
"creator": "https://example.rossum.app/api/v1/users/10775",
"filtered_out_document_count": 2,
"labels": [
"rejected"
],
"content": "https://example.rossum.app/api/v1/emails/1234"
}
]
}Changes
No recorded changes to this endpoint across all 1 revision of this API.