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

# Send a document to its recipients

> `POST /share`

Sends a document out to the people who are to see it or act on it: one share is created per recipient, the document is put into the transaction they are part of, and everyone whose turn it is gets notified.

Each entry in `data` says who the document goes to, what is asked of them, and - for a recipient without an account here - how their access is guarded. Recipients act all at once unless `sequential` is set, in which case they act in the order they carry and each step is notified only when its turn comes; several recipients acting at the same point may be settled by a quorum rather than by all of them. A recipient from outside the workspace is written to with a link to the document, one from inside is pointed at the document itself.

The same call may prepare the document for what is being asked: sign fields for the recipients to fill in, and annotations, images or a signature the sender applies while sending. Sign fields sent here replace whatever the document carried before.

Being sent out for an action is a one-off in a document's life: the sending stays in its history for good, so a document that has ever been sent out for one cannot be sent out for another, however that transaction ended and even after its workflow is reset. Sharing a document only to be read is free of that and may be done at any time. It does not count against the workspace's transactions, unless the sender signs the document in the same call - their signature takes one, as signing the document on its own does.

---

**Token authorization:** Authorize using a token — either a session token obtained from login or an API key — to call this endpoint.



## OpenAPI

````yaml /api-v1/openapi.json post /share
openapi: 3.0.3
info:
  title: Circularo API v1
  description: >-
    Circularo API v1 is the REST API that powers the Circularo platform and its
    first-party clients — the web app, the mobile apps and the Microsoft 365
    add-ins.


    This API spans the full surface of Circularo's functionality — document
    management, signing and sharing, workflow processing, administration, and
    configuration. It is **not** a stable contract and may change between
    releases without prior notice. It stays available for existing integrations
    while they move to Circularo API v2; new integrations belong on API v2.


    ## Authentication


    Most endpoints act on behalf of a signed-in user and require a token. Obtain
    a session token by signing in with `POST /login` — when multi-factor
    authentication is active, the token stays locked until you unlock it with a
    second factor — or use a long-lived API key. Send it as the `token` query
    parameter or in an `Authorization: Bearer` header. A session token expires
    after a period without use. Each endpoint's description lists the rights and
    roles it requires.


    Endpoints usable without signing in identify the environment by the request
    address or by the `tenant` query parameter. Endpoints for share recipients
    authenticate with the share token instead, together with a one-time password
    where the share is protected.
  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/v1
security:
  - Token: []
