Skip to main content

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.

SettingValue
MethodGET
Path/api/v1/accounts/{account_id}/conversations/{conversation_id}/attachments
AuthorizationUser token.

Permissions:

Path parameters

NameTypeRequiredDescription
account_idintegerYesAccount ID.
conversation_idintegerYesConversation 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​

Request​

Responses​

The files of the conversation.