Paginate through all emails in Affinity. Returns basic information about the email interaction and its participants. Will only return emails or subject lines that the current authenticated user has permission to see.
You can filter emails using the filter query parameter. The filter parameter is a string that you can specify conditions based on the following properties.
| Property Name | Description | Type | Allowed Operators | Examples |
|---|---|---|---|---|
id |
Unique identifier for Emails | int64 |
= |
id=1 |
sentAt |
When the Email was sent at | datetime |
>, <, >=, <= |
sentAt>2025-01-01T01:00:00Z |
createdAt |
When the Email was created in Affinity | datetime |
>, <, >=, <= |
createdAt<2025-01-01T01:00:00Z |
updatedAt |
When the Email was updated in Affinity | datetime |
>, <, >=, <= |
updatedAt>=2025-01-01T01:00:00Z |
OK
Bad Request
Errors
{- "data": [
- {
- "id": 1,
- "sentAt": "2023-01-01T00:00:00Z",
- "loggingType": "automated",
- "direction": "received",
- "subject": "Example subject",
- "createdAt": "2023-01-01T00:00:00Z",
- "updatedAt": "2023-01-01T00:00:00Z",
- "from": {
- "emailAddress": "john.smith@contoso.com",
- "person": {
- "id": 1,
- "firstName": "Jane",
- "lastName": "Doe",
- "primaryEmailAddress": "jane.doe@acme.co",
- "type": "internal"
}
}, - "toParticipantsPreview": {
- "data": [
- {
- "emailAddress": "john.smith@contoso.com",
- "person": {
- "id": 1,
- "firstName": "Jane",
- "lastName": "Doe",
- "primaryEmailAddress": "jane.doe@acme.co",
- "type": "internal"
}
}
], - "totalCount": 200
}, - "ccParticipantsPreview": {
- "data": [
- {
- "emailAddress": "john.smith@contoso.com",
- "person": {
- "id": 1,
- "firstName": "Jane",
- "lastName": "Doe",
- "primaryEmailAddress": "jane.doe@acme.co",
- "type": "internal"
}
}
], - "totalCount": 200
}
}
], - "pagination": {
}
}