List Conversation Files
GET/accounts/:account_id/conversations/:conversation_id/messages/files
Returns the attachments of all messages in the conversation, newest first.
The list is paginated with a cursor: up to limit files per request (200 by
default). For the next page, send the lowest id you received as before.
| Setting | Value |
|---|---|
| Method | GET |
| Path | /api/v1/accounts/{account_id}/conversations/{conversation_id}/messages/files |
| Authorization | User token. |
Permissions:
- User token — any agent who can see the conversation (see Who can see a conversation).
- Agent-bot token: not allowed.
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
account_id | integer | Yes | Account ID. |
conversation_id | integer | Yes | Conversation display ID. |
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
limit | integer | No | Page size, 1–200. Default 200. |
before | integer | No | Return attachments with an ID lower than this one (next page). |
Example request
curl -X GET 'https://online.99digital.co.il/api/v1/accounts/12/conversations/1501/messages/files?limit=10' \
-H 'api_access_token: <YOUR_API_ACCESS_TOKEN>'
Example response (200 OK)
[
{
"id": 3201,
"message_id": 40117,
"account_id": 12,
"file_type": "image",
"data_url": "https://online.99digital.co.il/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsiZGF0YSI6MzIwMX19--b7c1/invoice.png",
"thumb_url": "https://online.99digital.co.il/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6MzIwMX19--b7c1/invoice.png"
}
]
Request
Responses
- 200
- 401
- 403
- 404
The conversation's files, newest first. Each file has id, message_id, account_id, file_type, data_url and thumb_url.
The access token is missing or wrong, or its user does not belong to this account.
The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization.
The resource does not exist in this account.