Skip to main content
Search 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.

Body

application/json

The filters and pagination controlling a document search.

acceptedBy
(string | null)[]

Return 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)[]

Return 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)[]

Return only documents in any of these categories.

Example:
completedAfter
string<date-time> | null

Return 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

Return 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

Return only documents created at or after this moment.

Example:

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

createdBefore
string<date-time> | null

Return only documents created at or before this moment.

Example:

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

createdBy
(string | null)[]

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

Example:
cursor
string | null

The nextCursor token from a previous response. Send it on its own to fetch the next page; it cannot be combined with any other field. Fetch the next page promptly, as the cursor expires after a period of inactivity.

expiresAfter
string<date-time> | null

Return 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

Return 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

Return 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"

limit
integer | null
default:20

Maximum number of documents to return per page.

Required range: 1 <= x <= 100
Example:

20

metadataDefinition
(string | null)[]

Return only documents created with any of these metadata definitions.

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

Return 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

Return 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

Return 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"

offset
integer | null
default:0

Number of documents to skip before the returned page. Use it for shallow access; for deep traversal follow the nextCursor instead.

Required range: 0 <= x <= 9900
Example:

0

owner
(string | null)[]

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

Example:
pendingPurpose
enum<string>[]

Return 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; the documents matching best come first.

Maximum string length: 255
Example:

"quarterly report"

recursive
boolean
default:false

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

Example:

false

reviewedBy
(string | null)[]

Return 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 search to a single folder tree. Only documents at the root of that tree are returned — combine with recursive to include documents nested at any depth. Omit to search 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"

sharedWith
(string | null)[]

Return 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

Return 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

Return 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)[]

Return 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>[]

Return 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>[]

Return 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, search 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 — pagination works as usual. The search returns documents only, so any folder-targeting part of the view does not apply.

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

"12"

waitingForRecipient
string | null

Return 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

Return only documents that have been waiting for a recipient whose turn it currently is since at or before this moment. Use it to find documents that have been awaiting action for a long time.

Example:

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

Response

Returns the matching documents and pagination metadata.

A page of documents.

pagination
object | null
required

Pagination state of this page. Null when the endpoint returns the complete list in one response.

results
object[]
required

The documents matching your query.

total
integer
required

Total number of items matching the request.

Required range: x >= 0
Example:

42