Paginate through all chat messages in Affinity. Returns basic information about the chat message interaction and its participants. Will only return chat messages that the current authenticated user has permission to see.
You can filter chat messages 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 Chat Messages | int64 |
= |
id=1 |
sentAt |
When the Chat Message was sent at | datetime |
>, <, >=, <= |
sentAt>2025-01-01T01:00:00Z |
createdAt |
When the Chat Message was created in Affinity | datetime |
>, <, >=, <= |
createdAt<2025-01-01T01:00:00Z |
updatedAt |
When the Chat Message 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": "manual",
- "direction": "sent",
- "creator": {
- "id": 1,
- "firstName": "Jane",
- "lastName": "Doe",
- "primaryEmailAddress": "jane.doe@acme.co",
- "type": "internal"
}, - "createdAt": "2022-01-01T00:00:00Z",
- "updatedAt": "2023-01-01T00:00:00Z",
- "participantsPreview": {
- "data": [
- {
- "id": 1,
- "firstName": "Jane",
- "lastName": "Doe",
- "primaryEmailAddress": "jane.doe@acme.co",
- "type": "internal"
}
], - "totalCount": 200
}
}
], - "pagination": {
}
}