Skip to main content
Export folders

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

The selection of folders to export and the options controlling what the export archive contains.

folderIds
string[]

Export exactly these folders. All of them must belong to the same folder tree. A folder nested inside another selected folder is covered by it; the remaining folders must sit at the same depth of the tree. Omit to export an entire tree. folderIds cannot be combined with scope.

Minimum array length: 1
Minimum string length: 1
Pattern: ^[A-Za-z0-9_-]+$
Example:
includeAttachments
boolean
default:false

Include each document's attachments in the archive.

Example:

false

includeSubmittedFiles
boolean
default:false

Include the files submitted by transaction recipients in the archive.

Example:

false

scope
enum<string>

Which folder tree to export in its entirety. Defaults to personal. Cannot be combined with folderIds.

  • personal: Your personal folder tree, visible only to you.
  • shared: The organization-wide shared folder tree.
Available options:
personal,
shared
Example:

"shared"

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"