Skip to main content
GET
/
v1
/
knowledge-base
List Knowledge Base Documents
curl --request GET \
  --url https://api.example.com/v1/knowledge-base
{
  "documents": [
    {
      "id": "<string>",
      "name": "<string>",
      "type": "<string>",
      "metadata": {
        "created_at_unix_secs": 123,
        "last_updated_at_unix_secs": 123,
        "size_bytes": 123
      },
      "url": "<string>",
      "dependent_agents": []
    }
  ],
  "has_more": true,
  "next_cursor": "<string>"
}

Headers

x-api-key
string | null

API key for authentication

Query Parameters

page_size
integer
default:20

Items per page

Required range: 1 <= x <= 100
cursor
string | null

Cursor for pagination

search
string | null

Search by name (starts with)

types
string | null

Filter by type (file, url, text)

Response

Successful Response

Paginated list of knowledge base documents

documents
KnowledgeBaseListItem · object[]
required
has_more
boolean
required
next_cursor
string | null