Context

Get a context document

Returns the full document, including its raw markdown content, in a JSON envelope. Unknown or deleted slugs respond 404. Fetching a document records its access time.

get/api/v1/context/{slug}

Request

  • Base URL
    https://app.khotan.com
  • URL
    https://app.khotan.com/api/v1/context/{slug}
  • Auth
    • HTTP bearer
    • or API key in header x-api-key

Path parameters

slugstring required

Response

The document record, including content.

slugstring required
titlestring required
descriptionstring nullable required

One-line purpose statement for selection without fetching.

kind'instructions' | 'knowledge' | 'record' required
tagsstring[] required
revisioninteger required
contentSizeinteger required

Raw markdown size in bytes.

folderIdstring nullable required

Folder placement; null at the organization root.

pathstring nullable required

Human-readable folder path; null at the organization root.

updatedAtstring required
staffOnlyboolean required

Visible only to the operator's team. The organization's own members and keys never see it.

contentstring required

The canonical raw markdown.

propertiesobject required

Structured facts beside the markdown: any JSON object.

createdAtstring required
createdByType'agent' | 'api' | 'user' required
updatedByType'agent' | 'api' | 'user' required

Changes

No recorded changes to this operation across all 1 revision of this API.