Get conversation attachment Experimental; added in 9.6.0

GET /api/agent_builder/conversations/{conversation_id}/attachments/{attachment_id}

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.

Path parameters

  • conversation_id string Required

    The unique identifier of the conversation.

    Maximum length is 256.

  • attachment_id string Required

    The unique identifier of the attachment.

    Maximum length is 256.

Responses

  • 200 application/json

    Indicates a successful response

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
      }
    ]
  }
}