tags:
  - name: ACLs
    description: >-
      An ACL (access control list) is a named bundle of rights carried by groups
      — a user holds a right only because one of their groups carries an ACL
      that grants it. Create, search, update and delete ACLs; which rights an
      ACL grants is set on the rights, and which groups carry it is set on the
      groups. Deleting an ACL detaches it from every right and group.
  - name: API Keys
    description: >-
      An API key is a long-lived credential for connecting an external system to
      Circularo. It acts with the rights of the user who owns it and stays valid
      as long as it is in regular use. Create, list and revoke your own API keys
      — the secret is returned only once, at creation, so store it securely. A
      key can also be issued for a SCIM client, in which case only the SCIM
      endpoints accept it.
  - name: Attachments
    description: >-
      An attachment is a supporting file filed alongside a document, separate
      from its main file. Add, download, replace, rename and delete the
      attachments of a document, download all of them at once as a ZIP archive,
      or read an attachment of a draft. An attachment is addressed by the
      document identifier and its file hash.
  - name: Certificates
    description: >-
      Download the signing certificates configured for the instance as a ZIP
      archive of PKCS#12 files, for use by external signing components, and
      check whether they have changed since your last download so you can skip
      an unnecessary one. Both endpoints are meant for those components and
      authenticate with a pre-shared key rather than a user token.
  - name: Configuration
    description: >-
      The signed-in user's own account — profile and preferences, password,
      authentication factors and recovery codes, saved search filters,
      signature, initials and profile images, device push tokens, and
      introductory guides. Every endpoint acts on the caller only; other users'
      accounts are managed through the user endpoints.
  - name: Contacts
    description: >-
      A contact is an address-book entry owned by the user who created it,
      optionally shared with other users and groups, who can then pick it as a
      recipient when sharing documents. Create, search, update and delete
      contacts, change who they are shared with, and import or export them as
      CSV or JSON, previewing an import file before it is applied.
  - name: Counters
    description: >-
      A counter issues sequential identifiers, such as document numbers,
      following a pattern that combines fixed text, date segments and
      incrementing digits or letters — for example `ID-{year}-{###}`. A counter
      can restart whenever one of its date segments changes, such as at the
      start of each year. Create, read and update counters, and take the next
      value from one.
  - name: Definitions
    description: >-
      Definitions describe how documents are structured and processed. A
      metadata definition is a document type — its fields, its form, its
      processing options and the workflow it follows; a workflow definition is a
      set of states and the actions that move a document between them. Create,
      read, update and delete both kinds, list the actions available in a
      workflow state, put individual transitions behind a right, and export a
      metadata definition together with everything it depends on.
  - name: Documents
    description: >-
      A document is the central record of Circularo — a main file together with
      the metadata its metadata definition describes, optional attachments, and
      the workflow that moves it through its states. Create, read, edit and
      delete documents; sign, seal or annotate them; convert or merge their
      files; clone, rename or transfer them to a new owner; control who may read
      and edit them; and download their audit trail. Operations that change a
      document carry the version you last read, so a change made in the meantime
      is not silently overwritten.
  - name: Drafts
    description: >-
      A draft is the unfinished state of a document being prepared — created,
      edited, cloned or signed — kept privately for the user who started it and
      never shared. Create, list, search, update and delete drafts; an update
      replaces the whole draft and carries the version you last read. A draft is
      removed automatically once the document operation it was prepared for
      succeeds.
  - name: Enums
    description: >-
      An enumeration is a tenant-wide reference list — a definition declaring
      its fields, some of which may be unique, and the records that fill it —
      that supplies the values of list-type metadata fields. Create, search,
      update and delete enumerations and their records, share records with users
      and groups, and import or export records as CSV or JSON. Fields can be
      added to an existing enumeration but never removed or retyped.
  - name: Export
    description: >-
      An exporter turns a selection of documents into a downloadable output —
      such as a CSV or XLSX listing, PDF files, the original files, or a ZIP
      archive of a folder tree. List the exporters available to you, select the
      documents with a search query, and tune the output with exporter-specific
      options. Large exports run in the background; count the documents first to
      learn whether the result comes back directly or as a background job.
  - name: Fields
    description: >-
      A global field is a metadata field declared once per tenant and reused by
      many metadata definitions, which makes its values searchable and
      aggregatable across document types. Create, read, search, export and
      delete global fields, see which definitions use a field, and check whether
      a field name is available. A global field is never updated in place —
      delete it and create it again.
  - name: Files
    description: >-
      A file is a stored binary, identified by its hash, that documents,
      attachments, signatures and profiles refer to. Upload, download (including
      byte ranges), inspect, rename, relabel and replace files; convert them to
      PDF or PDF/A, or merge several into one PDF; upload signature, initials
      and profile images; and check your storage capacity. Public files, such as
      branding assets, can be downloaded without authentication.
  - name: Folders
    description: >-
      A folder organizes documents into a tree — either your personal tree,
      which is yours alone, or the shared tree. Create, read, rename and delete
      folders, move items within a tree, hand documents over to the other tree,
      or take them out of a tree entirely. Moving documents into the shared tree
      can grant them the rights of the target folder; deleted folders go to the
      trash, from which they can be restored.
  - name: Groups
    description: >-
      A group bundles users and carries the permissions granted to them — it
      holds ACLs, and its members receive the rights those ACLs grant. An
      organization is represented as a group too. Create, search, update and
      delete groups, add them to and remove them from ACLs, find the groups that
      grant a particular right, and resolve group display names. Membership is
      managed from the user side.
  - name: Inbox
    description: >-
      The inbox is where internal users act on the documents in their workflow.
      Execute a workflow action on a document, comment on its workflow, cancel
      the workflow and archive the document, or reset it to its start state.
      Cancelling or resetting a workflow does not withdraw the shares already
      sent to recipients.
  - name: Languages
    description: >-
      Languages and their translation keys hold the interface texts of the
      tenant. Add, activate, deactivate and delete languages; create, update,
      rename and delete translation keys, one at a time or in bulk; read
      translations per key or per language, including as a flat map for client
      localization; and import or export languages as JSON files. An imported
      language always arrives inactive.
  - name: LDAP
    description: >-
      Synchronize users and groups from Active Directory into Circularo. The
      synchronization only creates and updates — it never deletes anything and
      never writes back to the directory — and a dry run previews its result
      without applying it.
  - name: Links
    description: >-
      A link connects two documents that relate to each other. Link two
      documents, list the links of a document, or remove a link. Links have no
      direction — each pair of documents is linked at most once.
  - name: Login
    description: >-
      Sign in and inspect the sessions of the signed-in user. Sign in with a
      username and password to obtain a session token; when multi-factor
      authentication is active, the token stays locked until you unlock it with
      a second factor or a recovery code, and you can have a new code sent. Read
      the current sign-in status, the rights you hold, and your active sessions.
  - name: Logout
    description: >-
      End sign-in sessions. Sign out of the current session or another of your
      own, or — as an administrator — end every session of a user at once, for
      example when an account may be compromised. Ending a user's sessions
      leaves their API keys working.
  - name: Logs
    description: >-
      The audit log is the record of significant actions across the system — who
      did what, to which entity, and when. Search it with a structured query and
      page through large results with a scroll, which you release when done, or
      read a single entry. What you see depends on your role: the activity that
      concerns you, your organization's activity, or the whole tenant's. Entries
      are written in batches, so the most recent actions may appear with a short
      delay.
  - name: Nafath
    description: >-
      Verify a person's identity through Nafath, the Saudi national digital
      identity platform — to sign in, to link the identity to an account, to
      verify a share recipient, or to authorize a signature. Start a check,
      which the person confirms in the Nafath app, and poll its status until it
      completes; Nafath reports the outcome through a callback.
  - name: Notifications
    description: >-
      A notification informs a user about an event that concerns them. These
      endpoints cover your in-app notifications: list and search them, count the
      unread ones, mark them as read, and delete them. You can also list the
      delivery channels — in-app, e-mail and push — and the notification types,
      which each user switches on or off per channel.
  - name: OAuth
    description: >-
      Connect to external identity and service providers over OAuth 2.0, such as
      Microsoft, Google or Dropbox. Sign in through a provider, which can also
      create the account, or connect a provider account to your own — such as a
      cloud storage — then obtain a fresh access token for it or disconnect it.
      A provider can also verify a share recipient or authorize a signature. A
      client that cannot rely on the session cookie, such as a native app,
      exchanges a one-time code for a login token.
  - name: Ping
    description: >-
      Check that Circularo API v1 is reachable and answering. No authentication
      is required; the check covers the API itself, not storage or background
      services.
  - name: Plans
    description: >-
      A plan is a named entry in the catalogue of service offerings that
      subscriptions refer to; it carries no limits or billing of its own — those
      belong to the subscription. Create, search and update plans, which is an
      administrative task, and read a single plan.
  - name: Revisions
    description: >-
      A revision is a snapshot of a whole document, taken by the operations that
      change it. List the revisions of a document, read one, compare two of
      them, restore a document to an earlier revision, or undo the changes made
      to its main file since the last snapshot, such as annotations or
      signatures. Restoring is refused for a document that is signed or waiting
      for action unless you force it.
  - name: Rights
    description: >-
      A right is a named permission to use a feature or perform an action. Users
      never hold rights directly: a right lists the ACLs that grant it, and
      users receive it through the ACLs of their groups. Create, read, search,
      update and delete rights, including rights scoped to particular metadata
      definitions, workflows and actions.
  - name: SAML
    description: >-
      Sign in through a SAML 2.0 identity provider configured for the tenant, an
      organization or a group. Start the sign-in, which redirects to the
      identity provider; the provider posts the result back to the callback,
      which either sets the session cookie or redirects to your client with a
      one-time code that you exchange for a login token. Download the service
      provider metadata to register Circularo with the identity provider.
  - name: SCIM
    description: >-
      Provision users and groups automatically from an identity provider over
      SCIM 2.0 (RFC 7643 and RFC 7644). Create, read, replace, patch and
      deprovision accounts and groups within your organization, and discover the
      supported schemas, resource types and service provider configuration. SCIM
      clients authenticate with a SCIM API key in an `Authorization: Bearer`
      header, SCIM must be enabled for the tenant, and errors follow the SCIM
      format instead of the common error body.
  - name: Search
    description: >-
      Search and analyze documents. Select documents with a structured query of
      filter, must, should and must-not clauses, and add aggregations, which are
      written in Elasticsearch syntax; page through results with an offset or a
      scroll, count documents for several searches at once, or locate the page a
      document is on. Run the stored dashboards for chart-ready analytics, or
      build reports that pair each document with its transaction across the
      organization.
  - name: Settings
    description: >-
      Settings configure the behaviour and appearance of Circularo at a chosen
      scope — tenant, organization, role, group or user. A value not set at one
      scope is inherited from the scope above it, down to the shipped defaults.
      Read the settings in force for you, the settings of one scope or what it
      inherits, and write them whole or property by property; tailor the e-mails
      sent at a scope and send a trial one; replace the single sign-on signing
      keys; and try out a language model configuration before saving it.
  - name: Share
    description: >-
      A share sends a document to one recipient — an internal user or an
      external person without a Circularo account — to view, edit, sign,
      approve, review or accept it; the shares of a document together form its
      transaction. As the sender, send a document to its recipients in parallel
      or in a set order, then edit, remind, search or call off the shares, or
      get the document's permanent public link. As a recipient, open the share
      with its share token — plus a one-time password where the share is
      protected by an SMS or e-mail code, a password or an identity check — then
      read and download the document, sign it or complete your action, comment
      on it, reject it, or delegate it to somebody else.
  - name: Stamps
    description: >-
      A stamp is a reusable visual mark — a design of shape, frame, colours and
      lines of text, rendered into an image — that is placed on documents during
      signing. A stamp is either personal, belonging to one user, or shared
      across an organization. Create, read, search, edit and delete stamps;
      deleting a stamp does not affect the documents already stamped with it.
  - name: Static
    description: >-
      Download the client-side installers that hardware signature capture
      requires: the Wacom tablet driver and the Wacom SigCaptX signature capture
      tool for Windows.
  - name: Stripe
    description: >-
      Self-service billing through Stripe for organization administrators. List
      the subscription products on sale, start paying for a new subscription,
      change what it holds or stop it from renewing, read its billing summary,
      and open the billing portal. Stripe itself reports payment events through
      the webhook endpoint.
  - name: Subscriptions
    description: >-
      A subscription holds what an organization or a user is entitled to — the
      limits of its plan, the usage consumed against them, its period and its
      commercial details. Create, read, search and edit subscriptions and search
      their recorded history; this is mostly administrative, and organization
      administrators may edit only the commercial details. Any user can ask the
      sales team about a larger plan.
  - name: Support
    description: >-
      Send a support ticket — a technical problem, a question, a feature request
      or a subscription inquiry — to the support address of your environment,
      with optional attachments. Replies come back to you by e-mail.
  - name: Tags
    description: >-
      Tags label documents for categorization and filtering. A private tag is
      visible only to the user who set it; a public tag is visible to everyone
      who can see the document and can be searched for. List the tags in use,
      and add, remove or replace tags on many documents at once. Tagging
      requires only read access to a document.
  - name: Templates
    description: >-
      A template is a reusable starting point for documents — a document
      together with recipient roles, the fields placed for each of them, and
      share settings — from which a transaction can be started again and again.
      Create, search, update and delete templates, share them with other users
      and groups, and export or import them, previewing an import file before it
      is applied.
  - name: Users
    description: >-
      A user is an account in the tenant. Create, search, update and delete
      accounts, in bulk where needed; manage their group membership, signing
      certificates, linked external identities, and signature, initials and
      profile images; and list the rights a user holds. The account flows that
      run before sign-in — self-registration, activation and password reset —
      belong here as well. A deleted account is kept as a historical record.
  - name: Verify
    description: >-
      Verify the signatures, seals and timestamps on a document — looked up by
      its identifier or by a signature identifier, or uploaded as a file, in
      which case the result also tells whether the file is known to Circularo
      and whether it has been modified. Verification works with or without
      signing in and can include the detailed validation reports of the DSS
      (Digital Signature Service).
  - name: Webhooks
    description: >-
      A webhook notifies an external system of document events in real time —
      such as a document being created, edited or deleted, a signature being
      requested, delegated, rejected or cancelled, and a document being signed
      or completed. Register a callback URL for your tenant or organization,
      secured by Basic authentication or a signing secret, and list, update or
      delete webhooks. Each event is delivered once, without retries.
  - name: WOPI
    description: >-
      Web Application Open Platform Interface (WOPI) endpoints through which an
      online office editor — Microsoft Office Online or Collabora Online — opens
      and edits files directly in the browser. Issue a token for the editor and
      list the file types it can open; the editor itself then reads the file
      information and content, manages locks, and writes the edited content back
      to Circularo.
  - name: WS
    description: >-
      Pass messages between a user's devices in real time over a WebSocket
      connection — for example, a phone sending a photo or a hand-drawn
      signature to the browser session where the user is working. The browser
      opens the connection with a session token, or with a share token and
      one-time password, and receives a connection token; the other device sends
      messages into the connection with that token alone.
