> ## Documentation Index
> Fetch the complete documentation index at: https://developers.circularo.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Create a transaction

> `POST /transactions`

Starts the document's transaction — the process of getting it signed, approved, reviewed or accepted. Send the document to other people (`send`), sign it yourself (`apply`), or both at once — apply your own signature and pass the document to the remaining recipients in one atomic call.

Provide the document either by referencing an existing one (`documentId`), or let the transaction create it in the same call via `document`, from a title and a file. With `send`, list the recipients and what each of them is asked to do — all in parallel or in a set order, with optional verification for recipients without a Circularo account — and place signature, annotation and image fields for them to fill. Recipients are notified by email; to deliver the link yourself to a recipient protected by a verification other than a password, create it with `POST /transactions/{id}/recipients/{recipientId}/link`. The KYC providers a recipient can verify through are listed by `GET /me` in `settings.allowedKycProviders`. With `apply` alone, the transaction completes immediately: the response returns it already completed, with you as its only participant, and the signed document ready to download.

The minimum to send a document for signing is small: a document, one entry in `send.recipients` for the person who should sign, and one entry in `send.signatureFields` placing where they sign. For example:

```json
{
  "documentId": "a0d01c9d-f72f-4c57-af11-e26bda19cc59",
  "send": {
    "recipients": [
      {
        "recipient": "jane.doe@example.com",
        "purpose": "sign"
      }
    ],
    "signatureFields": [
      {
        "recipients": ["jane.doe@example.com"],
        "pages": [1],
        "position": {
          "x": 0.15, "y": 0.3, "width": 0.2, "height": 0.07
        }
      }
    ]
  }
}
```

To create the transaction from a template, reference it as `templateId` and cast a recipient into each of the template's roles (see `GET /templates/{id}`) — the document, its fields and the routing all come from the template, while what each recipient has to pass through, such as verification, permissions or reminders, stays with this request. Instead of a role name, a recipient may reference the template's placed fields directly via `fieldIds` — useful when your integration stores the field identifiers, or to split one role's fields between several people. To fill in data your integration already knows, prefill the template's annotation fields via `send.fieldValues`, keyed by the field identifiers. For example:

```json
{
  "templateId": "cba71ea5-9a68-431a-a5c2-6d9932792ec7",
  "send": {
    "recipients": [
      {
        "recipient": "jane.doe@example.com",
        "role": "Client"
      },
      {
        "recipient": "john.smith@example.com",
        "role": "CEO"
      }
    ],
    "fieldValues": {
      "e8b1d4e6": "Jane Doe",
      "c41f09aa": true
    }
  }
}
```

To sign a document yourself, provide just the document and one signature in `apply.signatures`. For example:

```json
{
  "documentId": "a0d01c9d-f72f-4c57-af11-e26bda19cc59",
  "apply": {
    "signatures": [
      {
        "type": "signature",
        "pages": [1],
        "position": {
          "x": 0.15, "y": 0.3, "width": 0.2, "height": 0.07
        }
      }
    ]
  }
}
```

A document runs a single transaction. Once it has been started — by sending the document or by signing it yourself — another one cannot be created for the same document, even after cancellation; to run a new process on a finished document, clone it first with `POST /documents/{id}/clone`.

**Response headers**

- `Idempotency-Replayed` — Present only on a replay: the request was recognized as a retry of an earlier one by its `Idempotency-Key`, and this is the stored response of that original request.



## OpenAPI

````yaml /api-v2/openapi.json post /transactions
openapi: 3.0.3
info:
  title: Circularo API v2
  description: >-
    Circularo API v2 gives programmatic access to Circularo, the platform for
    intelligent document management, electronic and digital signing, and the
    signing and approval processes that move your documents forward.


    Use this API to embed Circularo directly into your own products and systems:
    automate the document lifecycle end to end, send documents out to be signed
    and approved, collect the evidence of what happened, manage users and
    access, and stay in sync through real-time events.


    ## Capabilities


    * **Documents:** Create, organize, and search documents, then seal or
    annotate them, clone them, and create a shareable view link — with a
    tamper-proof audit trail behind every one.

    * **Transactions:** Send a document to one or more recipients to be signed,
    approved, reviewed, or accepted — in parallel or in a set order, with
    identity verification for recipients who have no Circularo account — or sign
    it yourself. Track a running transaction, remind, replace or remove its
    recipients, and cancel it.

    * **Templates:** Start a transaction from a template prepared in the
    Circularo web app, with its placed fields and recipient roles already laid
    out for you.

    * **Files, folders & metadata:** Upload reusable files, describe documents
    with metadata definitions, and organize them into personal or shared
    folders.

    * **Exports:** Download a document together with its audit trail and
    certificate of fulfillment, or have a whole folder tree, a filtered set of
    documents, or your own account data archived in the background.

    * **Administration:** Provision and manage the members of your organization,
    control who belongs to which group, and review a complete audit log of
    activity.

    * **Reporting:** Read organization-wide reports and predefined analytics
    dashboards.

    * **Real-time events:** Subscribe to webhooks to react the moment a document
    is created, signed, or completed.


    ## Authentication


    Authenticate every request with a long-lived API key. Create your first key
    from the Circularo web app, then create, list, and revoke additional keys
    through this API. Read `GET /me` to see which account a key belongs to and
    what it is allowed to do.
  termsOfService: https://terms.circularo.com/
  contact:
    name: Circularo
    url: https://developers.circularo.com/
    email: support@circularo.com
  version: 26.2.0
servers:
  - url: https://sandbox.circularo.com/api/v2
security:
  - ApiKey: []
tags:
  - name: API Keys
    description: >-
      An API key is the long-lived, secret credential your integration uses to
      authenticate with Circularo. A key stays valid as long as it is in regular
      use; store it securely, and revoke any key that is no longer needed or may
      have been exposed.
  - name: Audit Logs
    description: >-
      The audit log is the record of actions taken across your organization —
      who did what, to which entity, and when. Search and page through it,
      filtering by actor, activity, target and time range, with an offset for
      shallow access or an opaque cursor for deep traversal and exports.
  - name: Dashboards
    description: >-
      Dashboards are your organization's predefined analytics — document and
      transaction metrics aggregated for reporting and visualization. List the
      dashboards your account can access, then run one to read back its labeled,
      chart-ready data series.
  - name: Documents
    description: >-
      A document combines a main file with metadata, custom fields, and optional
      attachments — the central object you create, search, and manage in
      Circularo. Act on a document directly by sealing or annotating it, clone
      it, read the text of its main file, or create a shareable view link, and
      organize it into folders. Every document carries a transaction identifier
      for tracking its signing or approval process.
  - name: Exports
    description: >-
      An export job packages your documents, folders, or account data into a
      downloadable ZIP archive in the background. Create an export from the
      respective resource, poll it here until it completes, then download the
      resulting archive by its file identifier.
  - name: Files
    description: >-
      A file is a reusable binary you upload once and then reference by its
      identifier wherever a file is needed — as a document's main file, an
      attachment, or an image placed on a page. Upload files and download them
      again; for PDFs, you can also locate signature anchors at upload time.
  - name: Folders
    description: >-
      A folder organizes your documents into a tree — your personal tree, which
      is yours alone, or your organization's shared tree. Nest folders under one
      another, move them within their tree, and search across them to build and
      navigate the structure that fits your workflow.
  - name: Groups
    description: >-
      A group bundles the permissions and access granted to its members —
      including your organization itself, which is represented as a group.
      Browse the groups in your organization and manage who belongs to them.
      Both require organization administrator permissions.
  - name: Me
    description: >-
      The account that your API key belongs to — your identity, role, granted
      permissions, locale preferences, and account status. Read it to discover
      which account a key is connected to and what it is allowed to do.
  - name: Metadata Definitions
    description: >-
      A metadata definition describes the structure of a document — the metadata
      fields it accepts — so you know which metadata to supply when creating or
      working with documents. Browse the definitions available to your account.
  - name: Ping
    description: >-
      Check that Circularo API v2 is reachable and responding. Use it from your
      monitoring or before an integration run to verify connectivity. No
      authentication is required.
  - name: Reports
    description: >-
      A report is an organization-wide view over your documents and their
      transactions — each row pairs a document with the status, timing, activity
      counts and recipients of its transaction, for auditing signing activity,
      tracking processing times, and feeding compliance and analytics tooling.
      Filter by creation time, transaction status, metadata definition,
      category, creator and owner, and page through results with an offset or an
      opaque cursor.
  - name: Templates
    description: >-
      A template is a reusable blueprint for creating transactions, prepared in
      the Circularo web app. Every template carries document defaults — a source
      file, a name and a metadata definition; a signing template additionally
      carries the placed fields and defines the recipient roles and their
      routing. Browse the templates available to your account, then create a
      transaction from one by referencing it and casting recipients into its
      roles.
  - name: Transactions
    description: >-
      A transaction gets a document signed, approved, reviewed or accepted — by
      other people, by yourself, or both. Start one on an existing document or
      create the document in the same call; send it to recipients, defining who
      takes part, what each of them is asked to do, and optional verification
      for recipients without a Circularo account — or sign it yourself, which
      completes the transaction immediately. Once it is running, track its
      progress, remind recipients, update or reassign them, and cancel it when
      it is no longer needed. Transactions have no separate search — find them
      by searching your documents, each of which carries its transaction's
      status and pending recipients.
  - name: Users
    description: >-
      A user is a member of your organization. What they may do is set through
      their role, while the organization is assigned automatically.
      Provisioning, updating, and removing members requires organization
      administrator permissions.
  - name: Webhooks
    description: >-
      A webhook subscribes your systems to document events in your organization.
      Register an HTTPS callback URL to receive real-time notifications when
      documents are created, signed or completed; each payload can optionally
      carry a signature so you can verify it originates from Circularo. Managing
      webhooks requires organization administrator permissions.
externalDocs:
  description: Guides
  url: https://developers.circularo.com/latest/guides
