Skip to main content
GET
/
emails
List emails
curl --request GET \
  --url https://api.attention.tech/v2/emails \
  --header 'Authorization: <api-key>'
{
  "data": [
    {
      "messageId": "123e4567-e89b-12d3-a456-426614174000",
      "threadId": "thread_789f0123-g45h-67i8-j901-234567890123",
      "sendDate": "2024-03-15T14:30:00Z",
      "sender": "john.doe@company.com",
      "recipients": [
        "jane.smith@company.com",
        "bob.johnson@company.com"
      ],
      "ccRecipients": [
        "manager@company.com",
        "team@company.com"
      ],
      "subject": "Project Update - Q1 2024 Report",
      "snippet": "Hi team, I wanted to share the latest updates on our Q1 project...",
      "bodyUrl": "https://api.company.com/emails/123e4567-e89b-12d3-a456-426614174000/body",
      "isInternalUser": false
    }
  ],
  "meta": {
    "pageCount": 5,
    "totalRecords": 100,
    "pageNumber": 1,
    "pageSize": 20
  }
}

Authorizations

Authorization
string
header
required

Query Parameters

subject
string

Filter emails by subject using case-insensitive partial matching

crm_account_id
string[]

Filter emails by CRM account id

deal_uuid
string[]

Filter emails by deal uuid

from_date_time
string<date-time>

Start date and time for filtering emails (ISO 8601 format)

to_date_time
string<date-time>

End date and time for filtering emails (ISO 8601 format)

page
integer
default:1

Page number for pagination (starts from 1)

Required range: x >= 1
size
integer
default:10

Number of items per page (min 1, max 50)

Required range: 1 <= x <= 50

Response

emails successfully returned

data
object[]
meta
object
Example:
{
"pageCount": 5,
"totalRecords": 100,
"pageNumber": 1,
"pageSize": 20
}