Conversations
Returns every attachment shared in the conversation across all of its messages, in a single flat list. meta.total_count is the number of attachments and payload is the array of attachment objects (each with data_url, thumb_url, file_type, extension, file_size, dimensions for images, and the sender). Use this to render a media/files gallery for the thread without paging through every message.
curl --request GET \
--url 'https://api.nabrah.ai/api/ext/omni_v2/conversation/conversation/<id>/attachments' \
--header 'X-API-Key: <your-api-key>'{
"meta": {
"total_count": 0
},
"payload": [
{
"id": 0,
"account_id": 0,
"message_id": 0,
"thumb_url": "string",
"data_url": "string",
"file_size": 0,
"file_type": "string",
"extension": "string",
"width": 0,
"height": 0,
"created_at": 0,
"sender": {
"id": 0,
"name": "string",
"available_name": "string",
"avatar_url": "string",
"type": "string",
"availability_status": "string",
"thumbnail": "string",
"additional_attributes": {},
"custom_attributes": {},
"email": "string",
"identifier": "string",
"phone_number": "string",
"blocked": false
},
"coordinates_lat": 0,
"coordinates_lng": 0,
"fallback_title": "string",
"meta": {}
}
]
}Each attachment in payload describes one shared file.
data_url is the full-resolution file URL; thumb_url is a thumbnail (for images/video). Both are served by the storage backend.
MIME-style type, file extension, and size in bytes. For images, width and height are populated; for location attachments coordinates_lat/coordinates_lng are set.
X-API-KeystringheaderrequiredYour workspace API key. Create one in the dashboard under API keys.
idintegerrequiredInteger id of the conversation whose attachments to list.
From a list endpoint or GET.../conversation/{id}.
Successful Response
application/json
Validation Error
application/json