Skip to main content
Annotate a document

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

If-Match
string

Makes the request conditional on the resource's current version. Provide the value of the ETag header from a previous response; if the resource has changed since, the request fails with 412 Precondition Failed. Changes made by the platform's own processing of the document — thumbnail rendering, text extraction and read receipts — do not fail the precondition. Omit to operate on the current version unconditionally.

Pattern: ^(\*|"\d+")$
Example:

"\"3\""

Path Parameters

id
string
required

Identifier of the document to annotate.

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

"a0d01c9d-f72f-4c57-af11-e26bda19cc59"

Body

application/json

Annotations and images to add to a document.

annotations
object[]

Text annotations to add to the document.

images
object[]

Images to embed into the document.

Response

The annotations were added. Returns the updated document.

A single document: its metadata, files, field values and lifecycle status.

annotations
object[]
required

Text annotations added to the document.

attachments
object[]
required

Files attached to the document.

category
string | null
required

Free-form category label of the document.

Example:

"Contract"

createdAt
string<date-time> | null
required

When the document was created.

Example:

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

createdBy
object | null
required

The user who created the document. Null when it cannot be determined.

customFields
object[]
required

Custom key/value data stored on the document, outside its metadata definition.

expiresAt
string<date-time> | null
required

When the document expires — the end of the last day it is valid. Null when the document has no expiration date.

Example:

"2026-12-31T22:59:59.999Z"

folders
object[]
required

The document's placements in folder trees — one entry per tree it belongs to. Empty when the document is not in any folder tree.

id
string
required

Identifier of the document.

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

"a0d01c9d-f72f-4c57-af11-e26bda19cc59"

images
object[]
required

Images embedded into the document.

mainFile
object | null
required

The main file of the document.

metadataDefinition
string | null
required

Identifier of the metadata definition the document was created with.

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

"d_default"

metadataFields
object
required

Values of the metadata-definition fields, keyed by field identifier.

Example:
owner
object | null
required

The current owner of the document. Null when it cannot be determined.

signatureProvider
enum<string> | null
required

The provider used to sign this document. A transaction fixes it — from the signatureProvider that transaction was created with, or from your account default at the moment the first signature is applied — and it cannot be changed afterwards. Null until a transaction has fixed it.

  • internal: The certificate Circularo manages for your environment.
  • datasure: Datasure, an external trust service provider. Requires a Datasure certificate and Datasure account configured in your environment.
  • emdha: EMDHA, the Saudi national digital signature service. The signer completes the signature in the web app.
  • uaePassSign: UAE PASS, the national digital identity service of the United Arab Emirates. The signer completes the signature in the web app.
  • icaQualified: I.CA qualified certificates on a hardware token. The signer completes the signature in the web app, using their own device.
  • icaSwStore: I.CA certificates from the signer's software certificate store. The signer completes the signature in the web app, using their own device.
Available options:
internal,
datasure,
emdha,
uaePassSign,
icaQualified,
icaSwStore,
null
Example:

"internal"

signatures
object[]
required

Signatures, seals and timestamps applied to the document.

submittedFiles
object[]
required

Immutable evidence files submitted to the document.

templateId
string | null
required

Identifier of the template the document's transaction is bound to. Null when the document is not bound to a template.

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

"cba71ea5-9a68-431a-a5c2-6d9932792ec7"

term
object | null
required

The contract term recorded for the document. Null when the document neither expires nor has a term configured.

title
string | null
required

Human-readable title of the document.

Example:

"Client agreement"

transaction
object
required

A summary of the document's transaction: its current state and the recipients still to act.

trashed
boolean
required

Whether the document is currently in the trash.

Example:

false

webUrl
string<uri> | null
required

Link to open the document in the Circularo web app. Requires an authenticated Circularo session.

Example:

"https://sandbox.circularo.com/home/detail?select=a0d01c9d-f72f-4c57-af11-e26bda19cc59"