Spaces method and path for this operation:
get /s/{space_id}/api/agent_builder/conversations/{conversation_id}/attachments/{attachment_id}
Refer to Spaces for more information.
Get a single attachment by ID for a conversation.
[Required authorization] Route required privileges: agentBuilder:read.
GET
/api/agent_builder/conversations/{conversation_id}/attachments/{attachment_id}
curl \
--request GET 'https://localhost:5601/api/agent_builder/conversations/{conversation_id}/attachments/{attachment_id}' \
--header "Authorization: $API_KEY"
Response examples (200)
Example response containing a single attachment
{
"attachment": {
"active": true,
"current_version": 1,
"description": "My text file",
"id": "attachment-1",
"type": "text",
"versions": [
{
"content_hash": "abc123",
"created_at": "2025-01-01T10:00:00.000Z",
"data": "File content",
"estimated_tokens": 2,
"version": 1
}
]
}
}