paths:
  /share:
    post:
      tags:
        - Share
      summary: Send a document to its recipients
      description: >-
        `POST /share`


        Sends a document out to the people who are to see it or act on it: one
        share is created per recipient, the document is put into the transaction
        they are part of, and everyone whose turn it is gets notified.


        Each entry in `data` says who the document goes to, what is asked of
        them, and - for a recipient without an account here - how their access
        is guarded. Recipients act all at once unless `sequential` is set, in
        which case they act in the order they carry and each step is notified
        only when its turn comes; several recipients acting at the same point
        may be settled by a quorum rather than by all of them. A recipient from
        outside the workspace is written to with a link to the document, one
        from inside is pointed at the document itself.


        The same call may prepare the document for what is being asked: sign
        fields for the recipients to fill in, and annotations, images or a
        signature the sender applies while sending. Sign fields sent here
        replace whatever the document carried before.


        Being sent out for an action is a one-off in a document's life: the
        sending stays in its history for good, so a document that has ever been
        sent out for one cannot be sent out for another, however that
        transaction ended and even after its workflow is reset. Sharing a
        document only to be read is free of that and may be done at any time. It
        does not count against the workspace's transactions, unless the sender
        signs the document in the same call - their signature takes one, as
        signing the document on its own does.


        ---


        **Token authorization:** Authorize using a token — either a session
        token obtained from login or an API key — to call this endpoint.
      operationId: requestSharesPostShare
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/requestSharesPostShare'
      responses:
        '200':
          description: Returns the share records created, one per recipient.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/responseSharesRecordMultiple'
        '400':
          description: >-
            The document, a recipient, a language or a sign field could not be
            resolved, or the recipients and the order they act in do not make a
            workable transaction.
          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: >-
            The sender's subscription is not active, or has no room left for
            another transaction or for the seal that sharing for approval or
            acceptance applies to the document.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error'
              example:
                status: 402
                type: SUBSCRIPTION:NOT_ACTIVE
                message: Subscription not active
                requestId: 3fa85f6457174562b3fc2c963f66afa6
        '403':
          description: >-
            The caller does not own the document, may not reach one of the
            recipients, is not allowed to share outside the workspace, or lacks
            a right the request depends on - a way of guarding the share, or
            letting the recipient hand their part over.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error'
              example:
                status: 403
                type: AUTH:ACCESS_DENIED
                message: Access denied
                requestId: 3fa85f6457174562b3fc2c963f66afa6
        '404':
          description: >-
            The document is gone, or the template the fields are to be checked
            against no longer exists.
          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 has already been sent out for an action, or is not in a
            state in which what is being asked of the recipients is possible.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error'
              example:
                status: 409
                type: RESOURCE:STATE_CONFLICT
                message: Resource state conflict
                requestId: 3fa85f6457174562b3fc2c963f66afa6
      security:
        - Token: []
