Skip to main content

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.

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

Permissions:

Path parameters

NameTypeRequiredDescription
account_idintegerYesAccount ID.
conversation_idintegerYesConversation display ID.

Query parameters

NameTypeRequiredDescription
limitintegerNoPage size, 1–200. Default 200.
beforeintegerNoReturn 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​

The conversation's files, newest first. Each file has id, message_id, account_id, file_type, data_url and thumb_url.