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

# Edit a document

> `PUT /documents/edit/{version}`

Replaces the document's content and metadata with what is sent here and records the change as a new version in its history. This is the ordinary edit; an update submitted as part of a rework action goes to `PUT /documents/{version}` instead, which also carries the workflow forward.

The body describes the document as it should end up, so a field left out is not preserved by omission - with two deliberate exceptions, because they are expensive to resend: leaving out `body.file` keeps the existing attachments and leaving out `body.submittedFiles` keeps the existing submitted files. Files themselves are uploaded beforehand and referenced by hash.

Several parts of the body are gated beyond the endpoint's own right: custom fields need the right that permits them, attachments need the one that permits attaching files - without it only files going into a merge may be listed - and submitted files may only be changed by the document's owner, and only before its transaction has started.

---

**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 put /documents/edit/{version}
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:
  /documents/edit/{version}:
    put:
      tags:
        - Documents
      summary: Edit a document
      description: >-
        `PUT /documents/edit/{version}`


        Replaces the document's content and metadata with what is sent here and
        records the change as a new version in its history. This is the ordinary
        edit; an update submitted as part of a rework action goes to `PUT
        /documents/{version}` instead, which also carries the workflow forward.


        The body describes the document as it should end up, so a field left out
        is not preserved by omission - with two deliberate exceptions, because
        they are expensive to resend: leaving out `body.file` keeps the existing
        attachments and leaving out `body.submittedFiles` keeps the existing
        submitted files. Files themselves are uploaded beforehand and referenced
        by hash.


        Several parts of the body are gated beyond the endpoint's own right:
        custom fields need the right that permits them, attachments need the one
        that permits attaching files - without it only files going into a merge
        may be listed - and submitted files may only be changed by the
        document's owner, and only before its transaction has started.


        ---


        **Token authorization:** Authorize using a token — either a session
        token obtained from login or an API key — to call this endpoint.
      operationId: requestDocumentsPutEditDocument
      parameters:
        - in: path
          name: version
          description: >-
            Version of the document being edited. It guards the edit from
            overwriting changes the caller has not seen.
          required: true
          schema:
            type: integer
            minimum: 0
            exclusiveMinimum: true
            example: 6
        - in: query
          name: forceEdit
          description: >-
            Goes ahead with an edit that changes the content of a document
            already signed or still waiting for its recipients, or that joins
            files into its main file, which leaves the joined file without the
            signatures of the one it replaces: the signatures the edit
            invalidates are dropped and the shares still waiting are cancelled.
            Without it such a document is refused.
          required: false
          schema:
            type: boolean
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/requestDocumentsPutEditDocument'
      responses:
        '200':
          description: The document was updated.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/responseGenericStatus'
        '400':
          description: >-
            The body is malformed, or references something that does not fit the
            document or a file that starts as a PDF but cannot be read as one.
          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 caller's subscription is not active, or has no storage left for
            the files the edit adds.
          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 lacks the required right, may not edit this document, or
            may not change one of the parts included in the body.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error'
              example:
                status: 403
                type: AUTH:ACCESS_DENIED
                message: Access denied
                requestId: 3fa85f6457174562b3fc2c963f66afa6
        '404':
          description: No document of that identifier is available to the caller.
          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 changed since the given version, its transaction has
            already started and the body changes submitted files, it is signed
            or waiting for its recipients and the edit is not forced, or files
            joined into a main file the edit keeps do not start with it while
            fields are placed on the document.
          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:
    requestDocumentsPutEditDocument:
      type: object
      properties:
        body:
          allOf:
            - $ref: '#/components/schemas/requestDocumentsBody'
          description: >-
            New content of the document - the fields of its metadata definition
            together with its main file, attachments and submitted files.
        comment:
          type: string
          maxLength: 2000
          description: >-
            Comment stored on the workflow history record this update creates.
            May carry basic formatting — bold, italic, underline, https links
            and bullet lists; everything else is stripped on input.
          example: >-
            Processed <b>as requested</b>, see <a
            href="https://example.com/report">the report</a>.
        definitionType:
          type: string
          description: >-
            Flavour of the document - `edoc` for a document whose content the
            system generates from its metadata definition, `ext` for a document
            built around an uploaded main file.
          example: ext
        draftId:
          type: string
          description: >-
            Identifier of the draft that holds the content prepared for this
            update. The draft is deleted once the update has been applied.
          example: 8b312068-ecdf-4fa6-8f13-c6183da85f43
        forcePdfA:
          type: boolean
          description: >-
            Together with `usePdfA`, converts an already-signed main file to
            PDF/A as well, even though the conversion removes the existing
            signature. Without it such a file is left unconverted so that its
            signature survives.
          example: false
          default: false
          nullable: true
        id:
          type: string
          pattern: ^[A-Za-z0-9_-]+$
          minLength: 1
          description: Identifier of the document being updated.
          example: a0d01c9d-f72f-4c57-af11-e26bda19cc59
        isPublicComment:
          type: boolean
          description: >-
            Whether `comment` is visible to external recipients who open the
            document through a share. A comment that is not public is hidden
            from them.
          example: false
          default: false
        optionalData:
          allOf:
            - $ref: '#/components/schemas/requestDocumentsOptionalDataMinimal'
          description: >-
            Options applied alongside the document itself - folder placement,
            tags, sign fields, merging files into the main file.
        usePdfA:
          type: boolean
          description: >-
            Keeps the document's main file in PDF/A, the format suited to
            long-term archiving. The conversion re-renders the file, so its
            visual appearance may change. When omitted, the setting the document
            already carries is kept; once enabled it cannot be turned off again.
          nullable: true
        workflow:
          type: string
          pattern: ^[A-Za-z0-9_-]+$
          minLength: 1
          maxLength: 255
          description: Workflow definition the document runs on.
          example: wf_archive
      required:
        - definitionType
        - id
        - workflow
    responseGenericStatus:
      type: object
      properties:
        status:
          type: string
          description: Outcome of the operation, reported as a status type constant.
          example: SUCCESS
    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
    requestDocumentsBody:
      type: object
      additionalProperties:
        description: Additional properties
      properties:
        alerts:
          type: array
          items:
            $ref: '#/components/schemas/entityDocumentsAlert'
          description: >-
            Reminders configured on the document, each notifying its recipient
            once its trigger time has passed.
          nullable: true
        counterId:
          type: string
          description: >-
            Value taken from the numbering series configured for the document's
            metadata definition, and substituted into the document's own
            numbering fields.
          example: TEF_2016_aa_001
          nullable: true
        customFields:
          type: array
          items:
            $ref: '#/components/schemas/entityGenericCustomField'
          maxItems: 100
          description: >-
            Free-form key/value metadata attached to the document by the client,
            alongside the fields its metadata definition declares. The
            serialized set is limited to 10 KiB.
          nullable: true
        documentCategory:
          type: string
          description: >-
            Category the document is filed under, used for filtering and
            reporting. The available categories come from the
            `documentCategories` setting.
          example: Contract
          nullable: true
        documentTitle:
          type: string
          description: >-
            Title of the document, or the name of the folder. It also serves as
            the file name on download and export, and is sanitized so that it
            can be used as one.
          example: Contract Agreement
          nullable: true
        enumSelections:
          allOf:
            - $ref: '#/components/schemas/requestDocumentsBodyEnumSelections'
          description: >-
            Selections made in the list fields of the document's metadata
            definition, keyed by the name of the field they belong to.
        expiresOn:
          type: string
          format: date-time
          description: >-
            Date the document expires on; it stays valid for the whole of that
            day. It cannot be entered for a non-fixed term, where it is worked
            out from the termination. Clearing it without sending `term` also
            removes the renewal and the reminders that depended on it.
          example: '2026-12-31T00:00:00.000Z'
          nullable: true
        file:
          type: array
          items:
            $ref: '#/components/schemas/requestDocumentsBodyFile'
          description: Files attached to the document next to its main file.
        html:
          type: string
          description: >-
            Rendered HTML body of a generated (`edoc`) document, the source its
            main file is rendered from. It is ignored for an `ext` definition
            type, where the main file is carried by `pdfFile` instead.
          nullable: true
        pdfFile:
          allOf:
            - $ref: '#/components/schemas/requestDocumentsBodyPdfFile'
          description: >-
            Main file of the document, the one shown in the viewer. Despite the
            property name it does not have to be a PDF. It applies to an `ext`
            definition type and is ignored for `edoc`, where the main file is
            rendered from `html`.
        preparationDraft:
          allOf:
            - $ref: '#/components/schemas/entityGenericPreparationDraft'
          nullable: true
        shareSettings:
          allOf:
            - $ref: '#/components/schemas/entityGenericShareSettings'
          nullable: true
        showBarcode:
          type: boolean
          description: Whether the document's barcode is displayed to the user.
          nullable: true
        submittedFiles:
          type: array
          items:
            $ref: '#/components/schemas/requestDocumentsBodySubmittedFile'
          description: Files uploaded into the document through its submitted-file fields.
        term:
          allOf:
            - $ref: '#/components/schemas/requestDocumentsBodyTerm'
          description: >-
            Expiration reminders, contract renewal or non-fixed notice terms of
            the document; `null` removes them, and left out, a stored term stays
            as it is. Sending it at all requires the `use_document_terms` right.
          nullable: true
    requestDocumentsOptionalDataMinimal:
      type: object
      properties:
        barcodeData:
          type: array
          items:
            type: string
            nullable: true
          nullable: true
        convert:
          type: boolean
          description: >-
            Converts the files listed in `merge` to PDF before they are joined.
            Without it, a file that is not already a PDF makes the merge fail.
          example: false
          default: false
        createLinks:
          type: boolean
          description: >-
            Links all documents created together in the same request to each
            other.
          nullable: true
        emailAttachments:
          type: object
          additionalProperties: false
          nullable: true
        folder:
          type: string
          description: >-
            Identifier of the folder the document is placed into, `null`
            standing for the root folder. It is ignored when `path` is set.
          example: 8d25c1a9-1ee2c7f56-1da2-00ac83ba54ce
          nullable: true
        isPublic:
          type: boolean
          description: >-
            Resolves `folder` and `path` against the shared files tree instead
            of the caller's private one.
          nullable: true
        merge:
          type: array
          items:
            type: string
            pattern: ^[a-z0-9]+$
            minLength: 1
            example: s1pss1atbzli272pinbt48n2ssy96ax2pwgqrz5qyzklwxg1kl0tq6anvz1p97xj
          uniqueItems: true
          minItems: 2
          description: >-
            Hashes of the document's own files to join into a single main file.
            Their order determines the order of the joined content. An edit
            keeping the main file of a document with fields placed on it has to
            list that main file first, so the fields stay on its pages.
          nullable: true
        ocr:
          type: boolean
          description: >-
            Whether the main file is passed through text extraction, which makes
            its text searchable. Only `false` skips it, and it never runs for a
            document whose content the system generates instead of it being
            uploaded.
          nullable: true
        path:
          type: string
          description: >-
            Folder path the document is placed into, with `/` separating the
            levels. Folders missing along the path are created, and the path
            takes precedence over `folder`.
          example: Contracts/2026/Q1
          nullable: true
        signatureProvider:
          type: string
          description: Signature provider to use for the signing process.
          enum:
            - datasure
            - emdha
            - internal
            - uaePassSign
          example: internal
        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
        signFields:
          type: array
          items:
            $ref: '#/components/schemas/requestDocumentsSignatureFields'
          minItems: 1
          description: >-
            Sign fields to place on the document for its recipients to fill.
            They are appended to the sign fields the document already carries,
            and a field whose `id` is missing or already taken is given a
            generated one.
        sourceDocumentId:
          type: string
          description: >-
            Identifier of another document used as a reference while this one is
            processed - the metadata definition's formulas and the workflow's
            transition action script can read its field values.
          example: a0d01c9d-f72f-4c57-af11-e26bda19cc59
          nullable: true
        tags:
          allOf:
            - $ref: '#/components/schemas/requestTagsDataTag'
          description: >-
            Tags to set on the document. Each scope listed here replaces the
            document's existing tags of that scope; a scope left out keeps its
            tags.
        timezone:
          type: string
          description: >-
            IANA time zone name used for the dates and times rendered into the
            signatures and annotations placed by this request. It overrides the
            acting user's own time zone.
          example: Europe/Prague
          nullable: true
    entityDocumentsAlert:
      type: object
      properties:
        alertTo:
          type: string
          description: >-
            Recipient of the alert - a username, or a plain address when it
            matches no user of the tenant. An alert without a recipient is
            discarded instead of sent.
          example: john.doe@example.com
          nullable: true
        fieldName:
          type: string
          description: >-
            Name of the document's own date field the alert is anchored to. The
            client that maintains the alert recomputes `triggerOn` from that
            field whenever the document is saved; the backend evaluates the
            alert by `triggerOn` alone.
          example: D_EMPLOYMENT_START_DATE
          nullable: true
        message:
          type: string
          description: Text carried to the recipient in the alert notification.
          example: The contract expires next week.
          nullable: true
        sent:
          type: boolean
          description: >-
            Whether the alert has already been delivered. It keeps the alert
            from firing more than once.
          nullable: true
        timeDiff:
          type: integer
          description: >-
            Offset in milliseconds added to the date read from `fieldName` to
            obtain `triggerOn`, so the alert falls due that long after the
            anchored moment.
          example: 259200000
          nullable: true
        triggerOn:
          type: string
          format: date-time
          description: >-
            Moment from which the alert is due. It is delivered on the first run
            of the periodic alert job after that moment.
          nullable: true
    entityGenericCustomField:
      type: object
      properties:
        displayName:
          type: string
          description: Human-readable label for the custom field.
          example: Internal reference
          nullable: true
        key:
          type: string
          description: >-
            Identifier of the custom field, unique among the custom fields
            attached to the same object.
          example: internalReference
        type:
          type: string
          description: >-
            Data type of the value. A date accepts an ISO 8601 string or epoch
            milliseconds and is normalized to ISO 8601.
          enum:
            - date
            - number
            - string
          example: string
        value:
          oneOf:
            - type: string
            - type: number
          description: Value of the custom field. Stored and returned as a string.
          example: ACME-2026-001
      required:
        - key
        - type
        - value
    requestDocumentsBodyEnumSelections:
      type: object
      additionalProperties:
        allOf:
          - $ref: '#/components/schemas/entityDocumentsEnumSelection'
        description: Selection made in the enum field named by the key.
    requestDocumentsBodyFile:
      type: object
      properties:
        content:
          type: string
          description: >-
            Hash identifying the attached file in the binary storage, where it
            is stored before it is referenced here.
          example: as0ia4jdqecwq0u5s1omd9krs4u244ic2n2545kyhyat9imkwyg1bgec16r94tth
        name:
          type: string
          description: Display name of the file, normally including its extension.
          example: LegalNotes.docx
          nullable: true
        public:
          type: boolean
          description: >-
            Marks the attachment 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.
          example: false
          default: false
      required:
        - content
    requestDocumentsBodyPdfFile:
      type: object
      properties:
        content:
          type: string
          description: >-
            Hash identifying the document's main file in the binary storage,
            where it is stored before it is referenced here.
          example: a219a47b4f5b1xv726cfm36l8k1hkxzwmj5mszvfq6szoambdvc44v6i8hrhntv0
        name:
          type: string
          description: Display name of the main file, normally including its extension.
          example: Contract.pdf
          nullable: true
      required:
        - content
    entityGenericPreparationDraft:
      type: object
      properties:
        sequential:
          type: boolean
          description: >-
            Whether the prepared recipients are meant to act one round after
            another, in the order recorded on each of them, rather than all at
            the same time.
          nullable: true
        shareSettings:
          allOf:
            - $ref: '#/components/schemas/entityGenericShareSettings'
          description: >-
            Share settings prepared for the transaction - recipient
            verification, recipient permissions, expiration and reminders.
          nullable: true
        signatureProvider:
          type: string
          description: >-
            Signature provider prepared for the signing - the trust service that
            will produce the signatures.
          enum:
            - null
            - datasure
            - emdha
            - internal
            - uaePassSign
            - icaQualified
            - icaSwStore
          example: internal
          nullable: true
        signatureType:
          type: string
          description: >-
            Kind of signature prepared: `signature` for a cryptographic
            signature with a visual representation, `image` for the visual
            representation only.
          enum:
            - null
            - signature
            - image
          example: signature
          nullable: true
        signEntities:
          type: array
          items:
            $ref: '#/components/schemas/entityGenericSignEntities'
          description: >-
            Recipients and recipient roles prepared to act on the document, with
            their round, grouping and quorum.
          nullable: true
        signFields:
          type: array
          items:
            $ref: '#/components/schemas/entityGenericSignField'
          description: >-
            Signature and form fields prepared on the document, with their
            placement and the recipient each of them is assigned to.
          nullable: true
        signStep:
          type: string
          description: >-
            Bookmark of the step the preparation had reached, so a client can
            reopen it where the user left off. Stored and returned as received.
          example: users
          nullable: true
        tsaType:
          type: string
          description: >-
            Trusted timestamps prepared for the signing - none, one embedded in
            each signature, a standalone document timestamp, or both.
          enum:
            - null
            - none
            - signatureOnly
            - standaloneOnly
            - standaloneAndSignature
          example: signatureOnly
          nullable: true
    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
    requestDocumentsBodySubmittedFile:
      type: object
      properties:
        content:
          type: string
          description: >-
            Hash identifying the submitted file in the binary storage, where it
            is stored before it is referenced here.
          example: as0ia4jdqecwq0u5s1omd9krs4u244ic2n2545kyhyat9imkwyg1bgec16r94tth
        name:
          type: string
          description: Display name of the file, normally including its extension.
          example: IDCardFront.pdf
          nullable: true
        public:
          type: boolean
          description: >-
            Marks the 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.
          example: false
          default: false
      required:
        - content
    requestDocumentsBodyTerm:
      type: object
      properties:
        nonFixedTerm:
          allOf:
            - $ref: '#/components/schemas/requestDocumentsBodyTermNonFixedTerm'
          description: >-
            Notice terms of a contract that runs until it is terminated; `null`
            for a contract with a set expiration date. While it is set, the
            expiration date is worked out from the termination and cannot be
            entered directly.
          nullable: true
        reminders:
          type: array
          items:
            $ref: '#/components/schemas/requestDocumentsBodyTermReminder'
          maxItems: 9
          description: >-
            Reminders to send ahead of the document's expiration date. No two of
            them may notify the same person at the same moment - the same lead
            time, however it is written, and the same time of day.
          nullable: true
        renewal:
          allOf:
            - $ref: '#/components/schemas/requestDocumentsBodyTermRenewal'
          description: >-
            How the contract is renewed once it expires; `null` when it is not
            renewed. A renewal needs an expiration date and at least one
            reminder, and it cannot be combined with `nonFixedTerm`.
          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
    requestTagsDataTag:
      type: object
      properties:
        private:
          type: array
          items:
            type: string
          uniqueItems: true
          description: >-
            Tags kept for the caller alone - nobody else sees them on the
            document, and each person's are their own. Working with them at all
            needs the right to private tags. At least one of `private` and
            `public` must be provided.
          example:
            - to review
        public:
          type: array
          items:
            type: string
          uniqueItems: true
          description: >-
            Tags shared with everybody who can see the document, and the ones a
            search or a filter can go by. Putting them on a document needs the
            right to do so. At least one of `private` and `public` must be
            provided.
          example:
            - invoice
            - '2026'
    entityDocumentsEnumSelection:
      type: object
      properties:
        fieldName:
          type: string
          description: Name of the list field the selection belongs to.
          nullable: true
        recordId:
          oneOf:
            - type: array
              items:
                type: string
                nullable: true
              nullable: true
            - type: string
              nullable: true
          description: Identifiers of the records picked in that field.
          nullable: true
    entityGenericSignEntities:
      type: object
      properties:
        inGroup:
          type: boolean
          description: >-
            Whether the entry was put into a round group while the recipients
            were being arranged, so that a round holding a single entry is still
            presented as a group. Nothing in the backend acts on its value.
          nullable: true
        order:
          type: number
          description: >-
            Round this entry acts in when the recipients act one after another.
            Entries sharing a value act together in the same round; the value
            carries no meaning when they all act in parallel.
          nullable: true
        quorum:
          type: number
          description: >-
            How many recipients of the same round have to complete their action
            before the process moves on. All of them are needed when it is not
            set.
          nullable: true
        shareData:
          type: array
          items:
            $ref: '#/components/schemas/entityGenericSignEntitiesShareData'
          description: >-
            One entry per recipient of this role, holding the recipient and the
            share configuration prepared for them - their language, verification
            factors, permissions, expiration and reminders.
          nullable: true
        shareType:
          type: string
          description: >-
            What the recipients of this role are asked to do with the document -
            the purpose of the share created for them.
          example: sign
          nullable: true
        type:
          type: string
          description: >-
            Whether the entry stands for a single recipient (`user`) or for a
            set of recipients filling one role together (`group`).
          example: user
          nullable: true
        usage:
          type: string
          description: >-
            Where the entry came from - `manual` when it was added deliberately,
            `extracted` when it was derived from the fields detected in the
            uploaded document.
          example: manual
          nullable: true
        userRoleId:
          type: integer
          description: >-
            Identifier of the recipient role this entry defines. Sign fields
            reference it to say which role fills them.
          nullable: true
        userRoleName:
          type: string
          description: >-
            Handle of the recipient role, used to label it while no concrete
            recipient is known.
          example: Recipient 1
          nullable: true
    entityGenericSignField:
      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.
          example: center
          nullable: true
        backgroundColor:
          type: string
          description: >-
            Hex color filled behind the field's text. Nothing is filled when it
            is empty.
          example: '#FFFF00'
          nullable: true
        bold:
          type: boolean
          description: >-
            Whether the field's text is rendered with the bold variant of
            `font`.
          nullable: true
        color:
          type: string
          description: Hex color of the text rendered inside the field.
          example: '#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: number
          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
          description: Size of the field's text in points.
          nullable: true
        groupId:
          type: number
          description: >-
            Identifier shared by the radio buttons of one group. At most one
            field of a group may carry a selected value.
          nullable: true
        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
          nullable: true
        link:
          type: string
          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
          description: >-
            Number of equal-width character cells the field's width is split
            into, one glyph per cell.
          nullable: true
        multipage:
          type: boolean
          description: Whether the field is placed on more than one page.
          nullable: true
        numberOfLines:
          type: integer
          description: >-
            Number of text lines the field is laid out for. `-1` leaves the line
            count automatic.
          nullable: true
        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.
          nullable: true
        pages:
          oneOf:
            - type: array
              items:
                type: integer
                nullable: true
            - type: integer
              nullable: true
          description: >-
            Pages the field is placed on, the first page being `1`. The same box
            is rendered on each of them.
          example:
            - 1
            - 2
          nullable: true
        position:
          allOf:
            - $ref: '#/components/schemas/entityGenericSignFieldPosition'
          description: Placement and size of the field's box on each of its pages.
          nullable: true
        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.
          nullable: true
        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
          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.
        time:
          type: boolean
          description: >-
            Whether a date field renders the time next to the date. Nothing in
            the backend acts on its value - a field renders both through the
            `annotation_datetime` and `annotation_datetime_current` subtypes.
          nullable: true
        timestamp:
          type: boolean
          description: >-
            Whether the signing time is drawn into the visual representation of
            the signature.
          nullable: true
        tooltip:
          type: string
          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.
          example: signature
          nullable: true
        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
          nullable: true
        user:
          type: array
          items:
            type: string
            pattern: ^[A-Za-z0-9.@_+-]+$
            example: john.doe+member@example.com
            nullable: true
          description: >-
            Recipients the field is assigned to, by username or email address.
            When several are listed, any one of them can fill it.
          nullable: true
        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
          description: >-
            Options a dropdown field offers. A value filled into such a field
            has to be one of them.
          example:
            - 'Yes'
            - 'No'
          nullable: true
        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
    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
    requestDocumentsBodyTermNonFixedTerm:
      type: object
      properties:
        noticePeriod:
          type: string
          pattern: ^([1-9]\d{0,2})([yQMwd])$
          description: >-
            Notice the contract requires, as a count followed by a unit - `y`,
            `Q`, `M`, `w` or `d`. The expiration date falls this long after the
            day the termination starts, so a non-fixed term cannot do without
            it.
          example: 3M
          nullable: true
        terminationStartDate:
          type: string
          format: date-time
          description: >-
            When the termination of the contract started. While it is set, the
            expiration date is the notice period after that day; cleared, the
            termination is cancelled and the document no longer expires. It can
            lie at most 15 days in the past.
          example: '2026-10-01T00:00:00.000Z'
          nullable: true
    requestDocumentsBodyTermReminder:
      type: object
      properties:
        notifyOwner:
          type: boolean
          description: >-
            Whether the reminder also goes to the document's owner, whoever that
            is at the moment it fires. A reminder without any `recipients` has
            to set it.
          nullable: true
        period:
          type: string
          pattern: ^([1-9]\d{0,2})([yQMwd])$
          description: >-
            How long before the expiration day the reminder fires, as a count
            followed by a unit - `y`, `Q`, `M`, `w` or `d`. Left empty, it fires
            on the expiration day itself.
          example: 30d
          nullable: true
        recipients:
          type: array
          items:
            type: string
          maxItems: 100
          description: >-
            Usernames of the users to send the reminder to. Each newly added one
            has to be a user the writer is allowed to see - the writer and the
            document's owner always are - and is given read access to the
            document when it is saved, so that the link in the reminder opens.
          example:
            - jane.doe@example.com
          nullable: true
        time:
          type: string
          pattern: ^(?:[01][0-9]|2[0-3]):(?:00|15|30|45)$
          description: >-
            Time of day the reminder fires at on its day, in the time zone of
            the user who configures it. Left empty, it fires at `09:00`.
          example: '09:00'
          nullable: true
    requestDocumentsBodyTermRenewal:
      type: object
      properties:
        finalDate:
          type: string
          format: date-time
          description: >-
            Date the automatic renewals never extend the expiration date beyond
            - the last one stops exactly on it. It has to lie after the
            expiration date.
          example: '2030-12-31T00:00:00.000Z'
          nullable: true
        maxRenewals:
          type: integer
          minimum: 1
          maximum: 100
          description: >-
            How many automatic renewals the contract may have over its whole
            life. Left empty, only the overall cap of 100 applies. An automatic
            renewal takes this or `finalDate`, not both.
          nullable: true
        noticePeriod:
          type: string
          pattern: ^([1-9]\d{0,2})([yQMwd])$
          description: >-
            Notice the contract requires ahead of its expiration date, as a
            count followed by a unit - `y`, `Q`, `M`, `w` or `d`: for an
            automatic renewal the notice of non-renewal that stops the renewal,
            for a manual renewal the notice by which the renewal has to be
            requested.
          example: 3M
          nullable: true
        period:
          type: string
          pattern: ^([1-9]\d{0,2})([yQMwd])$
          description: >-
            How far each automatic renewal moves the expiration date, as a count
            followed by a unit - `y`, `Q`, `M`, `w` or `d` - and no shorter than
            14 days. An automatic renewal requires it; a manual one keeps it for
            reference only.
          example: 1y
          nullable: true
        type:
          type: string
          description: >-
            How the contract is renewed. Left empty, the renewal is `auto`.


            - `auto`: The platform extends the expiration date by the renewal
            period once the expiration day is over.

            - `manual`: The contract is renewed by hand — the expiration date
            moves only when somebody changes it.
          enum:
            - auto
            - manual
            - null
          nullable: true
    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
    entityGenericSignEntitiesShareData:
      type: object
      properties:
        allowedOAuth:
          type: string
          description: >-
            Identity provider this recipient has to sign in with when the OAuth
            protection is used.
          example: uaePass
          nullable: true
        canAnnotateOnReject:
          type: boolean
          description: Whether this recipient may annotate the document while rejecting it.
          nullable: true
        delegate:
          type: boolean
          description: >-
            Whether this recipient may hand their part of the transaction over
            to somebody else.
          nullable: true
        expirationEnabled:
          type: boolean
          description: Whether an end was chosen for this recipient's access.
          nullable: true
        expirationTime:
          allOf:
            - $ref: '#/components/schemas/entityTemplatesTimeSpan'
          description: >-
            When this recipient's access ends, given either as an exact moment
            or as a span counted from the moment the transaction is sent.
          nullable: true
        kycDocumentTypes:
          type: array
          items:
            type: string
            enum:
              - idCard
              - passport
              - driverLicense
              - residencePermit
          description: >-
            Identity documents this recipient may prove themselves with when the
            identity verification is used.
          nullable: true
        kycExpectedData:
          allOf:
            - $ref: '#/components/schemas/entitySharesKycExpectedData'
          description: >-
            Identity details of this recipient that the verified document has to
            match.
          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
        kycFactors:
          type: array
          items:
            type: string
            enum:
              - idVerification
              - livenessDetection
              - selfieWithId
          description: >-
            Checks the identity verification has to carry out for this
            recipient.
          nullable: true
        kycProvider:
          type: string
          description: Identity verification provider this recipient has to go through.
          nullable: true
        language:
          type: string
          description: >-
            Language this recipient is addressed in, both in the notifications
            sent to them and in the view they are shown.
          example: en
          nullable: true
        mailProtection:
          type: boolean
          description: >-
            Whether this recipient has to confirm a one-time code sent to their
            e-mail address.
          nullable: true
        message:
          type: string
          description: >-
            Message written to this one recipient, on top of the message
            addressed to all of them.
          example: Please countersign before Friday.
          nullable: true
        metadata:
          type: boolean
          description: >-
            Whether this recipient sees the document's metadata alongside the
            file.
          nullable: true
        nafathId:
          type: string
          description: Nafath national identity this recipient has to prove.
          example: '1012345678'
          nullable: true
        nafathProtection:
          type: boolean
          description: >-
            Whether this recipient has to be verified through Nafath. Nothing in
            the backend acts on its value; the check is configured through
            `oAuthProtection` together with `allowedOAuth` and `nafathId`.
          nullable: true
        oauthFactors:
          type: array
          items:
            $ref: '#/components/schemas/entityGenericSignEntitiesShareDataOauthFactor'
          description: >-
            Details the identity provider has to report about this recipient
            before the document opens. The address the transaction was sent to
            is matched when none are given.
          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 this recipient has to sign in with an identity provider.
          nullable: true
        password:
          type: string
          description: >-
            Password agreed with this recipient in advance, which they have to
            enter to open the document.
          nullable: true
        passwordProtection:
          type: boolean
          description: Whether this recipient has to enter a password.
          nullable: true
        phone:
          type: string
          description: Number this recipient's one-time code is sent to by SMS.
          example: '+420777123456'
          nullable: true
        print:
          type: boolean
          description: Whether this recipient may print the document.
          nullable: true
        rejectWithoutComment:
          type: boolean
          description: Whether this recipient may reject without leaving a comment.
          nullable: true
        remindersEnabled:
          type: boolean
          description: >-
            Whether this recipient is reminded automatically while their action
            is still pending.
          nullable: true
        remindersIntervalDays:
          type: number
          description: >-
            Number of days between two automatic reminders sent to this
            recipient.
          example: 3
          nullable: true
        remindersStartDays:
          allOf:
            - $ref: '#/components/schemas/entityTemplatesTimeSpan'
          description: >-
            When the first automatic reminder for this recipient is due, given
            either as an exact moment or as a span counted from the moment the
            transaction is sent.
          nullable: true
        smsProtection:
          type: boolean
          description: >-
            Whether this recipient has to confirm a one-time code sent to their
            phone by SMS.
          nullable: true
        uploadFiles:
          type: boolean
          description: Whether this recipient may attach files of their own when they act.
          nullable: true
        user:
          allOf:
            - $ref: '#/components/schemas/entityGenericSignEntitiesShareDataUser'
          description: >-
            Recipient this configuration is prepared for. It is empty while the
            role is still open.
          nullable: true
    entityGenericSignFieldPosition:
      type: object
      properties:
        percentHeight:
          type: number
          description: Height of the element as a fraction of the page height.
          example: 0.03176305676305678
          nullable: true
        percentWidth:
          type: number
          description: Width of the element as a fraction of the page width.
          example: 0.43921568627450985
          nullable: true
        percentX:
          type: number
          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.49892906639788337
          nullable: true
        percentY:
          type: number
          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.2465883269647186
          nullable: true
    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
    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
    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
    entityGenericSignEntitiesShareDataUser:
      type: object
      properties:
        contactType:
          type: string
          description: >-
            Classification the client kept with the recipient when the
            configuration was prepared. Nothing in the backend acts on its
            value.
          nullable: true
        fullname:
          type: string
          description: >-
            Full name of the recipient, kept for a recipient from outside the
            workspace who has no account to take it from.
          example: John Doe
          nullable: true
        language:
          type: string
          description: >-
            Language kept with the recipient record. The language a recipient is
            actually addressed in is the one on the prepared configuration
            itself.
          example: en
          nullable: true
        mail:
          type: string
          description: >-
            E-mail address of the recipient, kept for records whose `name` does
            not hold one.
          example: john.doe@example.com
          nullable: true
        name:
          type: string
          description: >-
            Identifier of the referenced person: the username of an account in
            the system, or the plain e-mail address of an external party without
            one.
          example: john.doe@example.com
          nullable: true
        type:
          type: string
          description: >-
            Whether `name` refers to an account in the system or to an external
            party identified only by an e-mail address.
          example: internal
          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.