components:
  schemas:
    requestSharesPostShare:
      type: object
      properties:
        annotations:
          type: array
          items:
            $ref: '#/components/schemas/requestDocumentsAnnotation'
          description: Annotations the sender puts into the document while sending it out.
        data:
          type: array
          items:
            $ref: '#/components/schemas/requestSharesShareData'
          minItems: 1
          maxItems: 100
          description: >-
            The recipients, one entry each: who the document goes to, what is
            asked of them, and how their access is guarded.
        dateFormat:
          type: string
          description: >-
            Format to show dates to the recipients in, written in Luxon tokens.
            The sender's own format is used when none is given, and the
            workspace's after that.
          example: DD/MM/YYYY
          nullable: true
        draftId:
          type: string
          description: >-
            Draft this sending was prepared in. It is thrown away once the
            document has gone out.
          nullable: true
        id:
          type: string
          pattern: ^[A-Za-z0-9_-]+$
          minLength: 1
          description: Document to send out.
          example: a0d01c9d-f72f-4c57-af11-e26bda19cc59
        images:
          type: array
          items:
            $ref: '#/components/schemas/requestDocumentsImageData'
          description: Images the sender places into the document while sending it out.
        isPublicComment:
          type: boolean
          description: >-
            Whether the `message` recorded with this sending is visible to
            recipients from outside the workspace, rather than being kept among
            its own users.
          example: false
          default: false
        message:
          type: string
          maxLength: 2000
          description: >-
            Message to all the recipients, delivered with the document. A
            message meant for one of them alone belongs on their own entry in
            `data`. May carry basic formatting — bold, italic, underline, https
            links and bullet lists; everything else is stripped on input.
          example: New client agreement to sign.
        objectType:
          type: string
          description: Kind of object being sent out.
          enum:
            - document
        releaseDeletedTemplate:
          type: boolean
          description: >-
            Whether a document bound to a locked template that has since been
            deleted is released from it, so that it can still be sent out: the
            binding is removed from the document and the recipients are added
            without the fields being checked against a template. It has no
            effect when `templateId` is sent, when the template the document is
            bound to still exists - the document is then checked against it as
            always - or on a share that places no fields, fills none and asks
            nobody to sign, approve or accept, which is never checked against a
            template.
          example: false
          default: false
        returnUrl:
          type: string
          description: >-
            Where a recipient is sent once they have done what was asked of
            them.
          example: https://example.com/thank-you
          nullable: true
        sequential:
          type: boolean
          description: >-
            Whether the recipients act one after another, in the order their
            entries carry, each step being notified only when its turn comes.
            Otherwise everybody is asked at once.
          example: false
          default: false
        shareSettings:
          allOf:
            - $ref: '#/components/schemas/entityGenericShareSettings'
          description: >-
            The settings the sender chose in the sharing dialog, kept on the
            document so that the next transaction can be started from them. They
            are a record only - what actually applies to each recipient is what
            their entry in `data` says.
          nullable: true
        signatureFields:
          type: array
          items:
            $ref: '#/components/schemas/requestDocumentsSignatureFields'
          description: >-
            Fields the recipients are to fill in - where each signature,
            annotation or file goes and who is to provide it. They replace the
            fields the document carried before.
        signatureProvider:
          type: string
          description: >-
            Signature provider to use for the signing process. Accepts both
            single-step providers and the two-step I.CA providers. When a
            two-step provider is selected, it is stored on the document for the
            recipients to sign with; the sharing user can't sign synchronously
            with it.
          enum:
            - datasure
            - emdha
            - internal
            - uaePassSign
            - icaQualified
            - icaSwStore
          example: internal
        signatures:
          type: array
          items:
            $ref: '#/components/schemas/requestDocumentsSignature'
          description: >-
            Array of signature data to be applied to the document. Each
            signature defines the signature field ID, position, and other
            properties.
        signatureType:
          type: string
          description: >-
            Type of signature to apply. Options include "signature"
            (cryptographic signature with visual representation) or "image"
            (visual representation only).
          enum:
            - signature
            - image
        templateId:
          type: string
          description: ID of the template with signFields.
          nullable: true
        timeFormat:
          type: string
          description: Time format to use for all provided shares. Luxon tokens.
          example: hh:mm
          nullable: true
        timezone:
          type: string
          description: Timezone to use for embedded timestamps in the document.
          example: Europe/London
        type:
          type: string
          pattern: ^[A-Za-z0-9_-]+$
          minLength: 1
          maxLength: 100
          description: >-
            Document metadata definition identifier. This must match the
            metadata definition identifier of the document being shared.
          example: d_default
        useTsa:
          type: boolean
          description: Should TSA be added for every signature?
          example: false
          default: false
      required:
        - data
        - id
        - objectType
        - type
    responseSharesRecordMultiple:
      type: array
      items:
        $ref: '#/components/schemas/responseSharesRecordSingle'
      description: >-
        The share records the request produced or found, one per recipient - who
        the document went to, what is asked of them, how their access is guarded
        and how far they have got with it. The token that opens a share is not
        part of a record; it is fetched separately for a share the caller is
        entitled to.
    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
    requestDocumentsAnnotation:
      type: object
      properties:
        align:
          type: string
          description: >-
            Horizontal alignment of the text inside the annotation's box.
            Ignored when `maxCharacters` splits the box into character cells.
            Cannot be combined with `signFieldId`.
          enum:
            - left
            - center
            - right
        backgroundColor:
          type: string
          pattern: ^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{8})$
          description: >-
            Color filling the rectangle drawn behind the annotation's text.
            Nothing is filled when it is empty. Cannot be combined with
            `signFieldId`.
          example: '#ffaa55'
          nullable: true
        blob:
          type: string
          minLength: 1
          description: >-
            Identifier in the binary storage of the file the annotation attaches
            to the document. Only a submitted-file annotation carries one, and
            only a file the acting user uploaded themselves is accepted.
          example: da09a47b4f5b1xv726cfm36l8k1hkxzwmj5mszvfq6szoambdvc44v6i8hrhnu1f
        bold:
          type: boolean
          description: >-
            Renders the annotation's text with the bold variant of `font`.
            Cannot be combined with `signFieldId`.
        color:
          type: string
          pattern: ^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{8})$
          description: >-
            Color of the annotation's text, and of the underline drawn beneath
            it when `link` is set.
          example: '#ffaa55'
          default: '#000000'
          nullable: true
        comment:
          type: string
          maxLength: 1500
          description: >-
            Free-form comment the acting user attaches to the annotation while
            applying it.
          example: Processed as requested.
          nullable: true
        fileName:
          type: string
          description: >-
            Name under which the attached file is listed on the document. When
            it is empty the uploaded file keeps its own name.
          example: evidence.pdf
          nullable: true
        font:
          type: string
          description: >-
            Key of the font family used for the annotation's text. It is
            resolved to a font file by the PDF signing service, so only the
            fonts that service ships are usable. Cannot be combined with
            `signFieldId`.
          example: default
          nullable: true
        fontSize:
          type: number
          minimum: 4
          maximum: 100
          description: >-
            Size of the annotation's text in points. Cannot be combined with
            `signFieldId`.
        link:
          type: string
          maxLength: 2048
          description: >-
            Target address the annotation points to. When it is set, the
            rendered text becomes a clickable link underlined in the
            annotation's color. Cannot be combined with `signFieldId`.
          example: https://example.com
          nullable: true
        maxCharacters:
          type: integer
          minimum: 0
          exclusiveMinimum: true
          maximum: 256
          description: >-
            Number of equal-width character cells the annotation's box is split
            into, one glyph per cell. Cannot be combined with `signFieldId`.
          nullable: true
        pages:
          type: array
          items:
            type: integer
            minimum: 1
            example: 3
          maxItems: 5000
          description: >-
            Pages the annotation is rendered on, the first page being `1`. The
            same box is drawn on each of them. Cannot be combined with
            `signFieldId`.
        position:
          type: object
          additionalProperties: false
          description: >-
            Placement and size of the annotation's box on each of its pages.
            With `signFieldId` set, the box comes from the sign field and only
            its width and height can be overridden here.
        public:
          type: boolean
          description: >-
            Marks the attached file as visible to every reader of the document,
            including recipients outside the document's organization; otherwise
            only its uploader and users of that organization see it. Cannot be
            combined with `signFieldId`.
        signee:
          type: string
          description: >-
            Person the annotation is attributed to when it is filled in by
            someone other than the authenticated user, as happens during
            in-person signing. It is stored as supplied, without being resolved
            against a user record.
        signFieldId:
          type: string
          description: >-
            Identifier of the sign field this annotation fills. The field's own
            placement, formatting and subtype are taken from it. `signFieldId`
            cannot be combined with `pages`, `align`, `fontSize`, `bold`,
            `backgroundColor`, `link`, `subtype`, `font`, `maxCharacters` and
            `public`.
          example: 1LTn5IimzXh68bOv
          nullable: true
        subtype:
          type: string
          description: >-
            What the annotation renders or collects, refining it into a concrete
            kind. Several of the subtypes are filled in by the platform rather
            than by the caller. Cannot be combined with `signFieldId`.
          enum:
            - null
            - 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
          nullable: true
        text:
          type: string
          maxLength: 10000
          description: >-
            Text the annotation renders into the file. On a checkbox or radio
            annotation the leading character encodes the toggle state and the
            rest is the label; for the automatically filled subtypes the
            platform composes the text itself. Except on a checkbox or radio
            annotation and when `maxCharacters` splits the 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, keeping its width and top
            edge, and the annotation is stored with the grown height while its
            sign field keeps its own; the field's `numberOfLines` caps the
            lines, and a read-only field's box keeps its height. A text that
            needs more lines than that, 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.
        zIndex:
          type: integer
          description: >-
            Paint order of the annotation among the annotations and images
            placed on the same page - a lower value is drawn first, underneath
            the higher ones.
          example: 0
          default: 0
          nullable: true
    requestSharesShareData:
      type: object
      properties:
        allowedOAuths:
          type: array
          items:
            type: string
          description: >-
            Identity providers the recipient may sign in with to unlock the
            share. One of the ways of guarding a share, and only for a recipient
            from outside the workspace - protection set on a recipient who has
            an account here is dropped.
          example:
            - google
          nullable: true
        automaticReminder:
          allOf:
            - $ref: '#/components/schemas/entitySharesAutomaticReminder'
          description: >-
            When to start reminding the recipient of the action still
            outstanding, and how often to repeat it. Only a share that asks for
            an action may carry one.
          nullable: true
        customActionName:
          type: string
          description: >-
            Wording to put in front of the recipient in place of the standard
            name of the action. It changes nothing but the label - what the
            recipient is asked to do still follows `sharePurpose`.
          example: Countersign
          nullable: true
        fullname:
          type: string
          maxLength: 255
          description: >-
            Full name of the recipient. Used for external recipients only — it
            is stored on the share and pre-filled in the signature field /
            notifications. Ignored for internal recipients (their profile name
            is used). If omitted for an external recipient, the name is taken
            from the sender's contact list when a matching contact exists.
          example: John Doe
          nullable: true
        isMandatory:
          type: boolean
          description: >-
            Whether the sharing operation counts as done only once this
            recipient has acted.
          example: true
          default: true
        kycDocumentTypes:
          type: array
          items:
            type: string
            enum:
              - idCard
              - passport
              - driverLicense
              - residencePermit
          description: >-
            Identity documents the recipient may verify themselves with. Takes
            the `idVerification` factor, and only for a recipient from outside
            the workspace.
          nullable: true
        kycExpectedData:
          allOf:
            - $ref: '#/components/schemas/entitySharesKycExpectedData'
          description: >-
            Identity details already known about the recipient, which the
            verified document has to match. Takes the `idVerification` factor,
            and only for a recipient from outside the workspace.
          nullable: true
        kycFactors:
          type: array
          items:
            type: string
            enum:
              - idVerification
              - livenessDetection
              - selfieWithId
          description: >-
            Checks the identity verification has to put the recipient through.
            Only for a recipient from outside the workspace.
          nullable: true
        kycProviders:
          type: array
          items:
            type: string
          description: >-
            Providers the recipient may verify their identity with. One of the
            ways of guarding a share, and only for a recipient from outside the
            workspace.
          example:
            - identomat
          nullable: true
        language:
          type: string
          pattern: ^[a-z][a-z-]+$
          minLength: 1
          description: >-
            Language to address the recipient in, both in the notifications sent
            to them and in the view they are shown. Falls back to the language
            kept for them in the sender's contacts, and then to the workspace's
            own.
          example: en
          nullable: true
        mail:
          type: string
          pattern: ^[A-Za-z0-9.@_+-]+$
          maxLength: 128
          format: email
          description: >-
            Address to send the recipient's one-time code to. One of the ways of
            guarding a share, and only for a recipient from outside the
            workspace.
          example: jane.doe+2024@example.com
          nullable: true
        message:
          type: string
          maxLength: 2000
          description: >-
            Message written to this one recipient, on top of the message
            addressed to all of them. May carry basic formatting — bold, italic,
            underline, https links and bullet lists; everything else is stripped
            on input.
          example: Please review this document by Friday.
        nafathId:
          type: string
          description: >-
            Nafath national identity the recipient has to prove. One of the ways
            of guarding a share, and only for a recipient from outside the
            workspace.
          nullable: true
        oauthFactors:
          type: array
          items:
            $ref: '#/components/schemas/entitySharesOauthFactor'
          minItems: 0
          description: >-
            Details the identity provider has to report about the recipient
            before the share opens. The address the share was sent to is matched
            when none are given.
          nullable: true
        order:
          type: integer
          minimum: 0
          description: >-
            Where this recipient stands in the order of acting, counted from the
            sharing operation's own numbering. It applies only when the
            recipients act one after another; those sharing a number act at the
            same time. Recipients are numbered in the order they are listed when
            none is given.
          example: 1
        password:
          type: string
          description: >-
            Password agreed with the recipient in advance, which they have to
            enter to open the share. One of the ways of guarding a share, and
            only for a recipient from outside the workspace.
          example: '553827'
          nullable: true
        phone:
          type: string
          pattern: ^\+?[1-9]\d{1,14}$
          description: >-
            Number to send the recipient's one-time code to by SMS. One of the
            ways of guarding a share, and only for a recipient from outside the
            workspace.
          example: '+493012345678'
          nullable: true
        quorum:
          type: integer
          minimum: 1
          description: >-
            How many of the recipients acting at this point have to act before
            the document moves on - two out of three, say. It may not ask for
            more people than are acting there.
          example: 2
        rights:
          type: array
          items:
            type: string
            enum:
              - null
              - print
              - delegate
              - metadata
              - canAnnotateOnReject
              - rejectWithoutComment
              - uploadFiles
            nullable: true
          description: >-
            What this recipient is allowed beyond the purpose itself, such as
            printing the document, reading its metadata, uploading files of
            their own, or handing their part over to somebody else. Granting the
            hand-over takes a right of the sender's own.
          example:
            - print
            - metadata
            - canAnnotateOnReject
            - rejectWithoutComment
            - uploadFiles
          default:
            - print
            - metadata
            - canAnnotateOnReject
            - rejectWithoutComment
            - uploadFiles
        sendAttachmentsOnComplete:
          type: boolean
          description: >-
            Whether the document's attachments are sent to the recipient with
            the message that closes the sharing operation.
          example: false
          default: false
        sharePurpose:
          type: string
          description: What this recipient is being asked to do with the document.
          enum:
            - view
            - edit
            - sign
            - execute
            - approve
            - review
            - accept
        shareTo:
          oneOf:
            - type: string
              pattern: ^[A-Za-z0-9.@_+-]+$
              description: >-
                Username that identifies a user in the system (optional).
                Usually an email address. A single "+" sub-addressing tag (RFC
                5233) is allowed in the local part.
              example: john.doe+member@example.com
              nullable: true
            - type: string
              pattern: ^[A-Za-z0-9.@_+-]+$
              maxLength: 128
              format: email
              description: >-
                Email address (optional). A single "+" sub-addressing tag (RFC
                5233) is allowed in the local part, e.g.
                "jane.doe+2024@example.com".
              example: jane.doe+2024@example.com
              nullable: true
          description: >-
            Who to share with - the username of somebody with an account in this
            workspace, or the e-mail address of somebody without one. An address
            that matches no account is taken to be a recipient from outside,
            which the sender has to be allowed to share with.
        validUntil:
          type: string
          format: date-time
          description: When this recipient's access ends. It opens nothing afterwards.
          nullable: true
      required:
        - sharePurpose
        - shareTo
    requestDocumentsImageData:
      type: object
      properties:
        blob:
          type: string
          minLength: 1
          description: >-
            Identifier in the binary storage of the picture that is embedded
            into the page.
          example: da09a47b4f5b1xv726cfm36l8k1hkxzwmj5mszvfq6szoambdvc44v6i8hrhnu1f
        comment:
          type: string
          maxLength: 1500
          description: >-
            Free-form comment the acting user attaches to the image while
            applying it.
          example: Processed as requested.
          nullable: true
        pages:
          type: array
          items:
            type: integer
            minimum: 1
            example: 2
          maxItems: 5000
          description: >-
            Pages the image is rendered on, the first page being `1`. The same
            box is drawn on each of them. Cannot be combined with `signFieldId`.
        position:
          allOf:
            - $ref: '#/components/schemas/requestDocumentsSignatureItem'
          description: >-
            Placement and size of the image's box on each of its pages. Cannot
            be combined with `signFieldId`.
        signee:
          type: string
          description: >-
            Person the image is attributed to when it is placed by someone other
            than the authenticated user, as happens during in-person signing. It
            is stored as supplied, without being resolved against a user record.
        signFieldId:
          type: string
          description: >-
            Identifier of the sign field this image fills. The field's own
            placement is taken from it. `signFieldId` cannot be combined with
            `pages` and `position`.
          example: 1LTn5IimzXh68bOv
        subtype:
          type: string
          description: >-
            Finer classification of the image - for instance a plain picture, a
            barcode or a hand-drawn mark. With `signFieldId` set, the value
            comes from the sign field.
          example: image_barcode
          nullable: true
        zIndex:
          type: integer
          description: >-
            Paint order of the image among the annotations and images placed on
            the same page - a lower value is drawn first, underneath the higher
            ones.
          example: 0
          default: 0
          nullable: true
      required:
        - blob
    entityGenericShareSettings:
      type: object
      properties:
        allowedOAuth:
          type: string
          description: >-
            Identity provider a recipient has to sign in with when the OAuth
            protection is used.
          nullable: true
        canAnnotateOnReject:
          type: boolean
          description: Whether a recipient may annotate the document while rejecting it.
          nullable: true
        delegate:
          type: boolean
          description: >-
            Whether a recipient may hand their part of the transaction over to
            somebody else.
          nullable: true
        expirationEnabled:
          type: boolean
          description: Whether an end was chosen for the recipients' access.
          nullable: true
        expirationTime:
          allOf:
            - $ref: '#/components/schemas/entityTemplatesTimeSpan'
          description: >-
            When the recipients' access ends, given either as an exact moment or
            as a relative span.
          nullable: true
        isPublicComment:
          type: boolean
          description: >-
            Whether the accompanying comment is marked as public rather than
            internal.
          nullable: true
        kycFactors:
          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 identity provider has to carry out on the recipients
            before the document opens for them.
          example:
            - idVerification
            - livenessDetection
          nullable: true
        kycProvider:
          type: string
          description: >-
            Identity provider the recipients verify through. It has to be one
            configured for the workspace, whether in the server configuration or
            in the workspace's own settings.
          example: identomat
          nullable: true
        mailProtection:
          type: boolean
          description: >-
            Whether a recipient has to confirm a one-time code sent to their
            e-mail address.
          nullable: true
        message:
          type: string
          description: Message delivered to the recipients together with the document.
          nullable: true
        metadata:
          type: boolean
          description: >-
            Whether the recipients see the document's metadata alongside the
            file.
          nullable: true
        oauthFactors:
          type: array
          items:
            $ref: '#/components/schemas/entityGenericSignEntitiesShareDataOauthFactor'
          description: >-
            Factors matched against the data returned by the identity provider
            when the OAuth protection is used.
          nullable: true
        oauthFactorTypes:
          type: array
          items:
            type: string
            enum:
              - email
              - phoneNumber
              - emiratesId
            description: >-
              - `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.
          description: >-
            Types of OAuth factors to check, without the factor values
            themselves. Preserves the OAuth verification configuration where the
            person-bound values must not be stored (templates); the values are
            supplied when the document is shared.
          nullable: true
        oAuthProtection:
          type: boolean
          description: Whether a recipient has to sign in with an identity provider.
          nullable: true
        password:
          type: string
          description: Password a recipient has to enter to open the document.
          nullable: true
        passwordProtection:
          type: boolean
          description: Whether a recipient has to enter a password.
          nullable: true
        print:
          type: boolean
          description: Whether the recipients may print the document.
          nullable: true
        rejectWithoutComment:
          type: boolean
          description: Whether a recipient may reject without leaving a comment.
          nullable: true
        remindersEnabled:
          type: boolean
          description: >-
            Whether recipients whose action is still pending are reminded
            automatically.
          nullable: true
        remindersIntervalDays:
          type: number
          description: Number of days between two automatic reminders.
          nullable: true
        remindersStartDays:
          allOf:
            - $ref: '#/components/schemas/entityTemplatesTimeSpan'
          description: >-
            When the first automatic reminder is due, given either as an exact
            moment or as a relative span.
          nullable: true
        smsProtection:
          type: boolean
          description: >-
            Whether a recipient has to confirm a one-time code sent to their
            phone by SMS.
          nullable: true
        uploadFiles:
          type: boolean
          description: Whether the recipients may attach files of their own when they act.
          nullable: true
        usersWithKycData:
          type: array
          items:
            allOf:
              - $ref: '#/components/schemas/entityGenericUsersWithKycData'
            nullable: true
          description: >-
            Identity-verification configuration recorded for individual
            recipients.
          nullable: true
        usersWithOAuthFactors:
          type: array
          items:
            allOf:
              - $ref: '#/components/schemas/entityGenericUsersWithOauthFactors'
            nullable: true
          description: OAuth factors recorded for individual recipients.
          nullable: true
    requestDocumentsSignatureFields:
      type: object
      properties:
        align:
          type: string
          description: >-
            Horizontal alignment of the text rendered inside the field. Ignored
            when `maxCharacters` splits the field into character cells.
          enum:
            - left
            - center
            - right
          example: left
          default: left
        backgroundColor:
          type: string
          pattern: ^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{8})$
          description: >-
            Hex color filled behind the field's text. Nothing is filled when it
            is empty.
          example: '#ffaa55'
          nullable: true
        bold:
          type: boolean
          description: >-
            Whether the field's text is rendered with the bold variant of
            `font`.
        color:
          type: string
          pattern: ^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{8})$
          description: Hex color of the text rendered inside the field.
          example: '#ffaa55'
          default: '#000000'
          nullable: true
        config:
          type: string
          description: >-
            Stringified JSON of the placement and editor settings a client keeps
            with the field. Stored and returned as an opaque string.
          example: '{"multipageType":"all","multiPageCustom":"1"}'
          nullable: true
        fieldGroupId:
          type: integer
          description: >-
            Identifier shared by the fields that were placed together as one
            custom field group, so a client can move, resize and reassign them
            as a unit.
          nullable: true
        fileName:
          type: string
          description: >-
            Name under which the file submitted through the field is attached to
            the document. Set only on a submitted-file field; the uploaded file
            keeps its own name when this is empty.
          example: evidence.pdf
          nullable: true
        font:
          type: string
          description: >-
            Key of the font family used for the field's text. It is resolved to
            a font file by the PDF signing service, so only the fonts that
            service ships are usable.
          example: default
          nullable: true
        fontSize:
          type: number
          minimum: 4
          maximum: 100
          description: Size of the field's text in points.
          example: 11
          default: 11
        groupId:
          type: integer
          description: >-
            Identifier shared by the radio buttons of one group. At most one
            field of a group may carry a selected value.
        id:
          type: string
          description: >-
            Identifier of the field, unique among the sign fields of the object
            that carries it. It is the handle a client references to fill this
            exact field.
          example: 1LTn5IimzXh68bOv
        link:
          type: string
          maxLength: 2048
          description: >-
            URL the field points to. When it is set, the whole field box becomes
            a clickable link in the rendered document.
          example: https://example.com
          nullable: true
        lockRatio:
          type: boolean
          description: Whether the field keeps its aspect ratio when a client resizes it.
          nullable: true
        maxCharacters:
          type: integer
          minimum: 0
          exclusiveMinimum: true
          maximum: 256
          description: >-
            Number of equal-width character cells the field's width is split
            into, one glyph per cell.
          nullable: true
        numberOfLines:
          type: integer
          maximum: 100
          description: >-
            Number of text lines the field is laid out for. `-1` leaves the line
            count automatic.
        order:
          type: integer
          description: >-
            Round the field belongs to when the recipients act one after
            another, matching the order of the recipient who fills it. It
            carries no meaning when they all act in parallel.
        pages:
          type: array
          items:
            type: integer
            minimum: 1
          minItems: 1
          maxItems: 5000
          description: >-
            Pages the field is placed on, the first page being `1`. The same box
            is rendered on each of them.
          example:
            - 1
            - 2
        position:
          allOf:
            - $ref: '#/components/schemas/requestDocumentsSignatureItem'
          description: Placement and size of the field's box on each of its pages.
        public:
          type: boolean
          description: >-
            Whether the file submitted through the field is publicly accessible.
            Meaningful only on a submitted-file field.
          nullable: true
        readOnly:
          type: boolean
          description: >-
            Whether the field only displays its `text` and the recipient cannot
            change it.
          nullable: true
        required:
          type: boolean
          description: >-
            Whether the field must be filled before the recipient's action can
            complete.
        subtype:
          type: string
          description: >-
            What an annotation field collects or renders, refining `type` into a
            concrete kind.
          example: annotation_generic
          nullable: true
        text:
          type: string
          maxLength: 10000
          description: >-
            Text content of the field - a value preset by the sender or entered
            by the recipient, or a `{{{path}}}` template resolved against the
            document's own data. On a checkbox or radio field the leading
            character encodes the toggle state and the rest is the label. Except
            there and when `maxCharacters` splits the field into character
            cells, the text is wrapped to the field's width when the field is
            filled, and the box drawn for it grows downwards by whole lines as
            the text needs - to at most `numberOfLines` lines when that is set,
            while a `readOnly` field's box 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.
        timestamp:
          type: boolean
          description: >-
            Whether the signing time is drawn into the visual representation of
            the signature.
        tooltip:
          type: string
          maxLength: 255
          description: Hint shown to the recipient when filling the field.
          example: Sign here
          nullable: true
        type:
          type: string
          description: >-
            Kind of content the field collects - a signature, initials, a stamp,
            an image or an annotation.
          enum:
            - annotation
            - image
            - initials
            - organization_stamp
            - signature
            - stamp
            - wacom
          example: signature
        usage:
          type: string
          description: >-
            How the field is meant to be filled: `manual` by a person,
            `autosign` by the server from the assigned user's stored signature
            during a workflow action, or `extracted` for a field derived from
            the form fields found in the uploaded document.
          example: manual
        user:
          type: array
          items:
            type: string
            pattern: ^[A-Za-z0-9.@_+-]+$
            minLength: 1
            example: john.doe+member@example.com
          description: >-
            Recipients the field is assigned to, by username or email address.
            When several are listed, any one of them can fill it. A `docId`
            field and a field whose `usage` is `autosign` or `extracted` needs
            no recipient.
        userRoleId:
          type: integer
          description: >-
            Identifier of the recipient role the field belongs to. It matches
            the `userRoleId` of the sign entity that defines that role.
          nullable: true
        userRoleName:
          type: string
          description: >-
            Handle of the recipient role the field belongs to. The sign entity
            defining the role holds the authoritative name; this copy serves as
            a fallback.
          example: Recipient 1
          nullable: true
        values:
          type: array
          items:
            type: string
            nullable: true
          description: >-
            Options a dropdown field offers. A value filled into such a field
            has to be one of them.
          example:
            - 'Yes'
            - 'No'
        zIndex:
          type: integer
          description: >-
            Paint order of the field among the fields and images placed on the
            same page - a lower value is drawn first, underneath the higher
            ones.
          nullable: true
      required:
        - pages
        - position
        - type
    requestDocumentsSignature:
      type: object
      properties:
        blob:
          type: string
          minLength: 1
          description: >-
            Image rendered for this signature: the identifier of the picture in
            the binary storage, or the identifier of the stamp definition when
            `type` is a stamp, in which case the stamp's own rendered image is
            used.
          example: da09a47b4f5b1xv726cfm36l8k1hkxzwmj5mszvfq6szoambdvc44v6i8hrhnu1f
        comment:
          type: string
          maxLength: 1500
          description: >-
            Free-form comment the acting user attaches to the signature while
            applying it.
          example: Processed as requested.
          nullable: true
        decorationType:
          type: string
          description: >-
            Decoration drawn around the signature or initials image - the frame
            and the caption carrying the signature id, the signing time and the
            on-behalf line. Stamps are never decorated, and only the decorations
            enabled for the tenant may be used.
          example: empty
          default: empty
          nullable: true
        pages:
          type: array
          items:
            type: integer
            minimum: 1
          maxItems: 5000
          description: >-
            Pages the signature is rendered on, the first page being `1`. The
            same box is drawn on each of them. Cannot be combined with
            `signFieldId`.
        position:
          allOf:
            - $ref: '#/components/schemas/requestDocumentsSignatureItem'
          description: >-
            Placement and size of the signature's box on each of its pages.
            Cannot be combined with `signFieldId`.
        signee:
          type: string
          description: >-
            Person the signature is attributed to when it is applied by someone
            other than the authenticated user, as happens during in-person
            signing. It is stored as supplied, without being resolved against a
            user record.
        signFieldId:
          type: string
          description: >-
            Identifier of the sign field this signature fills. The field's own
            placement and its rendering options are taken from it. `signFieldId`
            cannot be combined with `pages`, `position`, `type` and `timestamp`.
          example: 1LTn5IimzXh68bOv
        signOnBehalfOf:
          type: string
          pattern: ^[A-Za-z0-9.@_+-]+$
          description: >-
            Username of the person on whose behalf the signature is made. It is
            recorded on the produced signature and, where a decoration is drawn
            around the signature image, printed into it.
          example: john.doe+member@example.com
          nullable: true
        timestamp:
          type: boolean
          description: >-
            Draws the signing time into the visual representation of the
            signature. It affects only the rendered image, not the cryptographic
            signature. Cannot be combined with `signFieldId`.
        type:
          type: string
          description: >-
            Kind of signature applied - a signature, initials, a personal or
            organization stamp, or a signature captured with a signature pad.
            Cannot be combined with `signFieldId`.
          enum:
            - signature
            - initials
            - stamp
            - wacom
            - organization_stamp
      required:
        - blob
    responseSharesRecordSingle:
      type: object
      properties:
        allowedOAuths:
          type: array
          items:
            type: string
          description: >-
            Identity providers the recipient may prove themselves with, where
            the share is guarded by a sign-in with a trusted provider.
          example:
            - google
        automaticReminder:
          allOf:
            - $ref: '#/components/schemas/entitySharesAutomaticReminder'
          description: >-
            How often the recipient is reminded of the action still outstanding,
            and from when. Absent where no reminders were arranged.
          nullable: true
        customActionName:
          type: string
          description: >-
            Wording to put in front of the recipient in place of the standard
            name of the action. It changes nothing but the label - what the
            recipient is asked to do still follows `shareType`.
          example: Countersign
          nullable: true
        dateFormat:
          type: string
          description: Format the recipient is shown dates in.
          example: DD.MM.YYYY
        delegatedChainId:
          type: string
          description: >-
            Identifier carried by every share in one chain of hand-overs, so
            that the whole chain can be followed back to the recipient it
            started with.
        delegatedFrom:
          type: string
          description: >-
            Share this one was handed over from, when a recipient passed their
            part on to somebody else.
        fullname:
          type: string
          description: >-
            Full name of the (external) recipient, if known. Used to pre-fill
            the recipient's name (e.g. in the signature field) instead of
            falling back to their email address.
        isActive:
          type: boolean
          description: >-
            Whether the share is still live. One that the sender has called off,
            or that was superseded when the recipient was changed, opens nothing
            any more.
        isDelegated:
          type: boolean
          description: >-
            Whether this recipient has handed their part over, which means the
            document is no longer waiting for them but for whoever they passed
            it to.
        isMandatory:
          type: boolean
          description: >-
            Whether the sharing operation counts as done only once this
            recipient has acted.
        isPermanentViewToken:
          type: boolean
          description: >-
            Whether this is the document's permanent public link rather than a
            share issued to a particular person. Such a link only lets the
            document be read, and answers without its workflow.
        kycDocumentTypes:
          type: array
          items:
            type: string
            enum:
              - idCard
              - passport
              - driverLicense
              - residencePermit
          description: Identity documents the recipient may verify themselves with.
          nullable: true
        kycExpectedData:
          allOf:
            - $ref: '#/components/schemas/responseSharesKycExpectedData'
          description: >-
            Which of the recipient's identity details the verification has to
            find and match.
          nullable: true
        kycFactors:
          type: array
          items:
            type: string
            enum:
              - idVerification
              - livenessDetection
              - selfieWithId
          description: Checks the identity verification has to put the recipient through.
          nullable: true
        kycProviders:
          type: array
          items:
            type: string
          description: >-
            Verification providers the recipient may use, where the share is
            guarded by an identity check.
          example:
            - identomat
        language:
          type: string
          description: >-
            Language the recipient is addressed in, both in the notifications
            sent to them and in the view they are shown.
          example: en
        message:
          type: string
          description: >-
            Message the sender wrote to the recipients of this sharing
            operation.
        messageRead:
          type: boolean
          description: Whether the recipient has marked that message as read.
        nafathId:
          type: string
          description: Nafath national identity the recipient has to prove, anonymized.
        oauthFactors:
          type: array
          items:
            $ref: '#/components/schemas/responseSharesOauthFactor'
          description: >-
            Details the trusted identity provider has to report about the
            recipient before the share opens, with their values anonymized.
        order:
          type: integer
          description: >-
            Where this recipient stands in the order of acting, when the
            recipients of the sharing operation are to act one after another.
          nullable: true
        otpMail:
          type: string
          description: Address the one-time password is sent to, anonymized.
        otpPhone:
          type: string
          description: Number the one-time password is sent to, anonymized.
        passwordRequired:
          type: boolean
          description: >-
            Whether the share currently holds a password the recipient has to
            supply before it opens. Every way of guarding a share ends in such a
            password, so for a one-time code, a sign-in with a trusted provider
            or an identity check this turns true only once the recipient has
            been through it.
        privateMessage:
          type: string
          description: >-
            Message written to this one recipient, as against the message
            addressed to all of them.
        quorum:
          type: integer
          description: >-
            How many of the recipients acting at this point have to act before
            the document moves on.
        remindedOn:
          type: string
          format: date-time
          description: >-
            When the recipient was last reminded of the action still
            outstanding.
        returnUrl:
          type: string
          description: >-
            Where the recipient is sent once they have done what was asked of
            them.
          example: https://example.com/thank-you
          nullable: true
        rights:
          type: array
          items:
            type: string
          description: >-
            What this share allows beyond its purpose - printing the document,
            handing the action to somebody else, reading the document's
            metadata, uploading files.
          example:
            - print
            - delegate
        sendAttachmentsOnComplete:
          type: boolean
          description: >-
            Whether the document's attachments are sent to the recipient with
            the message that closes the sharing operation.
        sequential:
          type: boolean
          description: >-
            Whether this recipient's turn waits on the recipients before them,
            rather than everybody being asked at once. A share that only lets
            the document be read never waits, even where the rest of the sharing
            operation is ordered.
        shareDate:
          type: string
          format: date-time
          description: When the document was shared.
        sharedBy:
          type: string
          description: Username of the person who shared the document.
        sharedFlags:
          type: array
          items:
            type: string
          description: >-
            What has happened to the document on this share so far - that the
            recipient has seen it, downloaded or printed it, or acted on it.
          example:
            - viewed
            - signed
        sharedObjectEsId:
          type: string
          description: Identifier of the shared document.
        sharedObjectEsType:
          type: string
          description: Definition the shared document was created from.
        sharedObjectType:
          type: string
          description: Kind of object that was shared. Documents are the only kind so far.
          example: document
        sharedUsername:
          type: string
          description: >-
            Username of the recipient, set only where the share was issued to a
            user of this workspace.
        sharedWith:
          type: array
          items:
            type: string
          description: >-
            Who the share was issued to - the e-mail address of a recipient
            outside the workspace, otherwise the username of one inside it.
        shareGroup:
          type: string
          description: >-
            Identifier tying together every share created by one sharing
            operation.
        shareId:
          type: string
          description: Identifier of the share.
          example: 5Ds8g5cB3a5JydtvXALu
        shareType:
          type: string
          description: >-
            What the recipient is asked to do with the document - read it, edit
            it, sign it, accept, approve or review it, or carry out a workflow
            action. Once they have done so the share falls back to plain
            reading.
          example: sign
        timeFormat:
          type: string
          description: Format the recipient is shown times in.
          example: HH:mm
        tokenGenerated:
          type: boolean
          description: >-
            Whether the sender has ever taken this share's token out to pass it
            on themselves, instead of leaving it to the notification sent to the
            recipient. Once they have, the way the share is guarded can still be
            switched or corrected, but no longer lifted or replaced with a
            password.
        validUntil:
          type: string
          format: date-time
          description: >-
            When the share stops opening. Empty where its validity is not
            limited.
    entitySharesAutomaticReminder:
      type: object
      properties:
        intervalDays:
          type: integer
          minimum: 1
          description: >-
            How many days pass between two reminders, counted from the last one
            actually sent.
        start:
          type: string
          format: date-time
          description: >-
            When the first reminder goes out. It is a moment rather than an
            offset: once it has passed the first reminder is sent, and the
            interval governs only the ones after it.
      required:
        - intervalDays
        - start
    entitySharesKycExpectedData:
      type: object
      properties:
        dateOfBirth:
          type: string
          format: date-time
          description: >-
            Date of birth the recipient's identity document has to show. Only
            the day is compared, so it is written as a UTC date with a zero time
            component. At least one of `dateOfBirth`, `documentNumber` and
            `nationality` must be provided.
          example: '1988-11-13T00:00:00.000Z'
          nullable: true
        documentNumber:
          type: string
          description: >-
            Number the recipient's identity document has to carry. It is
            compared ignoring case and spacing. At least one of `dateOfBirth`,
            `documentNumber` and `nationality` must be provided.
          example: X1234567
          nullable: true
        nationality:
          type: string
          description: >-
            Nationality the recipient's identity document has to show, as an ISO
            3166-1 alpha-3 code. Where the provider reports no nationality, the
            citizenship it reports is compared instead. At least one of
            `dateOfBirth`, `documentNumber` and `nationality` must be provided.
          example: CZE
          nullable: true
    entitySharesOauthFactor:
      type: object
      properties:
        type:
          type: string
          description: Detail of the recipient the identity provider has to report.
          enum:
            - email
            - phoneNumber
            - emiratesId
          example: email
        value:
          type: string
          description: >-
            Value the reported detail has to match before the document opens. An
            e-mail address and an Emirates ID have to match exactly, while a
            phone number is compared by its digits alone, from the end, so a
            differing country prefix still passes.
          example: john.doe@example.com
      required:
        - type
        - value
    requestDocumentsSignatureItem:
      type: object
      properties:
        percentHeight:
          type: number
          minimum: 0
          maximum: 1
          description: Height of the element as a fraction of the page height.
          example: 0.07
        percentWidth:
          type: number
          minimum: 0
          maximum: 1
          description: Width of the element as a fraction of the page width.
          example: 0.2
        percentX:
          type: number
          minimum: 0
          maximum: 1
          description: >-
            Horizontal position of the element's top-left corner as a fraction
            of the page width, measured from the left edge of the page.
          example: 0.15
        percentY:
          type: number
          minimum: 0
          maximum: 1
          description: >-
            Vertical position of the element's top-left corner as a fraction of
            the page height, measured from the top edge of the page.
          example: 0.3
      required:
        - percentHeight
        - percentWidth
        - percentX
        - percentY
    entityTemplatesTimeSpan:
      type: object
      properties:
        exactTime:
          type: string
          format: date-time
          description: >-
            The absolute moment the point in time falls on. Used when `type`
            marks the value as an exact time.
          example: '2026-03-01T12:00:00.000Z'
          nullable: true
        timeSize:
          allOf:
            - $ref: '#/components/schemas/entityTemplatesTimeSpanTimeSize'
          description: >-
            The offset from the moment the value is evaluated. Used when `type`
            marks the value as a relative span.
        type:
          type: string
          description: >-
            Whether the point in time is given absolutely in `exactTime` or
            relatively in `timeSize`.
          example: time_span_span
          nullable: true
    entityGenericSignEntitiesShareDataOauthFactor:
      type: object
      properties:
        type:
          type: string
          description: >-
            Detail of the recipient the identity provider has to report.


            - `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
          description: Value the reported detail has to match before the document opens.
          example: john.doe@example.com
          nullable: true
      required:
        - type
    entityGenericUsersWithKycData:
      type: object
      properties:
        kycDocumentTypes:
          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 documents this recipient may verify with. Left empty, any
            document the provider supports is accepted. It narrows anything only
            where the identity document is verified at all.
          example:
            - passport
            - idCard
          nullable: true
        kycExpectedData:
          allOf:
            - $ref: '#/components/schemas/entitySharesKycExpectedData'
          description: >-
            Identity details the document this recipient presents has to match.
            A detail that does not match fails the verification, so the
            recipient never reaches the document.
          nullable: true
        kycExpectedDataFields:
          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 to match against the verified document, without the
            expected values themselves. Preserves the KYC configuration where
            the person-bound values must not be stored (templates); the values
            are supplied when the document is shared.
          nullable: true
        user:
          type: string
          description: >-
            Recipient the verification applies to — the username of an account
            in the workspace, or the plain e-mail address of a party without
            one.
          example: john.doe@example.com
          nullable: true
    entityGenericUsersWithOauthFactors:
      type: object
      properties:
        oauthFactors:
          type: array
          items:
            $ref: '#/components/schemas/entityGenericUsersWithOauthFactorsFactor'
          description: >-
            Details this recipient's identity provider has to report before the
            document opens for them.
          nullable: true
        oauthFactorTypes:
          type: array
          items:
            type: string
            enum:
              - email
              - phoneNumber
              - emiratesId
            description: >-
              - `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.
          description: >-
            Types of OAuth factors to check, without the factor values
            themselves. Preserves the OAuth verification configuration where the
            person-bound values must not be stored (templates); the values are
            supplied when the document is shared.
          nullable: true
        user:
          type: string
          description: >-
            Recipient the factors belong to — the username of an account in the
            workspace, or the plain e-mail address of a party without one.
          example: john.doe@example.com
          nullable: true
    responseSharesKycExpectedData:
      type: object
      properties:
        dateOfBirthRequired:
          type: boolean
          description: >-
            Whether the date of birth the sender recorded for the recipient has
            to match the one on the identity document.
        documentNumberRequired:
          type: boolean
          description: >-
            Whether the document number the sender recorded for the recipient
            has to match the identity document presented.
        nationalityRequired:
          type: boolean
          description: >-
            Whether the nationality the sender recorded for the recipient has to
            match the one on the identity document.
    responseSharesOauthFactor:
      type: object
      properties:
        type:
          type: string
          description: >-
            Which of the details the identity provider reports about the
            recipient has to match.
          enum:
            - email
            - phoneNumber
            - emiratesId
        value:
          type: string
          description: Value that detail has to match, anonymized.
      required:
        - type
        - value
    entityTemplatesTimeSpanTimeSize:
      type: object
      properties:
        size:
          type: string
          description: >-
            Unit the span is counted in, named as a duration unit such as `day`,
            `week` or `month`.
          example: day
          nullable: true
        span:
          type: integer
          description: How many of those units the span lasts.
          example: 3
          nullable: true
    entityGenericUsersWithOauthFactorsFactor:
      type: object
      properties:
        type:
          type: string
          description: Detail of the recipient the identity provider has to report.
          example: phoneNumber
          nullable: true
        value:
          type: string
          description: Value the reported detail has to match before the document opens.
          example: '+420777123456'
          nullable: true
  securitySchemes:
    Token:
      type: apiKey
      in: query
      name: token
      description: >-
        Standard authorization for most API calls. This token identifies the
        logged-in user and their permissions. It is obtained either as a
        temporary token after a successful login or as a long-term API key.

````

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