Documents

Export documents as NDJSON

Streams a project's documents as newline-delimited JSON — one document object per line, oldest first — for archiving the corpus or shipping it into another system. project_id is required: the export is per-project by design. The rows are the rows the listing returns for the same caller, so a policy that hides a document hides it here too, and withdrawn documents and the reserved /.system/ root are left out.

get/v1/projects/{project_id}/documents/export

Request

  • Base URL: https://api.naturali.ai
  • URL: https://api.naturali.ai/v1/projects/{project_id}/documents/export
  • Auth: one of:
    • HTTP bearer
    • OAuth 2 (authorization code, authorization URL https://api.naturali.ai/authorize, token URL https://api.naturali.ai/token, scopes: mcp:access)

Query parameters

path_prefixstring
Example:/reports

Only documents filed under this directory. The prefix is a path boundary, not a substring, exactly as on the listing.

Response

A newline-delimited stream of documents. Each line is a JSON object with the same fields as Document.

Changes

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