Skip to main content

Export documents as NDJSON

GET 

/v1/projects/:project_id/documents/export

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. The export is per-project: project_id names it, or a project-bound credential implies its own. 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.

Request​

Responses​

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