curl --request GET \
--url https://api.example.com/v1/cases/{case_id}/emails \
--header 'Authorization: Bearer <token>'{
"data": [
{
"id": "01K8EM06FJ5T22HRYE78AN7FFF",
"institution_contact_id": "<string>",
"to_addresses": [
"estates@chase.com"
],
"cc_addresses": [],
"from_address": "cases@mail.example.com",
"subject": "Estate of John J. Johnson - Death Certificate and Account Closure Request",
"body_text": "<string>",
"body_html": "<string>",
"attachments": [
{
"id": "<string>",
"file_name": "death_certificate.pdf",
"file_size_bytes": 245000,
"mime_type": "application/pdf",
"document_id": "<string>"
}
],
"status": "delivered",
"sent_at": "2023-11-07T05:31:56Z",
"delivered_at": "2023-11-07T05:31:56Z",
"opened_at": "2023-11-07T05:31:56Z",
"bounce_reason": "<string>",
"sent_by": "<string>",
"receipt": {
"message_id": "msg_01abc123def456",
"provider": "sendgrid",
"status": "accepted",
"status_detail": "<string>",
"timestamp": "2023-11-07T05:31:56Z"
},
"notes": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
],
"meta": {
"page": 1,
"per_page": 25,
"total_count": 142,
"total_pages": 6,
"next_cursor": "eyJpZCI6IjAxSzVXRjA2TUo2VDk5SFJZRTQ4QU43WE04In0=",
"has_more": true
}
}List all emails sent for a case, including delivery status and receipts.
curl --request GET \
--url https://api.example.com/v1/cases/{case_id}/emails \
--header 'Authorization: Bearer <token>'{
"data": [
{
"id": "01K8EM06FJ5T22HRYE78AN7FFF",
"institution_contact_id": "<string>",
"to_addresses": [
"estates@chase.com"
],
"cc_addresses": [],
"from_address": "cases@mail.example.com",
"subject": "Estate of John J. Johnson - Death Certificate and Account Closure Request",
"body_text": "<string>",
"body_html": "<string>",
"attachments": [
{
"id": "<string>",
"file_name": "death_certificate.pdf",
"file_size_bytes": 245000,
"mime_type": "application/pdf",
"document_id": "<string>"
}
],
"status": "delivered",
"sent_at": "2023-11-07T05:31:56Z",
"delivered_at": "2023-11-07T05:31:56Z",
"opened_at": "2023-11-07T05:31:56Z",
"bounce_reason": "<string>",
"sent_by": "<string>",
"receipt": {
"message_id": "msg_01abc123def456",
"provider": "sendgrid",
"status": "accepted",
"status_detail": "<string>",
"timestamp": "2023-11-07T05:31:56Z"
},
"notes": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
],
"meta": {
"page": 1,
"per_page": 25,
"total_count": 142,
"total_pages": 6,
"next_cursor": "eyJpZCI6IjAxSzVXRjA2TUo2VDk5SFJZRTQ4QU43WE04In0=",
"has_more": true
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Unique case identifier (ULID format).
Page number for pagination.
x >= 1Number of items per page.
1 <= x <= 100draft, queued, sent, delivered, bounced, failed created_at, sent_at Sort direction.
asc, desc