Skip to main content
GET
/
agents
/
{agentId}
/
documents
List agent documents
curl --request GET \
  --url https://api.getarbol.com/v1/agents/{agentId}/documents \
  --header 'Authorization: Bearer <token>'
{
  "items": [
    {
      "id": "<string>",
      "documentId": "<string>",
      "isEnabled": true,
      "document": {
        "id": "<string>",
        "name": "<string>",
        "summary": "<string>",
        "fileName": "<string>",
        "mimeType": "<string>",
        "fileSize": 123,
        "sourceUrl": "<string>",
        "isEnabled": true,
        "createdAt": "2023-11-07T05:31:56Z",
        "updatedAt": "2023-11-07T05:31:56Z"
      }
    }
  ]
}

Authorizations

Authorization
string
header
required

Use your API key from the Arbol dashboard. Go to Settings > API Keys to generate one.

Path Parameters

agentId
string
required

Agent ID (agt_ prefix)

Response

Agent documents

items
object[]