Skip to main content
Export documents

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 filters selecting which documents to export and the options controlling what the export archive contains.

acceptedBy
(string | null)[]

Export only documents accepted by any of these people, each given by the userId or email address of a user, or by the email address of a recipient without a Circularo account.

Example:
approvedBy
(string | null)[]

Export only documents approved by any of these people, each given by the userId or email address of a user, or by the email address of a recipient without a Circularo account.

Example:
category
(string | null)[]

Export only documents in any of these categories.

Example:
combine
boolean
default:false

Merge each document's file together with its requested audit trail and certificate of fulfillment into a single PDF. When disabled, each requested part is a separate file in the archive.

Example:

false

completedAfter
string<date-time> | null

Export only documents whose transaction reached its final state — completed, rejected, cancelled or expired — at or after this moment, as their transaction.completedAt states. A document whose transaction is still running or has not started does not match.

Example:

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

completedBefore
string<date-time> | null

Export only documents whose transaction reached its final state — completed, rejected, cancelled or expired — at or before this moment, as their transaction.completedAt states. A document whose transaction is still running or has not started does not match.

Example:

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

createdAfter
string<date-time> | null

Export only documents created at or after this moment.

Example:

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

createdBefore
string<date-time> | null

Export only documents created at or before this moment.

Example:

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

createdBy
(string | null)[]

Export only documents created by any of these users, each given by their userId or email address.

Example:
expiresAfter
string<date-time> | null

Export only documents that expire at or after this moment, as their expiresAt states. A document without an expiration date does not match.

Example:

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

expiresBefore
string<date-time> | null

Export only documents that expire at or before this moment, as their expiresAt states. A document without an expiration date does not match.

Example:

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

folderId
string | null

Export only documents placed directly in this folder; the folder tree is taken from it. Combine with recursive to also include documents nested deeper. At most one of folderId and scope may be provided.

Minimum string length: 1
Pattern: ^[A-Za-z0-9_-]+$
Example:

"97cfb9de-92dd-413a-b5e7-175eff7506d6"

includeAttachments
boolean
default:false

Include each document's attachments in the archive.

Example:

false

includeAuditTrail
boolean
default:false

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

Example:

false

includeCertificateOfFulfillment
boolean
default:false

Include each document's certificate of fulfillment PDF in the export — the completion record of its transaction. Meaningful for documents whose transaction has been completed: for a document whose transaction has not finished, the archive contains a report of the document's current state in certificate framing, not a completion record.

Example:

false

includeSubmittedFiles
boolean
default:false

Include the files submitted by transaction recipients in the archive.

Example:

false

metadataDefinition
(string | null)[]

Export only documents created with any of these metadata definitions.

Pattern: ^[A-Za-z0-9_-]+$
Example:
metadataFields
object

Export only documents whose metadata-definition fields hold these values, keyed by field identifier. Coded, numeric and date fields are matched exactly; free-text fields are matched by full text. Fields of the checkbox and date_range types cannot be filtered on.

Example:
noticeDueAfter
string<date-time> | null

Export only documents whose last day for the renewal notice starts at or after this moment, as their term.renewal.noticeDueAt states — to include a notice due today, give the start of today or earlier. A document without a notice deadline does not match.

Example:

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

noticeDueBefore
string<date-time> | null

Export only documents whose last day for the renewal notice starts at or before this moment, as their term.renewal.noticeDueAt states — a moment within that day matches it as well. A document without a notice deadline does not match.

Example:

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

owner
(string | null)[]

Export only documents currently owned by any of these users, each given by their userId or email address.

Example:
password
string

Protect the exported PDF files with this password. Recipients of the archive need the password to open them.

Required string length: 1 - 127
Example:

"S3cret!"

pendingPurpose
enum<string>[]

Export only documents whose transaction is waiting for a recipient asked to perform any of these actions, whether it is already their turn or they are queued behind an earlier round.

  • sign: The recipient is requested to sign the document.
  • approve: The recipient is requested to approve the document.
  • review: The recipient is requested to review the document.
  • accept: The recipient is requested to accept the document.
