---
title: "List context documents"
method: GET
path: "/api/v1/context"
tags: ["Context"]
---

# List context documents

`GET /api/v1/context`

## Request

- Base URL: `https://app.khotan.com`
- URL: `https://app.khotan.com/api/v1/context`
- Auth: one of:
  - HTTP bearer
  - API key in header `x-api-key`

Returns the organization's active document manifest: slug, title, description, kind, tags, revision, contentSize, and updatedAt — never content. Filter by kind, or pass q to search via the weighted full-text index (title ranks above description above content). Fetch individual documents by slug for their markdown.

## Query parameters

- `kind` 'instructions' | 'knowledge' | 'record': "instructions" = procedures to follow (SOPs, runbooks); "knowledge" = reference material (specs, policies); "record" = accounts of events (meeting notes, transcripts, interviews).
- `q` string: Full-text search across title, description, and content, ranked title > description > content.

## Response `200`

The document manifest.

- object
  - `documents` object[], required
    - `slug` string, required
    - `title` string, required
    - `description` string, nullable, required: One-line purpose statement for selection without fetching.
    - `kind` 'instructions' | 'knowledge' | 'record', required
    - `tags` string[], required
    - `revision` integer, required
    - `contentSize` integer, required: Raw markdown size in bytes.
    - `folderId` string, nullable, required: Folder placement; null at the organization root.
    - `path` string, nullable, required: Human-readable folder path; null at the organization root.
    - `updatedAt` string, required
    - `staffOnly` boolean, required: Visible only to the operator's team. The organization's own members and keys never see it.

## Other responses

- `400`: The request was malformed or failed validation.
- `401`: Authentication is missing or invalid.
- `429`: Too many requests; retry after the indicated delay.

---

[API](https://skmtc.dev/khotan/apis/khotan-api.md) - [All operations](https://skmtc.dev/khotan/apis/khotan-api/llms.txt) - [OpenAPI document](https://skmtc.dev/khotan/apis/khotan-api/revisions/90b512a53e42?raw)
