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
- 200
- 400
- 401
- 403
- 404
- 429
- 500
A newline-delimited stream of documents. Each line is a JSON object with the same fields as Document.
project_id is missing and the credential names no project
Unauthorized
Forbidden
The project does not exist or the caller is not a member of it (RESOURCE_NOT_FOUND).
QUOTA_EXCEEDED — a requests quota on the calling API key or its project is spent for the window; Retry-After says when it reopens
Response Headers
Seconds until the quota window admits a request again
Unexpected server error — INTERNAL_ERROR, with the raw message never forwarded