> Revox API docs for developers and AI agents. Index: https://www.getrevox.com/docs/api/llms.txt · Everything in one file: https://www.getrevox.com/docs/api/llms-full.txt · OpenAPI 3.1: https://www.getrevox.com/openapi.json · MCP server: https://www.getrevox.com/mcp
> Base URL https://www.getrevox.com/api · Auth: `Authorization: Bearer $REVOX_API_KEY`

# List an assistant's knowledge base

`GET https://www.getrevox.com/api/assistants/{id}/knowledge`

The documents the agent searches during its calls instead of carrying them in its prompt. Once a document is `ready`, the agent gets a `search_knowledge` tool on its calls. Say in the prompt when to use it, e.g. "the agency's listings are in your knowledge base: search them with search_knowledge".

## Request

```bash
curl -X GET "https://www.getrevox.com/api/assistants/3f6c2a1e-8b4d-4c7a-9e2f-5d1b7a9c0e34/knowledge" \
  -H "Authorization: Bearer $REVOX_API_KEY"
```

## Path parameters

- `id` (string, required): ID of the assistant, as returned by [`GET /assistants`](https://www.getrevox.com/docs/api/assistants/get-assistants.md).

## Body

No body: send the request without one.

## Response 200

```json
{
  "documents": [
    {
      "id": "9b8a7c6d-5e4f-4a3b-9c2d-1e0f9a8b7c6d",
      "assistant_id": "3f6c2a1e-8b4d-4c7a-9e2f-5d1b7a9c0e34",
      "title": "Biens en vente",
      "file": {
        "content_type": "application/pdf",
        "url": "https://example.com"
      },
      "content": "Hello, this is Julie from Acme.",
      "status": "ready",
      "error": null,
      "created_at": "2026-11-05T09:00:00Z",
      "updated_at": "2026-11-05T09:00:00Z"
    }
  ]
}
```

- `documents` (array of object)
  - `documents.id` (string)
  - `documents.assistant_id` (string)
  - `documents.title` (string): Name of the document, unique per assistant. Shown to the agent with each passage it finds. 1 to 200 characters. Example: `"Biens en vente"`.
  - `documents.file` (object | null): The uploaded file. Null for a text document.
    - `documents.file.content_type` (enum (5 values)): Values: `"application/pdf"`, `"image/jpeg"`, `"image/png"`, `"image/webp"`, `"image/heic"`.
    - `documents.file.url` (string): Signed link to the original file, valid 5 minutes.
  - `documents.content` (string): The searchable text: as written for a text document, the OCR of the file otherwise (empty until processed).
  - `documents.status` ("processing" | "ready" | "failed"): `processing` while the text is read and indexed (a few seconds, up to a minute for a long PDF), `ready` once the agent can search it, `failed` with `error` otherwise.
  - `documents.error` (string | null)
  - `documents.created_at` (string): ISO 8601 timestamp.
  - `documents.updated_at` (string): ISO 8601 timestamp.

## Errors

- `404` Not found in your organization: `{"error":"Not found"}`
- Every status is explained under Errors in https://www.getrevox.com/docs/api.md#errors.