List Conversation Attachments
GET/accounts/:account_id/conversations/:conversation_id/attachments
Returns all files sent in the conversation, from both the contact and agents.
Each item is one file, with the message it belongs to and who sent it. The whole list is returned at once.
| Setting | Value |
|---|---|
| Method | GET |
| Path | /api/v1/accounts/{account_id}/conversations/{conversation_id}/attachments |
| 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. |
Example request
curl -X GET 'https://online.99digital.co.il/api/v1/accounts/12/conversations/1501/attachments' \
-H 'api_access_token: <YOUR_API_ACCESS_TOKEN>'
Example response (200 OK). A conversation without files returns
{"payload": []}.
{
"payload": [
{
"message_id": 40111,
"thumb_url": "https://online.99digital.co.il/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6MzIwMX19--b7c1/invoice.png",
"data_url": "https://online.99digital.co.il/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsiZGF0YSI6MzIwMX19--b7c1/invoice.png",
"file_size": 48213,
"file_type": "image",
"extension": null,
"created_at": 1794471100,
"sender": { "id": 51, "name": "Jane Agent", "type": "user" }
}
]
}
Remarks
- For a paginated list of the files, with their attachment IDs, use List Conversation Files.
Request
Responses
- 200
- 401
- 403
- 404
The files of the conversation.
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.