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

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"

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 clone.

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

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

Body

application/json

Where to place the copy created when cloning a document.

folderId
string | null

Identifier of the folder to place the copy in. The folder may belong to your personal tree or your organization's shared tree; the copy is placed in whichever tree that folder belongs to. When omitted, the copy is placed at the root of the tree selected by scope. 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"

scope
enum<string>

Selects the folder tree when no folderId is given — the copy is placed at the root of that tree. Defaults to personal. 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"

Response

The document was cloned. Returns the new 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"