paths:
  /transactions:
    post:
      tags:
        - Transactions
      summary: Create a transaction
      description: >-
        `POST /transactions`


        Starts the document's transaction — the process of getting it signed,
        approved, reviewed or accepted. Send the document to other people
        (`send`), sign it yourself (`apply`), or both at once — apply your own
        signature and pass the document to the remaining recipients in one
        atomic call.


        Provide the document either by referencing an existing one
        (`documentId`), or let the transaction create it in the same call via
        `document`, from a title and a file. With `send`, list the recipients
        and what each of them is asked to do — all in parallel or in a set
        order, with optional verification for recipients without a Circularo
        account — and place signature, annotation and image fields for them to
        fill. Recipients are notified by email; to deliver the link yourself to
        a recipient protected by a verification other than a password, create it
        with `POST /transactions/{id}/recipients/{recipientId}/link`. The KYC
        providers a recipient can verify through are listed by `GET /me` in
        `settings.allowedKycProviders`. With `apply` alone, the transaction
        completes immediately: the response returns it already completed, with
        you as its only participant, and the signed document ready to download.


        The minimum to send a document for signing is small: a document, one
        entry in `send.recipients` for the person who should sign, and one entry
        in `send.signatureFields` placing where they sign. For example:


        ```json

        {
          "documentId": "a0d01c9d-f72f-4c57-af11-e26bda19cc59",
          "send": {
            "recipients": [
              {
                "recipient": "jane.doe@example.com",
                "purpose": "sign"
              }
            ],
            "signatureFields": [
              {
                "recipients": ["jane.doe@example.com"],
                "pages": [1],
                "position": {
                  "x": 0.15, "y": 0.3, "width": 0.2, "height": 0.07
                }
              }
            ]
          }
        }

        ```


        To create the transaction from a template, reference it as `templateId`
        and cast a recipient into each of the template's roles (see `GET
        /templates/{id}`) — the document, its fields and the routing all come
        from the template, while what each recipient has to pass through, such
        as verification, permissions or reminders, stays with this request.
        Instead of a role name, a recipient may reference the template's placed
        fields directly via `fieldIds` — useful when your integration stores the
        field identifiers, or to split one role's fields between several people.
        To fill in data your integration already knows, prefill the template's
        annotation fields via `send.fieldValues`, keyed by the field
        identifiers. For example:


        ```json

        {
          "templateId": "cba71ea5-9a68-431a-a5c2-6d9932792ec7",
          "send": {
            "recipients": [
              {
                "recipient": "jane.doe@example.com",
                "role": "Client"
              },
              {
                "recipient": "john.smith@example.com",
                "role": "CEO"
              }
            ],
            "fieldValues": {
              "e8b1d4e6": "Jane Doe",
              "c41f09aa": true
            }
          }
        }

        ```


        To sign a document yourself, provide just the document and one signature
        in `apply.signatures`. For example:


        ```json

        {
          "documentId": "a0d01c9d-f72f-4c57-af11-e26bda19cc59",
          "apply": {
            "signatures": [
              {
                "type": "signature",
                "pages": [1],
                "position": {
                  "x": 0.15, "y": 0.3, "width": 0.2, "height": 0.07
                }
              }
            ]
          }
        }

        ```


        A document runs a single transaction. Once it has been started — by
        sending the document or by signing it yourself — another one cannot be
        created for the same document, even after cancellation; to run a new
        process on a finished document, clone it first with `POST
        /documents/{id}/clone`.


        **Response headers**


        - `Idempotency-Replayed` — Present only on a replay: the request was
        recognized as a retry of an earlier one by its `Idempotency-Key`, and
        this is the stored response of that original request.
      operationId: createTransaction
      parameters:
        - in: header
          name: Idempotency-Key
          description: >-
            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: false
          schema:
            type: string
            minLength: 1
            maxLength: 255
            example: 6b8f0f2e-9d3a-4c1e-bf7a-2f1d9c0a1b23
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/createTransaction'
            example:
              document:
                title: Employment Agreement
                fileContentBase64: JVBERi0xLjQKJeLjz9MK...
              send:
                recipients:
                  - recipient: jane.doe@example.com
                    purpose: sign
                signatureFields:
                  - recipients:
                      - jane.doe@example.com
                    type: signature
                    pages:
                      - 1
                    position:
                      x: 0.6
                      'y': 0.75
                      width: 0.25
                      height: 0.08
      responses:
        '201':
          description: >-
            The transaction was started. Returns the transaction with its
            recipients.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/transaction'
              example:
                annotationFields: []
                completedAt: null
                createdAt: '2026-05-11T09:30:00.000Z'
                document:
                  id: pXq4NcYBhK9tWdA2mFzR
                  mainFileId: 2f7d6c0a9b1e483fa5d3c8b41e6f90aa
                  metadataDefinition: d_default
                  signatureProvider: null
                  templateId: null
                  title: Employment Agreement
                id: Vt7RfKq2LmXe5ZwGyB4N
                imageFields: []
                message: null
                recipients:
                  - completedAt: null
                    expiresAt: null
                    id: Gk5cPdM9XvT3qHnU7jWs
                    isMandatory: true
                    language: null
                    message: null
                    order: null
                    permissions:
                      - print
                      - viewMetadata
                      - annotateOnReject
                      - rejectWithoutComment
                      - uploadFiles
                    purpose: sign
                    quorum: null
                    recipient:
                      email: jane.doe@example.com
                      fullname: Jane Doe
                      userId: jane.doe@example.com
                    reminder: null
                    status: pending
                    turnStartedAt: '2026-05-11T09:30:00.000Z'
                    verification: null
                sequential: false
                signatureFields:
                  - id: Fz3TdR7yQn1wLp8H
                    isFilled: false
                    order: null
                    pages:
                      - 1
                    position:
                      height: 0.08
                      width: 0.25
                      x: 0.6
                      'y': 0.75
                    recipients:
                      - email: jane.doe@example.com
                        fullname: Jane Doe
                        userId: jane.doe@example.com
                    required: true
                    tooltip: null
                    type: signature
                status: in-progress
                webUrl: >-
                  https://sandbox.circularo.com/home/detail?select=pXq4NcYBhK9tWdA2mFzR
          headers:
            Idempotency-Replayed:
              description: >-
                Present only on a replay: the request was recognized as a retry
                of an earlier one by its `Idempotency-Key`, and this is the
                stored response of that original request.
              schema:
                type: string
                enum:
                  - 'true'
        '400':
          description: >-
            The request is malformed or exceeds a limit, its parts contradict
            each other, a recipient asked to sign has no signature field, it
            references something that does not exist, the metadata definition of
            a new document is one documents created from a file cannot use, the
            chosen signature provider is unavailable or cannot apply your own
            signature, a chosen KYC provider or signature decoration is
            unavailable, or no signature image is available for a signature you
            apply.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error'
              example:
                status: 400
                type: VALIDATION:INPUT_INVALID
                message: Invalid input
                requestId: 3fa85f6457174562b3fc2c963f66afa6
        '401':
          description: Authentication failed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error'
              example:
                status: 401
                type: AUTH:UNAUTHORIZED
                message: Authentication failed
                requestId: 3fa85f6457174562b3fc2c963f66afa6
        '402':
          description: >-
            There is not enough capacity in your subscription to start the
            transaction.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error'
              example:
                status: 402
                type: SUBSCRIPTION:NOT_ACTIVE
                message: Subscription not active
                requestId: 3fa85f6457174562b3fc2c963f66afa6
        '403':
          description: >-
            Your account does not have permission to start this transaction, to
            place its new document in the requested folder, to apply signatures,
            to require the requested recipient verification or to grant the
            `delegate` permission, or a recipient with a Circularo account is
            not allowed to sign.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error'
              example:
                status: 403
                type: AUTH:ACCESS_DENIED
                message: Access denied
                requestId: 3fa85f6457174562b3fc2c963f66afa6
        '404':
          description: The referenced document or template could not be found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error'
              example:
                status: 404
                type: RESOURCE:NOT_FOUND
                message: Resource not found
                requestId: 3fa85f6457174562b3fc2c963f66afa6
        '409':
          description: >-
            The document already ran a transaction, is in the trash or its
            current state does not allow starting one, or a request with the
            same `Idempotency-Key` is still being processed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error'
              example:
                status: 409
                type: RESOURCE:STATE_CONFLICT
                message: Resource state conflict
                requestId: 3fa85f6457174562b3fc2c963f66afa6
        '422':
          description: >-
            The same `Idempotency-Key` was already used with a different
            request.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error'
              example:
                status: 422
                type: VALIDATION:IDEMPOTENCY_KEY_REUSED
                message: Idempotency-Key reused with a different request
                requestId: 3fa85f6457174562b3fc2c963f66afa6
        '429':
          description: >-
            Rate limit exceeded; retry after the delay indicated in the
            `Retry-After` header.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error'
              example:
                status: 429
                type: SYSTEM:RATE_LIMIT_EXCEEDED
                message: Rate limit exceeded
                requestId: 3fa85f6457174562b3fc2c963f66afa6
      security:
        - ApiKey: []
components:
  schemas:
    createTransaction:
      type: object
      properties:
        apply:
          allOf:
            - $ref: '#/components/schemas/applyInput'
          description: >-
            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:
          allOf:
            - $ref: '#/components/schemas/transactionDocumentInput'
          description: >-
            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:
          type: string
          pattern: ^[A-Za-z0-9_-]+$
          description: >-
            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.
          example: a0d01c9d-f72f-4c57-af11-e26bda19cc59
          nullable: true
        send:
          allOf:
            - $ref: '#/components/schemas/transactionSendInput'
          description: >-
            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:
          type: string
          description: >-
            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.
          enum:
            - internal
            - datasure
            - emdha
            - uaePassSign
            - icaQualified
            - icaSwStore
          example: internal
        templateId:
          type: string
          pattern: ^[A-Za-z0-9_-]+$
          description: >-
            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.
          example: cba71ea5-9a68-431a-a5c2-6d9932792ec7
          nullable: true
      description: >-
        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.
    transaction:
      type: object
      properties:
        annotationFields:
          type: array
          items:
            $ref: '#/components/schemas/annotationField'
          description: Annotation fields placed on the document for its recipients to fill.
        completedAt:
          type: string
          format: date-time
          description: >-
            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'
          nullable: true
        createdAt:
          type: string
          format: date-time
          description: >-
            When the transaction was started. Null while it has not been
            started.
          example: '2024-11-02T09:15:30.000Z'
          nullable: true
        document:
          allOf:
            - $ref: '#/components/schemas/transactionDocument'
          description: The document the transaction runs on.
          nullable: true
        id:
          type: string
          pattern: ^[A-Za-z0-9_-]+$
          minLength: 1
          description: Identifier of the transaction.
          example: a0d01c9d-f72f-4c57-af11-e26bda19cc590
          nullable: true
        imageFields:
          type: array
          items:
            $ref: '#/components/schemas/imageField'
          description: Image fields placed on the document for its recipients to fill.
        message:
          type: string
          description: >-
            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.
          nullable: true
        recipients:
          type: array
          items:
            $ref: '#/components/schemas/transactionRecipient'
          description: >-
            The people taking part in the transaction and the current state of
            their participation.
        sequential:
          type: boolean
          description: >-
            Whether recipients act one after another in their order, or all in
            parallel.
        signatureFields:
          type: array
          items:
            $ref: '#/components/schemas/signatureField'
          description: Signature fields placed on the document for its recipients to fill.
        status:
          type: string
          description: >-
            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.
          enum:
            - not-started
            - in-progress
            - completed
            - rejected
            - cancelled
            - expired
          example: in-progress
        webUrl:
          type: string
          format: uri
          description: >-
            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
          nullable: true
      required:
        - annotationFields
        - completedAt
        - createdAt
        - document
        - id
        - imageFields
        - message
        - recipients
        - sequential
        - signatureFields
        - status
        - webUrl
      description: >-
        A transaction: the process of getting a document signed, approved,
        reviewed or accepted by its recipients.
    error:
      type: object
      description: The error response returned for all unsuccessful (non-2xx) requests.
      properties:
        status:
          type: integer
          description: The HTTP status code of the error.
          example: 404
        type:
          type: string
          description: >-
            Machine-readable error type in `NAMESPACE:CODE` form, intended for
            programmatic handling. The set of types is not exhaustive and may
            grow over time.
          example: RESOURCE:NOT_FOUND
        message:
          type: string
          description: Human-readable description of the error.
          example: Resource not found
        requestId:
          type: string
          description: >-
            Unique identifier of the request; include it when contacting
            support.
          example: 3fa85f6457174562b3fc2c963f66afa6
        details:
          type: object
          additionalProperties: true
          description: >-
            Optional structured details about the error. Present only for errors
            that carry them; the shape depends on the error type.
      required:
        - status
        - type
        - message
        - requestId
    applyInput:
      type: object
      properties:
        annotations:
          type: array
          items:
            $ref: '#/components/schemas/annotationInput'
          description: Annotations you add to the document yourself.
        images:
          type: array
          items:
            $ref: '#/components/schemas/imageInput'
          description: Images you embed into the document yourself.
        signatures:
          type: array
          items:
            $ref: '#/components/schemas/signatureInput'
          description: Signatures you apply to the document yourself.
      description: >-
        Components you apply to the document yourself, immediately when the
        transaction is created — your own signatures, and annotations or images
        added along with them.
    transactionDocumentInput:
      type: object
      properties:
        fileContentBase64:
          type: string
          description: >-
            Base64-encoded content of the file the document is created from.
            Files that are not already PDF are converted to PDF automatically;
            the format must be recognizable from the content, otherwise upload
            the file and use `fileId`. One of `fileId` and `fileContentBase64`
            is required unless the transaction is created from a template — then
            the template's file is used by default. At most one of `fileId` and
            `fileContentBase64` may be provided.
          example: JVBERi0xLjcKJ...
        fileId:
          type: string
          pattern: ^[a-z0-9]+$
          minLength: 1
          description: >-
            Identifier of a file you have already uploaded, used as the
            document's main file. Files that are not already PDF are converted
            to PDF automatically. One of `fileId` and `fileContentBase64` is
            required unless the transaction is created from a template — then
            the template's file is used by default. At most one of `fileId` and
            `fileContentBase64` may be provided.
          example: s1pss1atbzli272pinbt48n2ssy96ax2pwgqrz5qyzklwxg1kl0tq6anvz1p97xj
          nullable: true
        folderId:
          type: string
          pattern: ^[A-Za-z0-9_-]+$
          minLength: 1
          description: >-
            Identifier of the folder to place the document in. The folder may
            belong to your personal tree or your organization's shared tree; the
            document is placed in whichever tree that folder belongs to. When
            omitted, the document is placed at the root of the tree selected by
            `scope`. At most one of `folderId` and `scope` may be provided.
          example: 97cfb9de-92dd-413a-b5e7-175eff7506d6
          nullable: true
        metadataDefinition:
          type: string
          pattern: ^[A-Za-z0-9_-]+$
          description: >-
            Identifier of the metadata definition the document is created with.
            Defaults to the template's metadata definition when the transaction
            is created from a template, otherwise to `d_default`. It must
            support documents created from a file; another one is rejected.
          example: d_default
          nullable: true
        scope:
          type: string
          description: >-
            Selects the folder tree when no `folderId` is given — the document
            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.
          enum:
            - personal
            - shared
          example: shared
        title:
          type: string
          minLength: 1
          maxLength: 255
          description: >-
            Human-readable title of the document. Required unless the
            transaction is created from a template — then it defaults to the
            template's name.
          example: Client agreement
      description: >-
        The document a transaction creates and runs on — its title, source file,
        metadata definition and folder.
    transactionSendInput:
      type: object
      properties:
        annotationFields:
          type: array
          items:
            $ref: '#/components/schemas/annotationFieldInput'
          description: >-
            Annotation fields placed on the document for recipients to fill. Not
            allowed when the transaction is created from a `signing` template —
            the template places its fields itself.
        fieldValues:
          type: object
          maxProperties: 500
          additionalProperties:
            oneOf:
              - type: string
                minLength: 1
                maxLength: 4096
                pattern: \S
              - type: boolean
          description: >-
            Values prefilled into the template's annotation fields, keyed by the
            `id` of a field from the template's `annotationFields`. Only valid
            when the transaction is created from a `signing` template. A field
            whose type is one of `annotation_box_field`, `annotation_date`,
            `annotation_datetime`, `annotation_dropdown`, `annotation_generic`
            takes a text value, rendered as given — a date in the format the
            recipients should see, a dropdown value one of the field's
            `options`; a text value must also fit the field's `maxCharacters`,
            when set. A field whose type is one of `annotation_check`,
            `annotation_check_group`, `annotation_radio` takes `true` to check
            it or `false` to clear it; checking a radio button clears the other
            buttons of its `choiceGroup`. The automatically filled field types
            cannot be prefilled. The recipient can still change a prefilled
            value, unless the field is read-only; a read-only field can be
            prefilled only from a template that is not locked, since a locked
            template fixes its text.
          example:
            e8b1d4e6: Jane Doe
            c41f09aa: true
        imageFields:
          type: array
          items:
            $ref: '#/components/schemas/imageFieldInput'
          description: >-
            Image fields placed on the document for recipients to fill. Not
            allowed when the transaction is created from a `signing` template —
            the template places its fields itself.
        message:
          type: string
          maxLength: 2000
          description: >-
            Message sent to all recipients of the transaction. May carry basic
            formatting — bold, italic, underline, https links and bullet lists;
            everything else is stripped on input. Responses return it as plain
            text.
          example: Please review and <b>sign</b> this contract.
        recipients:
          type: array
          items:
            $ref: '#/components/schemas/transactionRecipientInput'
          minItems: 1
          maxItems: 100
          description: >-
            The people taking part in the transaction. At least one of them must
            be asked to act on the document — a transaction cannot consist of
            view recipients only. The same recipient may be listed several times
            only in a sequential transaction with distinct explicit orders — one
            entry per round they act in.
        sequential:
          type: boolean
          description: >-
            When `true`, recipients act one after another in their order; when
            `false`, they all act in parallel. Ignored when the transaction is
            created from a template — the template's own setting always applies.
          example: false
          default: false
        signatureFields:
          type: array
          items:
            $ref: '#/components/schemas/signatureFieldInput'
          description: >-
            Signature fields placed on the document for recipients to fill.
            Every recipient asked to sign needs at least one signature field
            assigned, in each round they sign in. Not allowed when the
            transaction is created from a `signing` template — the template
            places its fields itself, and must place a signature field for every
            recipient asked to sign.
      required:
        - recipients
      description: >-
        The request sent to the transaction's recipients — who takes part, what
        each of them is asked to do, and the fields placed on the document for
        them to fill.
    annotationField:
      type: object
      properties:
        choiceGroup:
          type: string
          description: >-
            Identifier shared by the radio buttons, or the checkbox-group
            fields, that form one group on the document. Only one radio button
            of a group can be checked. Null for a field of any other type, or
            one that belongs to no group.
          example: '1'
          nullable: true
        fileName:
          type: string
          description: >-
            Display name of the file the recipient submits. Set only for a
            submitted-file field.
          example: evidence.pdf
          nullable: true
        id:
          type: string
          description: Identifier of the field.
          example: 8b1d4e60
        isFilled:
          type: boolean
          description: Whether the field has already been filled by a recipient.
          example: false
        isPublic:
          type: boolean
          description: >-
            Whether a file submitted through the field is publicly accessible.
            Meaningful only for a submitted-file field.
          example: false
        maxCharacters:
          type: integer
          minimum: 1
          description: >-
            Number of equal-width character cells the field is split into, one
            character per cell. Null when the field is not split into cells.
          example: 10
          nullable: true
        options:
          type: array
          items:
            type: string
          description: >-
            Options a dropdown field offers; when there are any, its value must
            be one of them. Empty for a field of any other type.
          example:
            - Full-time
            - Part-time
        order:
          type: integer
          description: >-
            Which of the recipient's rounds the field belongs to in a sequential
            transaction. Null when it is not tied to a specific round, and
            always null in a parallel transaction.
          example: 1
          nullable: true
        pages:
          type: array
          items:
            type: integer
          description: Pages the field is placed on (the first page is 1).
          example:
            - 1
        position:
          allOf:
            - $ref: '#/components/schemas/signaturePosition'
          description: Where the field is placed on each page.
          nullable: true
        readOnly:
          type: boolean
          description: >-
            Whether the field only displays its text and cannot be edited by the
            recipient.
          example: false
        recipients:
          type: array
          items:
            $ref: '#/components/schemas/person'
          description: >-
            Recipients the field is assigned to, each one of the transaction's
            `recipients` — match them by `userId`, or by `email` for a party
            without an account. When several are listed, any one of them can
            fill it — a quorum group.
        required:
          type: boolean
          description: >-
            Whether the field must be filled for the recipient's action to
            complete.
          example: true
        text:
          type: string
          description: >-
            Text content of the field: the pre-filled value for a read-only
            field, otherwise a default the recipient can change.
          example: Approved
          nullable: true
        tooltip:
          type: string
          description: Hint shown to the recipient when filling the field.
          example: Enter your job title
          nullable: true
        type:
          type: string
          description: >-
            What the field collects.


            - `annotation_box_field`: A text box form field.

            - `annotation_check`: A checkbox form field.

            - `annotation_check_group`: A group of checkbox form fields.

            - `annotation_company`: A company, filled in automatically.

            - `annotation_date`: A date that you provide.

            - `annotation_datetime`: A date and time that you provide.

            - `annotation_datetime_current`: The current date and time, filled
            in automatically.

            - `annotation_date_current`: The current date, filled in
            automatically.

            - `docId`: The document's identifier, filled in automatically.

            - `annotation_dropdown`: A dropdown form field.

            - `annotation_submitted_file`: Attaches a file to the document.

            - `annotation_full_name`: A full name, filled in automatically.

            - `annotation_generic`: Free-form text that you provide.

            - `annotation_link`: A clickable link to an external target.

            - `annotation_mail`: An email address, filled in automatically.

            - `annotation_metadata`: A form field bound to one of the document's
            metadata fields.

            - `annotation_phone`: A phone number, filled in automatically.

            - `annotation_radio`: A radio-button form field.

            - `annotation_role`: A job title, filled in automatically.
          enum:
            - annotation_box_field
            - annotation_check
            - annotation_check_group
            - annotation_company
            - annotation_date
            - annotation_datetime
            - annotation_datetime_current
            - annotation_date_current
            - docId
            - annotation_dropdown
            - annotation_submitted_file
            - annotation_full_name
            - annotation_generic
            - annotation_link
            - annotation_mail
            - annotation_metadata
            - annotation_phone
            - annotation_radio
            - annotation_role
            - null
          example: annotation_generic
          nullable: true
      required:
        - choiceGroup
        - fileName
        - id
        - isFilled
        - isPublic
        - maxCharacters
        - options
        - order
        - pages
        - position
        - readOnly
        - recipients
        - required
        - text
        - tooltip
        - type
      description: An annotation field placed on the document for recipients to fill.
    transactionDocument:
      type: object
      properties:
        id:
          type: string
          pattern: ^[A-Za-z0-9_-]+$
          minLength: 1
          description: Identifier of the document.
          example: a0d01c9d-f72f-4c57-af11-e26bda19cc59
        mainFileId:
          type: string
          pattern: ^[a-z0-9]+$
          minLength: 1
          description: >-
            Identifier of the document's current main file. The main file
            changes as signatures and seals are applied, so always download the
            latest value.
          example: s1pss1atbzli272pinbt48n2ssy96ax2pwgqrz5qyzklwxg1kl0tq6anvz1p97xj
          nullable: true
        metadataDefinition:
          type: string
          pattern: ^[A-Za-z0-9_-]+$
          minLength: 1
          maxLength: 100
          description: Identifier of the metadata definition the document was created with.
          example: d_default
          nullable: true
        signatureProvider:
          type: string
          description: >-
            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.
          enum:
            - internal
            - datasure
            - emdha
            - uaePassSign
            - icaQualified
            - icaSwStore
            - null
          example: internal
          nullable: true
        templateId:
          type: string
          pattern: ^[A-Za-z0-9_-]+$
          minLength: 1
          description: >-
            Identifier of the template the document is bound to. Null when it is
            not bound to a template.
          example: cba71ea5-9a68-431a-a5c2-6d9932792ec7
          nullable: true
        title:
          type: string
          description: Human-readable title of the document.
          example: Client agreement
          nullable: true
      required:
        - id
        - mainFileId
        - metadataDefinition
        - signatureProvider
        - templateId
        - title
      description: A compact view of the document a transaction runs on.
    imageField:
      type: object
      properties:
        id:
          type: string
          description: Identifier of the field.
          example: c7e0a233
        isFilled:
          type: boolean
          description: Whether the field has already been filled by a recipient.
          example: false
        order:
          type: integer
          description: >-
            Which of the recipient's rounds the field belongs to in a sequential
            transaction. Null when it is not tied to a specific round, and
            always null in a parallel transaction.
          example: 1
          nullable: true
        pages:
          type: array
          items:
            type: integer
          description: Pages the field is placed on (the first page is 1).
          example:
            - 1
        position:
          allOf:
            - $ref: '#/components/schemas/signaturePosition'
          description: Where the field is placed on each page.
          nullable: true
        recipients:
          type: array
          items:
            $ref: '#/components/schemas/person'
          description: >-
            Recipients the field is assigned to, each one of the transaction's
            `recipients` — match them by `userId`, or by `email` for a party
            without an account. When several are listed, any one of them can
            fill it — a quorum group.
        required:
          type: boolean
          description: >-
            Whether the field must be filled for the recipient's action to
            complete.
          example: true
        tooltip:
          type: string
          description: Hint shown to the recipient when filling the field.
          example: Attach the site photo here
          nullable: true
      required:
        - id
        - isFilled
        - order
        - pages
        - position
        - recipients
        - required
        - tooltip
      description: An image field placed on the document for recipients to fill.
    transactionRecipient:
      type: object
      properties:
        completedAt:
          type: string
          format: date-time
          description: >-
            When the recipient finished their participation — completed or
            rejected their action. Null while they have not finished it.
          example: '2024-11-02T09:15:30.000Z'
          nullable: true
        expiresAt:
          type: string
          format: date-time
          description: >-
            The deadline for the recipient to complete their action; after this
            moment the request expires. Null when there is no deadline.
          example: '2024-11-02T09:15:30.000Z'
          nullable: true
        id:
          type: string
          description: >-
            Identifier of the recipient's participation in the transaction. Null
            for a signature applied directly rather than through a request to a
            recipient, such as the document owner's own signature.
          example: sd0oAvfpB4k0yDf787x4
          nullable: true
        isMandatory:
          type: boolean
          description: >-
            Whether the recipient's rejection or expiry ends the whole
            transaction. A recipient who is not mandatory is still awaited, but
            the transaction goes on without them when they reject or their
            request expires.
        language:
          type: string
          pattern: ^[a-z][a-z-]+$
          minLength: 1
          description: >-
            Language of the notifications sent to the recipient. Null when none
            was set, so the default language applies.
          example: en
          nullable: true
        message:
          type: string
          description: >-
            The private message shown only to this recipient, as plain text: its
            formatting is dropped and every link is written as its text followed
            by its address in parentheses.
          example: Please sign by Friday.
          nullable: true
        order:
          type: integer
          description: >-
            The recipient's round in a sequential transaction — recipients act
            from the lowest order upwards, and recipients sharing an order act
            together in the same round. The value is relative: only the ordering
            and which recipients share a value are significant, not the absolute
            number. Null for parallel transactions and for the document owner's
            own signature.
          example: 1
          nullable: true
        permissions:
          type: array
          items:
            type: string
            enum:
              - print
              - delegate
              - viewMetadata
              - annotateOnReject
              - rejectWithoutComment
              - uploadFiles
            description: >-
              - `print`: The recipient may print the document.

              - `delegate`: The recipient may delegate their action to someone
              else.

              - `viewMetadata`: The recipient may view the document's metadata.

              - `annotateOnReject`: The recipient may add annotations when
              rejecting.

              - `rejectWithoutComment`: The recipient may reject without
              providing a comment.

              - `uploadFiles`: The recipient may upload attachment files to the
              document freely, beyond filling any pre-placed attachment fields.
          description: >-
            What the recipient is allowed to do with the shared document. Null
            for the document owner's own signature.
          nullable: true
        purpose:
          type: string
          description: >-
            What the recipient is asked to do with the document.


            - `view`: The recipient is given read-only access to the document.

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

            - `edit`: The recipient is requested to edit the document.

            - `execute`: The recipient is requested to perform a workflow action
            on the document.
          enum:
            - view
            - sign
            - approve
            - review
            - accept
            - edit
            - execute
            - null
          nullable: true
        quorum:
          type: integer
          description: >-
            How many recipients of the same order must complete their action for
            the transaction to move on. Null when all of them must, and for a
            recipient who only views the document.
          example: 1
          nullable: true
        recipient:
          allOf:
            - $ref: '#/components/schemas/person'
          description: >-
            The recipient — a Circularo user, or a party without an account
            identified by their email address. Null when it cannot be
            determined.
          nullable: true
        reminder:
          allOf:
            - $ref: '#/components/schemas/transactionReminder'
          description: >-
            Automatic reminders sent to the recipient until they complete their
            action. Null when no automatic reminders are sent.
          nullable: true
        status:
          type: string
          description: >-
            Current state of the recipient's participation. Live statuses
            (`queued`, `pending`, `viewed`) describe a running transaction; once
            the transaction reaches a terminal status, recipients that did not
            act keep the status they had.


            - `queued`: The recipient is not up yet — earlier recipients act
            first.

            - `pending`: The recipient is up and their action is awaited.

            - `viewed`: The recipient has opened the document.

            - `completed`: The recipient has completed their action.

            - `superseded`: The recipient did not act; a peer meeting the
            `quorum` completed the action for their order group.

            - `rejected`: The recipient has rejected the request.

            - `cancelled`: The recipient's participation was cancelled before
            they completed their action.

            - `expired`: The recipient's deadline passed before they completed
            their action.
          enum:
            - queued
            - pending
            - viewed
            - completed
            - superseded
            - rejected
            - cancelled
            - expired
          example: pending
        turnStartedAt:
          type: string
          format: date-time
          description: >-
            When the recipient came up in the transaction and their action
            became awaited. Null while their turn has not come yet.
          example: '2024-11-02T09:15:30.000Z'
          nullable: true
        verification:
          allOf:
            - $ref: '#/components/schemas/recipientVerification'
          description: >-
            Verification required from the recipient, keyed by the verification
            method. Null when no verification is required.
          nullable: true
      required:
        - completedAt
        - expiresAt
        - id
        - isMandatory
        - language
        - message
        - order
        - permissions
        - purpose
        - quorum
        - recipient
        - reminder
        - status
        - turnStartedAt
        - verification
      description: >-
        A recipient of the transaction and the current state of their
        participation.
    signatureField:
      type: object
      properties:
        id:
          type: string
          description: >-
            Identifier of the field. Reference it as `signFieldId` when signing
            to fill this exact field.
          example: 3f2a9c1e
        isFilled:
          type: boolean
          description: Whether the field has already been filled by a recipient.
          example: false
        order:
          type: integer
          description: >-
            Which of the recipient's rounds the field belongs to in a sequential
            transaction. Null when it is not tied to a specific round, and
            always null in a parallel transaction.
          example: 1
          nullable: true
        pages:
          type: array
          items:
            type: integer
          description: Pages the field is placed on (the first page is 1).
          example:
            - 1
        position:
          allOf:
            - $ref: '#/components/schemas/signaturePosition'
          description: Where the field is placed on each page.
          nullable: true
        recipients:
          type: array
          items:
            $ref: '#/components/schemas/person'
          description: >-
            Recipients the field is assigned to, each one of the transaction's
            `recipients` — match them by `userId`, or by `email` for a party
            without an account. When several are listed, any one of them can
            fill it — a quorum group.
        required:
          type: boolean
          description: >-
            Whether the field must be filled for the recipient's action to
            complete.
          example: true
        tooltip:
          type: string
          description: Hint shown to the recipient when filling the field.
          example: Sign here
          nullable: true
        type:
          type: string
          description: |-
            The kind of signature the field collects.

            - `signature`: A signature.
            - `initials`: Initials.
            - `stamp`: A stamp.
            - `wacom`: A signature captured with a signature pad.
            - `organization_stamp`: An organization stamp.
          enum:
            - signature
            - initials
            - stamp
            - wacom
            - organization_stamp
            - null
          example: signature
          nullable: true
      required:
        - id
        - isFilled
        - order
        - pages
        - position
        - recipients
        - required
        - tooltip
        - type
      description: A signature field placed on the document for recipients to fill.
    annotationInput:
      type: object
      properties:
        align:
          type: string
          description: Horizontal text alignment.
          enum:
            - left
            - center
            - right
          example: left
          default: left
        backgroundColor:
          type: string
          pattern: ^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{8})$
          description: Background color of the annotation.
          example: '#ffaa55'
          nullable: true
        bold:
          type: boolean
          description: Whether the text is drawn in bold.
          example: false
          default: false
        color:
          type: string
          pattern: ^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{8})$
          description: Text color.
          example: '#ffaa55'
          default: '#000000'
          nullable: true
        comment:
          type: string
          maxLength: 1500
          description: Optional comment stored with the annotation.
          example: Processed as requested.
          nullable: true
        fileId:
          type: string
          pattern: ^[a-z0-9]+$
          minLength: 1
          description: >-
            Identifier of the uploaded file to attach — required with the
            submitted-file type and when filling a submitted-file sign field.
          example: s1pss1atbzli272pinbt48n2ssy96ax2pwgqrz5qyzklwxg1kl0tq6anvz1p97xj
          nullable: true
        fileName:
          type: string
          maxLength: 255
          description: Display name for the attached file, used when a file is attached.
          example: evidence.pdf
          nullable: true
        font:
          type: string
          maxLength: 64
          pattern: ^[A-Za-z0-9_-]+$
          description: >-
            Name of the font used for the text, such as `default`, `opensans` or
            `raleway`. Further fonts are available only where they have been
            installed for your environment.
          example: opensans
          nullable: true
        fontSize:
          type: number
          minimum: 4
          maximum: 100
          description: Font size, in points.
          example: 11
          default: 11
        isPublic:
          type: boolean
          description: >-
            Whether the attached file is publicly accessible, used with the
            submitted-file type.
          example: false
          default: false
        link:
          type: string
          maxLength: 2048
          format: uri
          description: Turns the annotation into a link to this URL.
          example: https://example.com
          nullable: true
        pages:
          type: array
          items:
            type: integer
            minimum: 1
          minItems: 1
          maxItems: 5000
          description: >-
            Pages the annotation is placed on (the first page is 1). Required
            unless a sign field is being filled.
          example:
            - 1
        position:
          allOf:
            - $ref: '#/components/schemas/signaturePositionInput'
          description: >-
            Where the annotation is placed on each page. Required unless a sign
            field is being filled.
        signFieldId:
          type: string
          description: >-
            Identifier of a sign field pre-placed on the document to fill. The
            field defines the placement and appearance, so only `text`,
            `fileId`, `fileName` and `comment` may accompany it.
          example: field-1
          nullable: true
        text:
          type: string
          maxLength: 10000
          description: >-
            Text content of the annotation. Required except for the checkbox,
            radio and submitted-file types and when filling a sign field;
            automatic types replace it with the computed value. Except on a
            checkbox or radio annotation and in a field whose `maxCharacters`
            splits its box into character cells, the text is wrapped between
            words to the width of the annotation's box — a word wider than the
            box is split and a newline character forces a line break — and its
            lines are spaced at the font's natural line height from the top of
            the box. A box too short for them grows downwards by whole lines in
            the drawn document, keeping its width and top edge, while the
            placement of the sign field it fills stays as it was; a field laid
            out for a fixed number of lines grows to at most that many, and a
            read-only field's box keeps its height. A text that needs more lines
            than its box may hold, or a box that would grow past the bottom of
            the page, is refused, and the error's `details.signFieldId` names
            the field when the annotation fills one.
          example: Approved
        type:
          type: string
          description: >-
            What the annotation represents. Text types take their value from the
            `text` field; automatic types replace it with the computed value.


            - `annotation_box_field`: A text box form field.

            - `annotation_check`: A checkbox form field.

            - `annotation_check_group`: A group of checkbox form fields.

            - `annotation_company`: A company, filled in automatically.

            - `annotation_date`: A date that you provide.

            - `annotation_datetime`: A date and time that you provide.

            - `annotation_datetime_current`: The current date and time, filled
            in automatically.

            - `annotation_date_current`: The current date, filled in
            automatically.

            - `docId`: The document's identifier, filled in automatically.

            - `annotation_dropdown`: A dropdown form field.

            - `annotation_submitted_file`: Attaches a file to the document.

            - `annotation_full_name`: A full name, filled in automatically.

            - `annotation_generic`: Free-form text that you provide.

            - `annotation_link`: A clickable link to an external target.

            - `annotation_mail`: An email address, filled in automatically.

            - `annotation_metadata`: A form field bound to one of the document's
            metadata fields.

            - `annotation_phone`: A phone number, filled in automatically.

            - `annotation_radio`: A radio-button form field.

            - `annotation_role`: A job title, filled in automatically.
          enum:
            - annotation_box_field
            - annotation_check
            - annotation_check_group
            - annotation_company
            - annotation_date
            - annotation_datetime
            - annotation_datetime_current
            - annotation_date_current
            - docId
            - annotation_dropdown
            - annotation_submitted_file
            - annotation_full_name
            - annotation_generic
            - annotation_link
            - annotation_mail
            - annotation_metadata
            - annotation_phone
            - annotation_radio
            - annotation_role
          example: annotation_generic
          default: annotation_generic
        zIndex:
          type: integer
          description: >-
            Stacking order relative to other overlapping elements; higher is
            drawn on top.
          example: 0
          default: 0
          nullable: true
      description: An annotation to add to the document.
    imageInput:
      type: object
      properties:
        comment:
          type: string
          maxLength: 1500
          description: Optional comment stored with the image.
          example: Processed as requested.
          nullable: true
        fileId:
          type: string
          pattern: ^[a-z0-9]+$
          minLength: 1
          description: Identifier of the uploaded image to embed.
          example: s1pss1atbzli272pinbt48n2ssy96ax2pwgqrz5qyzklwxg1kl0tq6anvz1p97xj
        pages:
          type: array
          items:
            type: integer
            minimum: 1
          minItems: 1
          maxItems: 5000
          description: >-
            Pages the image is placed on (the first page is 1). Required unless
            a sign field is being filled.
          example:
            - 1
        position:
          allOf:
            - $ref: '#/components/schemas/signaturePositionInput'
          description: >-
            Where the image is placed on each page. Required unless a sign field
            is being filled.
        signFieldId:
          type: string
          description: >-
            Identifier of a sign field pre-placed on the document to fill. The
            field defines the placement, so `pages`, `position` and `zIndex`
            must be omitted.
          example: field-1
          nullable: true
        zIndex:
          type: integer
          description: >-
            Stacking order relative to other overlapping elements; higher is
            drawn on top.
          example: 0
          default: 0
          nullable: true
      required:
        - fileId
      description: An image to embed into the document.
    signatureInput:
      type: object
      properties:
        comment:
          type: string
          maxLength: 1500
          description: Optional comment stored with the signature.
          example: Processed as requested.
          nullable: true
        decoration:
          type: string
          description: >-
            Decoration drawn around the signature or initials image. Defaults to
            the decoration your environment applies to signatures made in the
            Circularo web app. Your environment may restrict which decorations
            can be used.


            - `none`: The image alone, without the signature identifier caption.

            - `caption`: The image with a caption carrying the identifier of the
            signature.

            - `frame`: The image in a frame, with a "Signed by" caption and the
            identifier of the signature.
          enum:
            - none
            - caption
            - frame
          example: frame
        fileId:
          type: string
          pattern: ^[a-z0-9]+$
          minLength: 1
          description: >-
            Identifier of one of your configured signature or initials images to
            use. If omitted, your first configured image of the matching type is
            used.
          example: s1pss1atbzli272pinbt48n2ssy96ax2pwgqrz5qyzklwxg1kl0tq6anvz1p97xj
          nullable: true
        pages:
          type: array
          items:
            type: integer
            minimum: 1
          minItems: 1
          maxItems: 5000
          description: >-
            Pages the signature is placed on (the first page is 1). Required
            unless a sign field is being filled.
          example:
            - 1
        position:
          allOf:
            - $ref: '#/components/schemas/signaturePositionInput'
          description: >-
            Where the signature is placed on each page. Required unless a sign
            field is being filled.
        signFieldId:
          type: string
          description: >-
            Identifier of a sign field pre-placed on the document to fill. The
            field defines the placement and kind of the signature, so `pages`,
            `position` and `type` must be omitted.
          example: field-1
          nullable: true
        type:
          type: string
          description: >-
            The kind of signature to apply. Not allowed when filling a sign
            field, which defines the kind itself.


            - `signature`: A signature.

            - `initials`: Initials.
          enum:
            - signature
            - initials
          example: signature
          default: signature
      description: A signature to apply to the document.
    annotationFieldInput:
      type: object
      properties:
        fileName:
          type: string
          maxLength: 255
          description: >-
            Display name for the file the recipient submits. Only allowed with
            the submitted-file type.
          example: evidence.pdf
          nullable: true
        isPublic:
          type: boolean
          description: >-
            Whether the submitted file is publicly accessible. Only allowed with
            the submitted-file type.
          example: false
          default: false
        order:
          type: integer
          minimum: 0
          description: >-
            Which of the recipient's rounds the field belongs to when they take
            part in the transaction more than once — must match that round's
            order. Only meaningful for sequential transactions; without it the
            field's recipients must each take part exactly once.
          example: 1
        pages:
          type: array
          items:
            type: integer
            minimum: 1
          minItems: 1
          maxItems: 5000
          description: Pages the field is placed on (the first page is 1).
          example:
            - 1
        position:
          allOf:
            - $ref: '#/components/schemas/signaturePositionInput'
          description: Where the field is placed on each page.
        readOnly:
          type: boolean
          description: >-
            Whether the field only displays its text and cannot be edited by the
            recipient.
          example: false
          default: false
        recipients:
          type: array
          items:
            type: string
            pattern: ^[A-Za-z0-9.@_+-]+$
            minLength: 1
            example: john.doe+member@example.com
          minItems: 1
          uniqueItems: true
          description: >-
            Recipients the field is assigned to, each given exactly as the
            matching `send.recipients[].recipient`. When several are listed, any
            one of them can fill it — used for `quorum` groups. Only recipients
            with the `sign` purpose can be assigned fields.
        required:
          type: boolean
          description: >-
            Whether the field must be filled for the recipient's action to
            complete.
          example: true
          default: true
        text:
          type: string
          maxLength: 10000
          description: >-
            Pre-filled text content of the field. Required when the field is
            read-only. Except on a checkbox or radio field, the text is wrapped
            to the width of the box when the field is filled, and the box drawn
            for it grows downwards by whole lines as the text needs — except a
            read-only field's box, which keeps its height — and the field's own
            placement stays as it was. A text that does not fit, or a box that
            would grow past the bottom of the page, is refused when the field is
            filled.
          example: Approved
          nullable: true
        tooltip:
          type: string
          maxLength: 255
          description: Hint shown to the recipient when filling the field.
          example: Enter your job title
          nullable: true
        type:
          type: string
          description: >-
            What the field collects.


            - `annotation_box_field`: A text box form field.

            - `annotation_check`: A checkbox form field.

            - `annotation_check_group`: A group of checkbox form fields.

            - `annotation_company`: A company, filled in automatically.

            - `annotation_date`: A date that you provide.

            - `annotation_datetime`: A date and time that you provide.

            - `annotation_datetime_current`: The current date and time, filled
            in automatically.

            - `annotation_date_current`: The current date, filled in
            automatically.

            - `docId`: The document's identifier, filled in automatically.

            - `annotation_dropdown`: A dropdown form field.

            - `annotation_submitted_file`: Attaches a file to the document.

            - `annotation_full_name`: A full name, filled in automatically.

            - `annotation_generic`: Free-form text that you provide.

            - `annotation_link`: A clickable link to an external target.

            - `annotation_mail`: An email address, filled in automatically.

            - `annotation_metadata`: A form field bound to one of the document's
            metadata fields.

            - `annotation_phone`: A phone number, filled in automatically.

            - `annotation_radio`: A radio-button form field.

            - `annotation_role`: A job title, filled in automatically.
          enum:
            - annotation_box_field
            - annotation_check
            - annotation_check_group
            - annotation_company
            - annotation_date
            - annotation_datetime
            - annotation_datetime_current
            - annotation_date_current
            - docId
            - annotation_dropdown
            - annotation_submitted_file
            - annotation_full_name
            - annotation_generic
            - annotation_link
            - annotation_mail
            - annotation_metadata
            - annotation_phone
            - annotation_radio
            - annotation_role
          example: annotation_generic
          default: annotation_generic
      required:
        - pages
        - position
        - recipients
      description: An annotation field placed on the document for recipients to fill.
    imageFieldInput:
      type: object
      properties:
        order:
          type: integer
          minimum: 0
          description: >-
            Which of the recipient's rounds the field belongs to when they take
            part in the transaction more than once — must match that round's
            order. Only meaningful for sequential transactions; without it the
            field's recipients must each take part exactly once.
          example: 1
        pages:
          type: array
          items:
            type: integer
            minimum: 1
          minItems: 1
          maxItems: 5000
          description: Pages the field is placed on (the first page is 1).
          example:
            - 1
        position:
          allOf:
            - $ref: '#/components/schemas/signaturePositionInput'
          description: Where the field is placed on each page.
        recipients:
          type: array
          items:
            type: string
            pattern: ^[A-Za-z0-9.@_+-]+$
            minLength: 1
            example: john.doe+member@example.com
          minItems: 1
          uniqueItems: true
          description: >-
            Recipients the field is assigned to, each given exactly as the
            matching `send.recipients[].recipient`. When several are listed, any
            one of them can fill it — used for `quorum` groups. Only recipients
            with the `sign` purpose can be assigned fields.
        required:
          type: boolean
          description: >-
            Whether the field must be filled for the recipient's action to
            complete.
          example: true
          default: true
        tooltip:
          type: string
          maxLength: 255
          description: Hint shown to the recipient when filling the field.
          example: Attach the site photo here
          nullable: true
      required:
        - pages
        - position
        - recipients
      description: An image field placed on the document for recipients to fill.
    transactionRecipientInput:
      type: object
      properties:
        expiresAt:
          type: string
          format: date-time
          description: >-
            The deadline for the recipient to complete their action; after this
            moment the request expires. Must lie in the future.
          example: '2030-11-02T09:15:30.000Z'
          nullable: true
        fieldIds:
          type: array
          items:
            type: string
            maxLength: 64
          minItems: 1
          maxItems: 100
          uniqueItems: true
          description: >-
            Identifiers of the template's placed fields this recipient fills —
            an alternative to casting a whole role via `role`. Only valid when
            the transaction is created from a template (`templateId`); use the
            `id` values from the template's `signatureFields`,
            `annotationFields` and `imageFields`. All the fields of one
            recipient must belong to the same template role, whose purpose,
            order and quorum then apply to them, and a role assigned this way
            must have every one of its fields assigned — split them between
            several recipients to have each fill only their own. Several
            recipients may share one field only when it belongs to a `group`
            role; a field the template locks to specific recipients must be
            assigned exactly those, each `recipient` given as the listed
            person's `userId`, or `email` for a party without an account. At
            most one of `role` and `fieldIds` may be provided.
          example:
            - 3f2a9c1e
        isMandatory:
          type: boolean
          description: >-
            Whether the recipient's rejection or expiry ends the whole
            transaction. A recipient who is not mandatory is still awaited like
            any other, but when they reject or their request expires, the
            transaction goes on without them — unless their round can then no
            longer reach its `quorum`. A mandatory recipient cannot be removed
            from a running transaction.
          example: true
          default: true
        language:
          type: string
          pattern: ^[a-z][a-z-]+$
          minLength: 1
          description: >-
            Language of the notifications sent to the recipient. Defaults to the
            recipient's own language when known.
          example: en
          nullable: true
        message:
          type: string
          maxLength: 2000
          description: >-
            A private message shown only to this recipient. May carry basic
            formatting — bold, italic, underline, https links and bullet lists;
            everything else is stripped on input. Responses return it as plain
            text.
          example: Please sign by <b>Friday</b>.
        order:
          type: integer
          minimum: 0
          description: >-
            Position of this recipient in a sequential transaction — recipients
            act from the lowest order upwards, and recipients sharing an order
            act together in the same round, in parallel (optionally with a
            `quorum`). The value is relative: only the ordering and which
            recipients share a value matter, not the absolute number. Defaults
            to the recipient's position in the array; give it to every recipient
            who acts on the document or to none of them. Ignored for parallel
            transactions, and not accepted for a recipient who only views the
            document, since they take part in no round. Cannot be set together
            with `role` or `fieldIds` — a template role carries its own order.
          example: 1
        permissions:
          type: array
          items:
            type: string
            enum:
              - print
              - delegate
              - viewMetadata
              - annotateOnReject
              - rejectWithoutComment
              - uploadFiles
            description: >-
              - `print`: The recipient may print the document.

              - `delegate`: The recipient may delegate their action to someone
              else.

              - `viewMetadata`: The recipient may view the document's metadata.

              - `annotateOnReject`: The recipient may add annotations when
              rejecting.

              - `rejectWithoutComment`: The recipient may reject without
              providing a comment.

              - `uploadFiles`: The recipient may upload attachment files to the
              document freely, beyond filling any pre-placed attachment fields.
          uniqueItems: true
          description: What the recipient is allowed to do with the shared document.
          example:
            - print
            - viewMetadata
            - annotateOnReject
            - rejectWithoutComment
            - uploadFiles
          default:
            - print
            - viewMetadata
            - annotateOnReject
            - rejectWithoutComment
            - uploadFiles
        purpose:
          type: string
          description: >-
            What the recipient is asked to do with the document. A recipient
            asked to sign needs a signature field placed for them — in
            `send.signatureFields`, or by a `signing` template. Cannot be set
            together with `role` or `fieldIds` — a template role carries its own
            purpose.


            - `view`: The recipient is given read-only access to the document.

            - `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.
          enum:
            - view
            - sign
            - approve
            - review
            - accept
          example: sign
          default: sign
        quorum:
          type: integer
          minimum: 1
          description: >-
            How many recipients of the same order must complete their action for
            the transaction to move on. Defaults to all of them; recipients
            acting together must give the same value. Cannot be set together
            with `role` or `fieldIds` — a template role carries its own quorum —
            nor for a recipient who only views the document.
          example: 1
        recipient:
          type: string
          pattern: ^[A-Za-z0-9.@_+-]+$
          minLength: 1
          description: >-
            Identifier or email address of the recipient. A user is looked up by
            identifier first, then by email address; an email address that
            matches no active user makes the recipient an external party without
            a Circularo account. Recipients outside your organization are
            allowed only when you may share outside it.
          example: john.doe+member@example.com
        reminder:
          allOf:
            - $ref: '#/components/schemas/transactionReminderInput'
          description: >-
            Automatic reminders sent to the recipient until they complete their
            action. Not accepted for a recipient who only views the document,
            since there is no action to remind them about.
          nullable: true
        role:
          type: string
          maxLength: 255
          description: >-
            The template role this recipient fills. Only valid when the
            transaction is created from a template (`templateId`); use a role
            handle from the template's `roles`. A `single` role is filled by
            exactly one recipient, a `group` role by listing several recipients
            with the same role; a role the template locks to specific recipients
            must be cast with exactly those, each `recipient` given as the
            listed person's `userId`, or `email` for a party without an account.
            To assign the recipient specific fields instead of a whole role, use
            `fieldIds`. At most one of `role` and `fieldIds` may be provided.
          example: Client
          nullable: true
        verification:
          allOf:
            - $ref: '#/components/schemas/recipientVerificationInput'
          description: >-
            Verification required from the recipient before they can access the
            document. Applies to recipients without a Circularo account; ignored
            for account holders, who authenticate by signing in.
          nullable: true
      required:
        - recipient
      description: >-
        A recipient of the transaction and everything about how they
        participate.
    signatureFieldInput:
      type: object
      properties:
        order:
          type: integer
          minimum: 0
          description: >-
            Which of the recipient's rounds the field belongs to when they take
            part in the transaction more than once — must match that round's
            order. Only meaningful for sequential transactions; without it the
            field's recipients must each take part exactly once.
          example: 1
        pages:
          type: array
          items:
            type: integer
            minimum: 1
          minItems: 1
          maxItems: 5000
          description: Pages the field is placed on (the first page is 1).
          example:
            - 1
        position:
          allOf:
            - $ref: '#/components/schemas/signaturePositionInput'
          description: Where the field is placed on each page.
        recipients:
          type: array
          items:
            type: string
            pattern: ^[A-Za-z0-9.@_+-]+$
            minLength: 1
            example: john.doe+member@example.com
          minItems: 1
          uniqueItems: true
          description: >-
            Recipients the field is assigned to, each given exactly as the
            matching `send.recipients[].recipient`. When several are listed, any
            one of them can fill it — used for `quorum` groups. Only recipients
            with the `sign` purpose can be assigned fields.
        required:
          type: boolean
          description: >-
            Whether the field must be filled for the recipient's action to
            complete.
          example: true
          default: true
        tooltip:
          type: string
          maxLength: 255
          description: Hint shown to the recipient when filling the field.
          example: Sign here
          nullable: true
        type:
          type: string
          description: |-
            The kind of signature the field collects.

            - `signature`: A signature.
            - `initials`: Initials.
          enum:
            - signature
            - initials
          example: signature
          default: signature
      required:
        - pages
        - position
        - recipients
      description: A signature field placed on the document for recipients to fill.
    signaturePosition:
      type: object
      properties:
        height:
          type: number
          description: >-
            Height of the field as a fraction of the page height. Null when no
            size is known, as for an anchor that carries none.
          example: 0.07
          nullable: true
        width:
          type: number
          description: >-
            Width of the field as a fraction of the page width. Null when no
            size is known, as for an anchor that carries none.
          example: 0.25
          nullable: true
        x:
          type: number
          description: >-
            Horizontal position of the field's top-left corner as a fraction of
            the page width. A position calculated from an anchor may fall
            outside the 0–1 range; clamp it before placing a field there.
          example: 0.11764706
          nullable: true
        'y':
          type: number
          description: >-
            Vertical position of the field's top-left corner as a fraction of
            the page height. A position calculated from an anchor may fall
            outside the 0–1 range; clamp it before placing a field there.
          example: 0.6826886
          nullable: true
      required:
        - height
        - width
        - x
        - 'y'
      description: >-
        The position and size of a field on a page, expressed as fractions of
        the page dimensions.
    person:
      type: object
      properties:
        email:
          type: string
          description: >-
            The person's email address. In a record of a past event it is the
            address the person had at that time; elsewhere it is their current
            address. Null when it is not known.
          example: jane.doe@example.com
          nullable: true
        fullname:
          type: string
          description: >-
            The person's full name. Null when it is not known, or when the
            person is outside your organization and not among your contacts.
          example: Jane Doe
          nullable: true
        userId:
          type: string
          description: >-
            Identifier of the person's Circularo account, the `id` of the user.
            Treat it as an opaque value: even where it looks like an email
            address, it is not one. Null for a party without a Circularo
            account.
          example: jane.doe@example.com
          nullable: true
      required:
        - email
        - fullname
        - userId
      description: >-
        A person the resource refers to: their Circularo account, if they have
        one, their email address and their name.
    transactionReminder:
      type: object
      properties:
        intervalDays:
          type: integer
          description: How many days pass between two reminders.
          example: 3
        startAt:
          type: string
          format: date-time
          description: When the first reminder is sent.
          example: '2024-11-02T09:15:30.000Z'
      required:
        - intervalDays
        - startAt
      description: >-
        Automatic reminders sent to a recipient until they complete their
        action.
    recipientVerification:
      type: object
      properties:
        email:
          allOf:
            - $ref: '#/components/schemas/emailVerification'
          description: The recipient is verified with a one-time code sent by email.
          nullable: true
        kyc:
          allOf:
            - $ref: '#/components/schemas/kycVerification'
          description: The recipient must verify their identity through a KYC provider.
          nullable: true
        nafath:
          allOf:
            - $ref: '#/components/schemas/nafathVerification'
          description: >-
            The recipient must verify their identity through the Nafath national
            identity service.
          nullable: true
        oauth:
          allOf:
            - $ref: '#/components/schemas/oauthVerification'
          description: >-
            The recipient must verify their identity through an OAuth identity
            provider.
          nullable: true
        password:
          allOf:
            - $ref: '#/components/schemas/passwordVerification'
          description: >-
            The recipient is verified with a password. The password itself is
            never returned.
          nullable: true
        sms:
          allOf:
            - $ref: '#/components/schemas/smsVerification'
          description: The recipient is verified with a one-time code sent by SMS.
          nullable: true
      required:
        - email
        - kyc
        - nafath
        - oauth
        - password
        - sms
      description: >-
        The verification required from a recipient, keyed by the verification
        method. Enabled methods carry their configuration; disabled ones are
        null.
    signaturePositionInput:
      type: object
      properties:
        height:
          type: number
          maximum: 1
          description: Height of the element, as a fraction of the page height.
          example: 0.07
        width:
          type: number
          maximum: 1
          description: Width of the element, as a fraction of the page width.
          example: 0.2
        x:
          type: number
          minimum: 0
          maximum: 1
          description: >-
            Horizontal position of the element's top-left corner, as a fraction
            of the page width.
          example: 0.15
        'y':
          type: number
          minimum: 0
          maximum: 1
          description: >-
            Vertical position of the element's top-left corner, as a fraction of
            the page height.
          example: 0.3
      required:
        - height
        - width
        - x
        - 'y'
      description: >-
        Where an element is placed on the page, as fractions of the page size.
        The element must fit on the page: `x` + `width` and `y` + `height` may
        not exceed 1.
    transactionReminderInput:
      type: object
      properties:
        intervalDays:
          type: integer
          minimum: 1
          description: How many days pass between two reminders.
          example: 3
        startAt:
          type: string
          format: date-time
          description: >-
            When the first reminder is sent. Must lie in the future and, when
            `expiresAt` is sent alongside, before it.
          example: '2030-11-01T08:00:00.000Z'
      required:
        - intervalDays
        - startAt
      description: >-
        Automatic reminders sent to a recipient until they complete their
        action.
    recipientVerificationInput:
      type: object
      minProperties: 1
      maxProperties: 1
      properties:
        email:
          allOf:
            - $ref: '#/components/schemas/emailVerificationInput'
          description: Verify the recipient with a one-time code sent by email.
        kyc:
          allOf:
            - $ref: '#/components/schemas/kycVerificationInput'
          description: Verify the recipient's identity through a KYC provider.
        nafath:
          allOf:
            - $ref: '#/components/schemas/nafathVerificationInput'
          description: >-
            Verify the recipient's identity through the Nafath national identity
            service.
        oauth:
          allOf:
            - $ref: '#/components/schemas/oauthVerificationInput'
          description: Verify the recipient's identity through an OAuth identity provider.
        password:
          allOf:
            - $ref: '#/components/schemas/passwordVerificationInput'
          description: Verify the recipient with a password you share with them.
        sms:
          allOf:
            - $ref: '#/components/schemas/smsVerificationInput'
          description: Verify the recipient with a one-time code sent by SMS.
      description: >-
        Verification required from an external recipient, keyed by the
        verification method. Exactly one method can be enabled.
    emailVerification:
      type: object
      properties:
        address:
          type: string
          description: Anonymized email address the one-time code is sent to.
          example: j*****e@example.com
      required:
        - address
      description: >-
        Email verification — the recipient is verified with a one-time code sent
        by email.
    kycVerification:
      type: object
      properties:
        documentTypes:
          type: array
          items:
            type: string
            enum:
              - idCard
              - passport
              - driverLicense
              - residencePermit
            description: |-
              - `idCard`: A national identity card.
              - `passport`: A passport.
              - `driverLicense`: A driver's license.
              - `residencePermit`: A residence permit.
          description: >-
            Identity document types the recipient may verify with. Empty when
            any document type the provider supports is accepted.
        factors:
          type: array
          items:
            type: string
            enum:
              - idVerification
              - livenessDetection
              - selfieWithId
            description: >-
              - `idVerification`: The recipient's identity document is verified.

              - `livenessDetection`: The recipient must pass a liveness check.

              - `selfieWithId`: The recipient must provide a selfie together
              with their identity document.
          description: Checks the KYC provider performs on the recipient.
        providers:
          type: array
          items:
            type: string
            example: identomat
          description: KYC providers the recipient may verify through.
        requiredMatches:
          type: array
          items:
            type: string
            enum:
              - dateOfBirth
              - documentNumber
              - nationality
            description: >-
              - `dateOfBirth`: The recipient's date of birth must match the
              verified identity document.

              - `documentNumber`: The recipient's identity document number must
              match the verified identity document.

              - `nationality`: The recipient's nationality must match the
              verified identity document.
          description: >-
            Identity fields the verified document must match. The expected
            values themselves are never returned.
      required:
        - documentTypes
        - factors
        - providers
        - requiredMatches
      description: >-
        KYC verification — the recipient must verify their identity through one
        of the allowed KYC providers.
    nafathVerification:
      type: object
      properties:
        personId:
          type: string
          description: Anonymized Nafath person identifier the recipient must verify with.
          example: '********890'
      required:
        - personId
      description: >-
        Nafath verification — the recipient must verify their identity through
        the Nafath national identity service.
    oauthVerification:
      type: object
      properties:
        factors:
          type: array
          items:
            $ref: '#/components/schemas/oauthFactor'
          description: >-
            Identity attributes checked after the recipient verifies through the
            provider.
        providers:
          type: array
          items:
            type: string
            example: uaePass
          description: Identity providers the recipient may verify through.
      required:
        - factors
        - providers
      description: >-
        OAuth verification — the recipient must verify their identity through
        one of the allowed identity providers.
    passwordVerification:
      type: object
      additionalProperties: false
      description: >-
        Password verification — the recipient must enter a password to access
        the document. The password itself is never returned.
    smsVerification:
      type: object
      properties:
        phone:
          type: string
          description: Anonymized phone number the one-time code is sent to.
          example: '*****78'
      required:
        - phone
      description: >-
        SMS verification — the recipient is verified with a one-time code sent
        to their phone.
    emailVerificationInput:
      type: object
      properties:
        address:
          type: string
          pattern: ^[A-Za-z0-9.@_+-]+$
          maxLength: 128
          format: email
          description: >-
            Email address the one-time code is sent to. Defaults to the
            recipient's own email address.
          example: jane.doe+2024@example.com
          nullable: true
      description: >-
        Email verification — a one-time code is sent to the recipient's email
        address.
    kycVerificationInput:
      type: object
      properties:
        documentTypes:
          type: array
          items:
            type: string
            enum:
              - idCard
              - passport
              - driverLicense
              - residencePermit
            description: |-
              - `idCard`: A national identity card.
              - `passport`: A passport.
              - `driverLicense`: A driver's license.
              - `residencePermit`: A residence permit.
          uniqueItems: true
          minItems: 1
          description: >-
            Identity document types the recipient may verify with. Requires the
            `idVerification` factor. Defaults to any document type the provider
            supports.
        expectedData:
          allOf:
            - $ref: '#/components/schemas/kycExpectedDataInput'
          description: >-
            Known identity details that the verified identity document must
            match. Requires the `idVerification` factor. When updating or
            reassigning a recipient, set to `null` to keep the KYC check but
            remove the identity data match.
          nullable: true
        factors:
          type: array
          items:
            type: string
            enum:
              - idVerification
              - livenessDetection
              - selfieWithId
            description: >-
              - `idVerification`: The recipient's identity document is verified.

              - `livenessDetection`: The recipient must pass a liveness check.

              - `selfieWithId`: The recipient must provide a selfie together
              with their identity document.
          uniqueItems: true
          minItems: 1
          description: Checks the KYC provider performs on the recipient.
          example:
            - idVerification
          default:
            - idVerification
        providers:
          type: array
          items:
            type: string
            maxLength: 128
            example: identomat
          uniqueItems: true
          minItems: 1
          description: >-
            KYC providers the recipient may verify through, each one available
            to your account.
      required:
        - providers
      description: >-
        KYC verification — the recipient must verify their identity through one
        of the allowed KYC providers.
    nafathVerificationInput:
      type: object
      properties:
        personId:
          type: string
          maxLength: 64
          description: Nafath person identifier the recipient must verify with.
          example: '1234567890'
      required:
        - personId
      description: >-
        Nafath verification — the recipient must verify their identity through
        the Nafath national identity service.
    oauthVerificationInput:
      type: object
      properties:
        factors:
          type: array
          items:
            $ref: '#/components/schemas/oauthFactorInput'
          description: >-
            Identity attributes to check after the recipient verifies through
            the provider. Defaults to checking that the verified email address
            matches the recipient.
        providers:
          type: array
          items:
            type: string
            maxLength: 128
            example: uaePass
          uniqueItems: true
          minItems: 1
          description: >-
            Identity providers the recipient may verify through, as configured
            for your environment.
      required:
        - providers
      description: >-
        OAuth verification — the recipient must verify their identity through
        one of the allowed identity providers.
    passwordVerificationInput:
      type: object
      properties:
        password:
          type: string
          maxLength: 255
          description: >-
            The password the recipient must enter to access the document. Share
            it with them through a channel of your own.
          example: SecurePassword123
      required:
        - password
      description: >-
        Password verification — the recipient must enter this password to access
        the document.
    smsVerificationInput:
      type: object
      properties:
        phone:
          type: string
          pattern: ^\+?[1-9]\d{1,14}$
          description: Phone number the one-time code is sent to.
          example: '+493012345678'
          nullable: true
      required:
        - phone
      description: >-
        SMS verification — a one-time code is sent to the recipient's phone
        number.
    oauthFactor:
      type: object
      properties:
        type:
          type: string
          description: >-
            Which attribute of the verified identity is checked.


            - `email`: The email address returned by the identity provider must
            match the value.

            - `phoneNumber`: The phone number returned by the identity provider
            must match the value.

            - `emiratesId`: The Emirates ID returned by the identity provider
            must match the value.
          enum:
            - email
            - phoneNumber
            - emiratesId
            - null
          nullable: true
        value:
          type: string
          description: Anonymized value the attribute must match.
          example: j*****e@example.com
          nullable: true
      required:
        - type
        - value
      description: An identity attribute checked during OAuth verification.
    kycExpectedDataInput:
      type: object
      properties:
        dateOfBirth:
          type: string
          format: date-time
          description: >-
            The recipient's date of birth. Provide a calendar date; if a time
            component is included it must be UTC (Zulu) at midnight, otherwise
            the date is rejected to avoid a time-zone day shift. At least one of
            `dateOfBirth`, `documentNumber` and `nationality` must be provided.
          example: '1988-11-13'
        documentNumber:
          type: string
          description: >-
            The recipient's identity document number. Matched exactly, ignoring
            case and whitespace. At least one of `dateOfBirth`, `documentNumber`
            and `nationality` must be provided.
          example: X1234567
          nullable: true
        nationality:
          type: string
          description: >-
            The recipient's nationality, matched exactly (case-insensitive).
            Typically an ISO 3166-1 alpha-3 country code, as returned by the KYC
            provider. At least one of `dateOfBirth`, `documentNumber` and
            `nationality` must be provided.
          example: CZE
          nullable: true
      description: >-
        Known identity details about a recipient that the verified identity
        document must match. At least one field is required.
    oauthFactorInput:
      type: object
      properties:
        type:
          type: string
          description: >-
            Which attribute of the verified identity is checked.


            - `email`: The email address returned by the identity provider must
            match the value.

            - `phoneNumber`: The phone number returned by the identity provider
            must match the value.

            - `emiratesId`: The Emirates ID returned by the identity provider
            must match the value.
          enum:
            - email
            - phoneNumber
            - emiratesId
          example: email
        value:
          type: string
          maxLength: 255
          description: >-
            The value the attribute must match. For the `email` attribute this
            has to be the recipient's own address; any other value is rejected.
          example: jane.doe@example.com
      required:
        - type
        - value
      description: An identity attribute to check during OAuth verification.
  securitySchemes:
    ApiKey:
      type: http
      scheme: bearer
      description: >-
        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.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.