Skip to main content
Create a transaction

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

Parameters for starting a transaction — the document (existing, or created from a file in the same call), the recipients it is sent to, the fields they fill, and the components you apply yourself.

apply
object

Components you apply to the document yourself, immediately when the transaction is created. Without send, at least one signature must be applied — the transaction then completes immediately with you as its only participant. At least one of apply and send must be provided.

document
object

The document the transaction creates and runs on, from a title and a file. At most one of documentId and document may be provided. At least one of documentId, document and templateId must be provided.

documentId
string | null

Identifier of an existing document to run the transaction on. At most one of documentId and document may be provided. At least one of documentId, document and templateId must be provided.

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

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

send
object

The request sent to other people — the recipients taking part in the transaction and the fields placed on the document for them to fill. Omit it to act on the document alone via apply. At least one of apply and send must be provided.

signatureProvider
enum<string>

The provider everyone signs this document with, yours included. Defaults to the one configured for your account. The choice is recorded on the document and governs it from then on, so it cannot be changed afterwards. Providers that need the signer present cannot apply your own signature through apply — the recipients complete those in the web app.

  • 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
Example:

"internal"

templateId
string | null

Identifier of a template to create the transaction from. Without documentId or document, the document is created from the template's file, name and metadata definition; document overrides any of these, and documentId runs the template on an existing document instead. If the template's metadata definition cannot be used for documents created from a file, send documentId or a document.metadataDefinition of your own. send.sequential always comes from the template, whichever kind it is. A signing template additionally places its fields itself and defines the recipient roles: fill every role — cast recipients into it via send.recipients[].role, or assign its fields to recipients directly via send.recipients[].fieldIds — do not place fields of your own, and leave apply out; each role's purpose, order and quorum come from the template. Its annotation fields can be prefilled with values via send.fieldValues. Only a locked template binds the document to it (the document's templateId stays null otherwise); an unlocked one is applied the same way but leaves no binding, and the binding is recorded only when the document is sent to recipients via send. A template supplies only the document's file, name and metadata definition, the placed fields and the recipient routing. The document defaults it has configured in the web app — document category, destination folder, document name format, metadata values, term and attachments — are not applied to the document; choose its folder with document.folderId or document.scope. Nor is anything else it has configured there — recipient verification, permissions, reminders, expiry or the message sent out: set it on each recipient of this request explicitly. At least one of documentId, document and templateId must be provided.

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

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

Response

The transaction was started. Returns the transaction with its recipients.

A transaction: the process of getting a document signed, approved, reviewed or accepted by its recipients.

annotationFields
object[]
required

Annotation fields placed on the document for its recipients to fill.

completedAt
string<date-time> | null
required

When the transaction reached its final state — completed, rejected, cancelled or expired. Null while the transaction is running.

Example:

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

createdAt
string<date-time> | null
required

When the transaction was started. Null while it has not been started.

Example:

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

document
object | null
required

The document the transaction runs on.

id
string | null
required

Identifier of the transaction.

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

"a0d01c9d-f72f-4c57-af11-e26bda19cc590"

imageFields
object[]
required

Image fields placed on the document for its recipients to fill.

message
string | null
required

The message sent to all recipients of the transaction, as plain text: its formatting is dropped and every link is written as its text followed by its address in parentheses.

Example:

"Please review and sign this contract."

recipients
object[]
required

The people taking part in the transaction and the current state of their participation.

sequential
boolean
required

Whether recipients act one after another in their order, or all in parallel.

signatureFields
object[]
required

Signature fields placed on the document for its recipients to fill.

status
enum<string>
required

Current status of the transaction. It advances as recipients act on the document.

  • 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:

"in-progress"

webUrl
string<uri> | null
required

Link to open the transaction's document in the Circularo web app, where the owner can monitor its progress. Requires an authenticated Circularo session.

Example:

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