List knowledge documents

View as Markdown
Returns the agent's knowledge documents (deleted ones excluded), newest first by `created_at`. Use it to show what an agent knows and to poll indexing progress after `POST /api/agents/{agentId}/knowledge`: a document moves from `processing` to `ready` (or `failed`) without any further call from you. Offset pagination with `limit` and `offset`. The response carries no pagination metadata: request the next page until one comes back with fewer than `limit` items. See [Pagination](/pagination). **Consistency.** Pages are cached for up to 5 minutes, but uploads and deletes clear every cached page of the agent before they respond, and the background indexer clears them when a status changes, so a document you just uploaded is visible on the next read. **Idempotency.** Read-only and safe to retry. **Access** - **Required scope:** `read` (or `write`). Any workspace role. - **Rate limit:** General API — 120 (Starter), 200 (Growth), 300 (Business) or 600 (Enterprise) requests/min per workspace. See [Rate limits](/rate-limits). - **Plan:** Available on every plan.

Authentication

AuthorizationBearer
Workspace API key: `jl_` followed by 64 lowercase hex characters, created by the workspace owner in the dashboard (**Settings → API Keys**) and sent as `Authorization: Bearer jl_...`. The plaintext is shown once, at creation; Jelliu stores only a SHA-256 hash. A workspace can hold up to 25 active keys. | Scope | GET / HEAD | POST / PUT / PATCH / DELETE | Admin-only routes | | --- | --- | --- | --- | | `read` | Yes | No | No | | `write` | Yes | Yes | No | | `full` | Yes | Yes | Yes | Operations restricted to admins or owners reject keys without the `full` scope with `403`, and say so in their description. No key, whatever its scope, can mint or revoke API keys or rotate a webhook secret — that requires a signed-in owner session. A revoked key stops authenticating within about 10 seconds. See [Authentication](/authentication).

Path parameters

agentIdstringRequiredformat: "uuid"

UUID of the agent. It must belong to the authenticated workspace; an id from another workspace answers 404, exactly like an unknown one. Returned as id by GET /api/agents.

Query parameters

limitintegerOptional1-100Defaults to 50

Maximum number of documents to return (1–100). Non-integer or out-of-range values are rejected with 400; they are not clamped.

offsetintegerOptional0-100000Defaults to 0

Number of documents to skip (0–100000). Out-of-range values are rejected with 400.

Response

The agent's documents, newest first.
datalist of objects

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
429
Too Many Requests Error