Skip to main content
Export your account data

Authorizations

Authorization
string
header
required

Authorize using an API key. Send it in the Authorization: Bearer <api-key> header. Only API keys are accepted — session tokens are rejected. Create your first API key in the Circularo web app; further keys can be managed through this API.

Headers

Idempotency-Key
string

A unique key that makes a create request safe to retry. Generate a fresh value for each distinct operation. If a retry with the same key arrives while the original is still being processed you get a conflict; once it has completed you get the original result back instead of creating a duplicate, and reusing the key with a different request body is rejected. Stored results are retained for a limited time, after which a retry executes the request again.

Required string length: 1 - 255
Example:

"6b8f0f2e-9d3a-4c1e-bf7a-2f1d9c0a1b23"

Body

application/json

Options controlling what an account data export archive contains.

includeAuditTrail
boolean
default:false

Include each document's audit trail PDF in the archive.

Example:

false

includeCsv
boolean
default:false

Include CSV summaries of your documents' metadata, one file per metadata definition.

Example:

false

includeMetadata
boolean
default:false

Include each document's metadata as a JSON file next to its files.

Example:

false

Response

The export was queued. Returns the export job to poll.

An export job: what it covers, its current status, timing, and — once completed — the identifier of the resulting ZIP archive.

fileId
string | null
required

Identifier of the resulting ZIP archive once the export has completed. Download it via GET /files/{id}/content. Null until the export completes, and for an empty export.

Minimum string length: 1
Pattern: ^[a-z0-9]+$
Example:

"s1pss1atbzli272pinbt48n2ssy96ax2pwgqrz5qyzklwxg1kl0tq6anvz1p97xj"

finishedAt
string<date-time> | null
required

When the export finished. Null while it is still queued or processing.

Example:

"2024-11-02T09:15:30.000Z"

id
string<uuid>
required

Stable identifier of the export. Use it to poll GET /exports/{id}.

Example:

"0b6cba54-3d40-4d1c-8bff-41d2d0f93cf3"

isEmpty
boolean
required

Whether the export finished without producing a file because its selection matched no documents.

Example:

false

queuedAt
string<date-time>
required

When the export was requested.

Example:

"2024-11-02T09:15:30.000Z"

startedAt
string<date-time> | null
required

When the export started processing. Null while it is still queued.

Example:

"2024-11-02T09:15:30.000Z"

status
enum<string>
required

Current status of the export.

  • queued: The export is waiting to be processed.
  • processing: The export file is being generated.
  • completed: The export has finished. When it produced a file, fileId points to it.
  • failed: The export failed. Create a new export to retry.
Available options:
queued,
processing,
completed,
failed
Example:

"completed"

type
enum<string>
required

What the export covers.

  • documents: An export of documents selected by search filters.
  • folder: An export of selected folders and their subtrees, or of a whole folder tree.
  • account: An export of the data belonging to your account.
Available options:
documents,
folder,
account
Example:

"folder"