Available options:
sign,
approve,
review,
accept
Example:
query
string | null

Full-text search over the document's title and content. A document holding any of the words matches.

Maximum string length: 255
Example:

"quarterly report"

recursive
boolean
default:false

When filtering by folderId or scope, also export documents nested at any depth, not only the direct contents.

Example:

false

reviewedBy
(string | null)[]

Export only documents reviewed by any of these people, each given by the userId or email address of a user, or by the email address of a recipient without a Circularo account.

Example:
scope
enum<string>

Restrict the export to a single folder tree. Only documents at the root of that tree are covered — combine with recursive to include documents nested at any depth. Omit to cover both trees. At most one of folderId and scope may be provided.

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

"shared"

seal
boolean
default:false

Seal the exported PDF files, each with the default seal provider of its document's owner, so their authenticity can be verified outside Circularo. When a document owner's default seal provider is a paid one, each sealed file counts against that owner's sealing capacity.

Example:

false

sharedWith
(string | null)[]

Export only documents currently shared with any of these people, each given by the userId or email address of a user, or by the email address of a recipient without a Circularo account. Everyone the document was shared with, delegated to or reassigned to counts while their share lasts — also after they acted on it, and a recipient who delegated their action keeps their share. A share that was cancelled or has expired no longer counts.

Example:
signedAfter
string<date-time> | null

Export only documents signed at or after this moment — by a recipient, or by an owner signing the stored document; a signature placed while the document was created or edited, or as a step of its metadata definition's workflow, does not count, nor does a seal. Together with signedBy, one of those people must have signed within the period.

Example:

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

signedBefore
string<date-time> | null

Export only documents signed at or before this moment — by a recipient, or by an owner signing the stored document; a signature placed while the document was created or edited, or as a step of its metadata definition's workflow, does not count, nor does a seal. Together with signedBy, one of those people must have signed within the period.

Example:

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

signedBy
(string | null)[]

Export only documents signed by any of these people — a recipient who signed, or an owner who signed the stored document; a signature placed while the document was created or edited, or as a step of its metadata definition's workflow, does not count — each given by the userId or email address of a user, or by the email address of a recipient without a Circularo account.

Example:
termType
enum<string>[]

Export only documents whose term is of any of these kinds.

  • fixed_term: The document expires on a set date and its contract is renewed, automatically or by hand.
  • expiry_only: The document expires on a set date and nothing renews it.
  • non_fixed_term: The contract runs until it is terminated. The document expires only once a termination has started, the notice period after it.
  • none: The document has no kind of term: it has no expiration date and is not a contract running until it is terminated.
Available options:
fixed_term,
expiry_only,
non_fixed_term,
none
Example:
transactionStatus
enum<string>[]

Export only documents whose transaction is in any of these statuses.

  • not-started: The document has been created, but no transaction has started over it yet.
  • in-progress: A transaction is in progress: the document has been shared and is awaiting action from one or more recipients.
  • completed: The transaction completed successfully — every requested recipient finished their action.
  • rejected: The transaction ended because a recipient rejected the document.
  • cancelled: The transaction was cancelled before completion.
  • expired: The transaction expired before completion.
Available options:
not-started,
in-progress,
completed,
rejected,
cancelled,
expired
Example:
trashed
boolean
default:false

When true, export your trashed documents instead of the active ones.

Example:

false

viewId
string | null

Apply one of your saved document views; the view's filters are applied exactly as in the Circularo web app. It cannot be combined with other search filters — the export options work as usual.

Pattern: ^[A-Za-z0-9_-]+$
Example:

"12"

waitingForRecipient
string | null

Export only documents whose transaction is waiting for this recipient — the userId or email address of a user, or the email address of a recipient without a Circularo account — whether it is already their turn or they are queued behind an earlier round.

Example:

"jane.doe@example.com"

waitingSince
string<date-time> | null

Export only documents that have been waiting for a recipient whose turn it currently is since at or before this moment.

Example:

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

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"