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

# Create a document

> `POST /documents`

Creates one document against a metadata definition and starts a workflow on it, then returns it in the same representation as a single-document read, users map included.

Files are uploaded beforehand and referenced here by their hash - this request carries no bytes. What `body` has to contain follows from the definition: a document whose content is an uploaded file names that file in `body.pdfFile` (which need not be a PDF), a document generated from a template carries its markup in `body.html`, and in both cases the definition's own fields travel alongside as further keys of `body`. Everything beyond the document itself - folder placement, sign fields, tags, merging several uploads into one main file, conversion to PDF - is set through `optionalData`.

The workflow's opening action can be carried out in the same call by naming it in `actionId` and giving it recipients, so creating a document and sending it out is one request rather than two.

---

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



## OpenAPI

````yaml /api-v1/openapi.json post /documents
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:
    post:
      tags:
        - Documents
      summary: Create a document
      description: >-
        `POST /documents`


        Creates one document against a metadata definition and starts a workflow
        on it, then returns it in the same representation as a single-document
        read, users map included.


        Files are uploaded beforehand and referenced here by their hash - this
        request carries no bytes. What `body` has to contain follows from the
        definition: a document whose content is an uploaded file names that file
        in `body.pdfFile` (which need not be a PDF), a document generated from a
        template carries its markup in `body.html`, and in both cases the
        definition's own fields travel alongside as further keys of `body`.
        Everything beyond the document itself - folder placement, sign fields,
        tags, merging several uploads into one main file, conversion to PDF - is
        set through `optionalData`.


        The workflow's opening action can be carried out in the same call by
        naming it in `actionId` and giving it recipients, so creating a document
        and sending it out is one request rather than two.


        ---


        **Token authorization:** Authorize using a token — either a session
        token obtained from login or an API key — to call this endpoint.
      operationId: requestDocumentsPostDocument
      parameters:
        - in: query
          name: photoSize
          description: >-
            Rendition of the profile photo to embed for every user in the
            `users` map of the response.
          required: false
          schema:
            type: string
            enum:
              - nano
              - small
              - medium
              - big
            example: small
            default: nano
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/requestDocumentsPostDocument'
      responses:
        '200':
          description: Returns the created document together with the users it references.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/responseDocumentsMultiple'
        '400':
          description: >-
            Required fields are missing, the definition, workflow, action,
            template or a referenced file does not fit, or a referenced file
            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 subscription is not active, or has no capacity left for another
            document, for the signing transaction its signatures take or for
            what the opening action consumes.
          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, or may not create documents of
            this definition.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error'
              example:
                status: 403
                type: AUTH:ACCESS_DENIED
                message: Access denied
                requestId: 3fa85f6457174562b3fc2c963f66afa6
        '404':
          description: >-
            The template the document is to be created from does not exist, or
            the caller cannot view it.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error'
              example:
                status: 404
                type: RESOURCE:NOT_FOUND
                message: Resource not found
                requestId: 3fa85f6457174562b3fc2c963f66afa6
        '409':
          description: >-
            The template the document is to be bound to is not locked, or the
            state of the document's workflow does not allow what the request
            asks for.
          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:
    requestDocumentsPostDocument:
      type: object
      properties:
        actionId:
          type: integer
          minimum: 0
          description: >-
            Identifier of the action from the document's workflow definition
            that is executed right after the document is created. It may be
            omitted only when the workflow's initial state is automatic.
          example: 3
          nullable: true
        addMentionRights:
          type: boolean
          description: >-
            Grants read access to the users mentioned in `comment`, including
            those who could not see the document otherwise. Mentioned external
            addresses receive a view share as well, provided the comment is
            public.
        body:
          $ref: '#/components/schemas/requestDocumentsBodyCreate'
        comment:
          type: string
          maxLength: 2000
          description: >-
            Comment stored on the workflow history record of the executed
            action. Its text is scanned for user and document mentions. 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>.
        convertToPDF:
          type: boolean
          description: >-
            Converts the uploaded main file to PDF before the document is
            created. Files listed in `optionalData.merge` are governed by
            `optionalData.convert` instead.
          example: false
          default: false
        definitionType:
          type: string
          description: >-
            Flavour of the document to create - `edoc` for a document whose
            content the system generates from its metadata definition, `ext` for
            a document built around an uploaded main file. It has to be one of
            the flavours the metadata definition allows.
          example: ext
        draftId:
          type: string
          description: >-
            Identifier of the draft the document is created from. The draft is
            deleted once the document has been created.
          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
        groupReceiver:
          type: array
          items:
            type: string
          description: >-
            Groups receiving the document as recipients of the executed workflow
            action, by group identifier.
          example:
            - everyone
        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, and mentions inside it do not reach them either.
          example: false
          default: false
        optionalData:
          allOf:
            - $ref: '#/components/schemas/requestDocumentsOptionalDataCreate'
          description: >-
            Advanced options applied while the document is created - its folder
            placement, file merging, tags, and the sign fields and content to
            embed.
        receiver:
          oneOf:
            - type: array
              items:
                type: string
                pattern: ^[A-Za-z0-9.@_+-]+$
                minLength: 1
                description: >-
                  Username that uniquely identifies a user in the system.
                  Usually an email address. A single "+" sub-addressing tag (RFC
                  5233) is allowed in the local part.
                example: john.doe+member@example.com
            - type: string
              nullable: true
          description: >-
            Users receiving the document as recipients of the executed workflow
            action, by username. A value that matches no user but is a valid
            email address becomes an external recipient and is given a share.
        usePdfA:
          type: boolean
          description: >-
            Converts the produced PDF to PDF/A, the format suited to long-term
            archiving. The conversion re-renders the file, so its visual
            appearance may change.
          example: false
          default: false
          nullable: true
        workflow:
          type: string
          description: >-
            Identifier of the workflow definition that governs the created
            document. It has to match the workflow declared by the document's
            metadata definition.
          example: wf_archive
      required:
        - definitionType
        - workflow
    responseDocumentsMultiple:
      type: object
      properties:
        results:
          type: array
          items:
            oneOf:
              - allOf:
                  - $ref: '#/components/schemas/internalDocuments'
                description: Full representation of a document.
              - allOf:
                  - $ref: '#/components/schemas/responseFoldersSingle'
                description: Shorter representation of a folder.
          description: >-
            The documents and folders the call resolved to. A folder is
            represented in the folder shape, everything else in the document
            shape.
        users:
          type: object
          additionalProperties:
            $ref: '#/components/schemas/responseUsersMinimum'
          description: >-
            Minimum profile of every user the results refer to - the creator,
            the workflow participants, the users mentioned in comments or sign
            fields and the users named in the rights. Keys are usernames for
            internal users and e-mail addresses for external ones.
    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
    requestDocumentsBodyCreate:
      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
        bindToTemplate:
          type: boolean
          description: >-
            Binds the document to the template named in `customTemplate`, which
            it requires, and which then has to be locked - a template that is
            not locked refuses the document with `409`. The document stores the
            template as its `templateId`, and from then on every sending of the
            document that places or fills fields, or that asks a recipient to
            sign, approve or accept, is checked against the template: each field
            the template places has to be sent unchanged, with its recipient
            role and its signing order. The binding cannot be changed to another
            template, and a sending gives it up only when it asks for that and
            the template has been deleted. The audit entry of the document's
            creation records the binding. Without it, the document records the
            template it is created from but is not bound to it.
          example: false
          default: false
        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
        customTemplate:
          type: string
          description: >-
            Identifier of the template the document is created from. It has to
            be a template the creator can view - one that does not exist or that
            the creator cannot view refuses the document with `404`. The
            document records it, with the name the template has at that moment,
            as its `sourceTemplate`, the audit entry of the document's creation
            names it, and it is counted towards that template in the creating
            user's template usage statistics instead of towards the metadata
            definition. It binds the document to the template only together with
            `bindToTemplate`.
          example: cba71ea5-9a68-431a-a5c2-6d9932792ec7
          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
        documentType:
          type: string
          description: >-
            Identifier of the metadata definition the record belongs to, which
            determines its structure and the definition-specific fields it
            carries. A folder record always carries `folder` here.
          example: d_default
          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
      required:
        - documentTitle
        - documentType
    requestDocumentsOptionalDataCreate:
      type: object
      properties:
        annotations:
          type: array
          items:
            $ref: '#/components/schemas/requestDocumentsAnnotation'
          minItems: 1
          description: >-
            Annotations to render into the document, each of them either filling
            one of its sign fields or placed freely on a page.
        barcodeData:
          type: array
          items:
            type: string
            nullable: true
          nullable: true
        cloneFiles:
          type: boolean
          description: >-
            Copies the attachment files into new binaries instead of taking over
            the given ones. It is needed when those files are already attached
            elsewhere.
          nullable: true
        cloneMainFile:
          type: boolean
          description: >-
            Copies the main file into a new binary instead of taking over the
            given one. It is needed when that file is already used elsewhere.
          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
        images:
          type: array
          items:
            $ref: '#/components/schemas/requestDocumentsImageData'
          minItems: 1
          description: >-
            Images to embed into the document, each of them either filling one
            of its sign fields or placed freely on a page.
        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
        signatures:
          type: array
          items:
            $ref: '#/components/schemas/requestDocumentsSignature'
          minItems: 1
          description: >-
            Signatures to apply to the document. `signatureType` decides whether
            a cryptographic signature is produced or only its visual
            representation.
        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
    internalDocuments:
      type: object
      additionalProperties:
        description: Additional properties
      properties:
        _esHighlight:
          type: string
          description: >-
            Search highlighting for this hit - the matched fragments of the
            fields the search was asked to highlight.
        _version:
          type: number
          description: >-
            Storage version of the document, used for optimistic concurrency
            control on writes.
          example: 6
        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
        alreadyRead:
          type: boolean
          description: >-
            Whether the caller has already read the document; the flag is kept
            per user.
        attachments:
          type: array
          items:
            $ref: '#/components/schemas/entityDocumentsFile'
          description: >-
            Files attached to the document, narrowed to the ones the caller is
            allowed to see; a caller without the `view_attachments` right gets
            the merged attachments only.
          nullable: true
        barcode:
          type: string
          description: >-
            Hash of the stored barcode image rendered for the document, in the
            barcode format declared by its metadata definition.
          example: g153bn7qeo63b5kzec7q9cvnxnd03n34d4zkfyjy8m728eqdznf3htxm8mh14d48
          nullable: true
        barcodeContent:
          type: string
          description: >-
            Text encoded in the barcode image - a link that resolves back to
            this document.
          example: >-
            https://app.example.com/verification?id=a0d01c9d-f72f-4c57-af11-e26bda19cc59
          nullable: true
        certificateOfFulfillment:
          type: string
          description: >-
            Hash of the stored audit trail sealed once the document's process
            finished, the certificate of fulfillment.
          example: s1pss1atbzli272pinbt48n2ssy96ax2pwgqrz5qyzklwxg1kl0tq6anvz1p97xj
          nullable: true
        commentPermissions:
          type: object
          properties:
            deleteAllowed:
              type: boolean
              description: >-
                Whether comments on the document may be deleted - each by its
                own author only.
            drawingAllowed:
              type: boolean
              description: >-
                Whether a drawing may be attached to a comment on the document;
                always `false` for a caller from outside the workspace.
            editAllowed:
              type: boolean
              description: >-
                Whether comments on the document may be edited - each by its own
                author only.
          description: >-
            What the comment settings of the document's owner let the caller do
            with the comments besides posting them. A finished document closed
            to further comments refuses all of it regardless. Present where a
            single document is read and on each document a search returns.
        commentsOnCompletedAllowed:
          type: boolean
          description: >-
            Whether comments may still be added once the document's process has
            ended. The value is frozen when the process finishes, taken from the
            settings of the user who completed it, or from the owner's settings
            when that user has none or belongs to a different organization.
          nullable: true
        content:
          type: string
          description: >-
            Short summary of the document shown in listings - either generated
            by the LLM extraction or assembled from the extracted text and the
            content fields of the document's metadata definition.
        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
        date:
          type: string
          format: date-time
          description: >-
            Time at which the document was created. The platform stamps it when
            the record is first written and keeps it untouched afterwards, so a
            value sent by a client is ignored; a copy of a document carries the
            time of the copy instead.
          nullable: true
        definition:
          type: string
          description: >-
            Identifier of the metadata definition the record belongs to, which
            determines its structure and the definition-specific fields it
            carries. A folder record always carries `folder` here.
          example: d_default
          nullable: true
        definitionLanguage:
          type: string
          description: >-
            Language declared on the metadata definition the document was
            created from. It is the first language candidate for text extraction
            of the main file.
          example: en
          nullable: true
        deletionInfo:
          allOf:
            - $ref: '#/components/schemas/entityDocumentsDeletionInfo'
          description: >-
            Soft-deletion record telling whether the record currently sits in
            the trash, and who moved it there and when.
          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
        documentId:
          type: string
          description: >-
            Identifier of the document, generated by the platform as a UUID when
            the record is created and never handed out twice. It doubles as the
            record's storage id and stays with the document through all its
            revisions; a copy of a document is given one of its own.
          example: a0d01c9d-f72f-4c57-af11-e26bda19cc59
          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
        documentType:
          type: string
          description: >-
            Identifier of the metadata definition the record belongs to, which
            determines its structure and the definition-specific fields it
            carries. A folder record always carries `folder` here.
          example: d_default
          nullable: true
        enumSelections:
          allOf:
            - $ref: '#/components/schemas/requestDocumentsBodyEnumSelections'
          description: >-
            Selections made in the document's enum fields, 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. For a non-fixed term it is worked out from the termination, the
            notice period after the day it started, and an automatic renewal
            moves it on by the renewal period.
          example: '2026-12-31T00:00:00.000Z'
          nullable: true
        extractionLanguage:
          type: string
          description: >-
            Language detected in the text extracted from the document's main
            file.
          example: en
          nullable: true
        extractionOcr:
          type: string
          description: >-
            Text recovered from the document's main file by optical character
            recognition, indexed for full-text search.
        extractionStatus:
          type: string
          description: >-
            Progress of the text extraction and content recognition run over the
            document's main file; `not_started` when no extraction has been
            recorded yet.
        extractionText:
          type: string
          description: >-
            Full text extracted from the document's main file, indexed for
            full-text search. For a generated document it is the rendered HTML
            stripped of its markup.
        folder:
          allOf:
            - $ref: '#/components/schemas/responseGenericFolder'
          description: Placement of the document in the folder trees.
        html:
          type: string
          description: >-
            Rendered HTML body of a generated (`edoc`) document. It is the
            source the document's main file is rendered from, and the source of
            its extracted text.
          nullable: true
        isAnnotated:
          type: boolean
          description: >-
            Whether annotations, images or submitted files have been written
            into the document's main file.
          nullable: true
        isAssignee:
          type: boolean
          description: >-
            Whether the workflow currently waits for the caller, either named
            directly or through one of the caller's groups.
        isConvertible:
          type: boolean
          description: >-
            Whether the document's main file is of a type the conversion service
            can turn into PDF.
        isEditable:
          type: boolean
          description: >-
            Whether the workflow state the document currently sits in allows the
            document to be edited.
        isFolder:
          type: boolean
          description: >-
            Whether the record is a folder rather than a document - both are
            stored in the same index.
          nullable: true
        isReadOnly:
          type: boolean
          description: >-
            Whether the workflow state the document currently sits in forbids
            changes to the document.
        isSignable:
          type: boolean
          description: >-
            Whether the workflow state the document currently sits in allows
            signing.
        isSigned:
          type: boolean
          description: >-
            Whether the document's main file carries at least one signature,
            including signatures that were already present in an uploaded file.
          nullable: true
        isSignedInternally:
          type: boolean
          description: >-
            Whether at least one of the signatures or seals on the document's
            main file was produced by this platform.
          nullable: true
        lastModified:
          type: string
          format: date-time
          description: Date and time when the record was last modified.
          nullable: true
        lastSeen:
          type: array
          items:
            $ref: '#/components/schemas/entityDocumentsLastSeen'
          description: When each user last opened the record, one entry per user.
          nullable: true
        organization:
          type: string
          description: >-
            Identifier of the organization the document belongs to, taken from
            its creator. It is absent for a creator outside any organization,
            and it governs which settings apply to the document and who may see
            its attachments.
          example: d0a72e51-728e-4a1d-9a5c-13796122b6f8
          nullable: true
        owner:
          type: string
          description: >-
            Username of the document's current owner. Ownership starts with the
            creator and changes only when it is transferred explicitly.
          example: john.doe@example.com
          nullable: true
        pdfFile:
          allOf:
            - $ref: '#/components/schemas/entityDocumentsPdfFile'
          description: >-
            Main file of the document, the one shown in the viewer. Despite the
            field name it does not have to be a PDF.
          nullable: true
        preparationDraft:
          allOf:
            - $ref: '#/components/schemas/entityGenericPreparationDraft'
          description: >-
            Signing setup prepared on the document and kept for later - the
            participants, their sign fields and the signature options, none of
            which has been sent out yet.
          nullable: true
        readBy:
          type: array
          items:
            type: string
          description: >-
            Usernames of the users who have read the document. The list is
            emptied whenever the document should show up as unread again, such
            as when a new action is requested on it.
          nullable: true
        revision:
          type: integer
          description: >-
            Sequential revision number of the document. Each change that is
            snapshotted into the revision history raises it, and it identifies
            the snapshot to load or revert to.
          nullable: true
        rights:
          allOf:
            - $ref: '#/components/schemas/entityDocumentsRight'
          description: >-
            Internal read and edit permissions on the record, evaluated
            alongside the caller's rights for the document type.
          nullable: true
        shareSettings:
          allOf:
            - $ref: '#/components/schemas/entityGenericShareSettings'
          description: >-
            Share configuration the document was last shared with - recipient
            permissions, protection factors, expiration and reminders.
          nullable: true
        showBarcode:
          type: boolean
          description: Whether the document's barcode is displayed to the user.
          nullable: true
        signatureChecksums:
          type: array
          items:
            type: string
          description: >-
            Digests of the signatures this platform applied to the document's
            main file, one per signing operation. They identify the document
            from an uploaded copy of the file and reveal whether that copy was
            altered.
          nullable: true
        signatureComponents:
          type: array
          items:
            $ref: '#/components/schemas/entityDocumentsSignatureComponent'
          description: >-
            Signatures, seals and timestamps already applied to the document,
            with their certificate and validation details.
          nullable: true
        signatureProvider:
          type: string
          description: >-
            Provider that produces the signatures on the document. It is
            resolved from the signer's settings on the first signature and
            cannot be changed afterwards.
          example: internal
          nullable: true
        signatureType:
          type: string
          description: >-
            Whether the document is signed with real cryptographic signatures or
            with image-only visual ones. It is decided on the first signature
            and cannot be changed afterwards.
          enum:
            - null
            - signature
            - image
          example: signature
          nullable: true
        signFields:
          type: array
          items:
            $ref: '#/components/schemas/entityDocumentsSignField'
          description: >-
            Fields placed on the pages of the document's main file for its
            participants to fill - signatures, initials, stamps, text inputs and
            other annotations.
          nullable: true
        sourceTemplate:
          allOf:
            - $ref: '#/components/schemas/entityDocumentsSourceTemplate'
          description: >-
            Template the document was created from, as its creator named it. The
            platform records it when the document is created and never changes
            it afterwards: an edit or a revert keeps it and a copy of the
            document inherits it. It is absent for a document created without a
            template. Document searches filter and aggregate by
            `sourceTemplate.id`, which is how the documents created from a
            template are found and counted.
          nullable: true
        star:
          type: boolean
          description: >-
            Whether the caller has marked the document as a favourite; the flag
            is kept per user.
        submittedFiles:
          type: array
          items:
            $ref: '#/components/schemas/entityDocumentsSubmittedFile'
          description: >-
            Files uploaded into the document by its participants, narrowed to
            the ones the caller is allowed to see - their own uploads, the ones
            marked public, and all of them when the caller and the document
            share an organization.
          nullable: true
        subscriptions:
          allOf:
            - $ref: '#/components/schemas/entityDocumentsSubscriptions'
          description: Users subscribed to the document's events, listed per event.
          nullable: true
        tags:
          allOf:
            - $ref: '#/components/schemas/responseGenericTags'
          description: >-
            Tags attached to the document, split into the shared ones and the
            caller's private ones.
        templateId:
          type: string
          description: >-
            Identifier of the signing template the document's process was set up
            from. Once stamped on the document it cannot be changed to another
            template.
          example: cba71ea5-9a68-431a-a5c2-6d9932792ec7
          nullable: true
        term:
          allOf:
            - $ref: '#/components/schemas/responseDocumentsTerm'
          description: >-
            Expiration reminders, contract renewal or non-fixed notice terms of
            the document, with the state each reminder is in and the renewals
            carried out so far.
          nullable: true
        termType:
          type: string
          description: >-
            Kind of term the document has, worked out from `expiresOn` and
            `term` on every save. It is absent for a document that neither
            expires nor has a non-fixed term.


            - `fixed_term`: The document expires on a set date and its contract
            is renewed, automatically or by hand.

            - `expiry_only`: The document expires on a set date and nothing
            renews it.

            - `non_fixed_term`: The contract runs until it is terminated. The
            document expires only once a termination has started, the notice
            period after it.
          enum:
            - fixed_term
            - expiry_only
            - non_fixed_term
            - null
          nullable: true
        thumbnails:
          type: string
          description: >-
            Hash of the stored preview image rendered from the document's main
            file. It is dropped whenever that file changes and generated again
            afterwards.
          example: s1pss1atbzli272pinbt48n2ssy96ax2pwgqrz5qyzklwxg1kl0tq6anvz1p97xj
          nullable: true
        tsaType:
          type: string
          description: >-
            Which trusted timestamps are applied to the document - one embedded
            in each signature, a standalone document timestamp, both, or none.
          example: signatureOnly
          nullable: true
        type:
          type: string
          description: >-
            Kind of definition behind the record and, with it, the way the
            record is processed - `ext` for a document whose uploaded main file
            is the document itself, `edoc` for one generated from a definition
            template, `folder` for a folder.
          example: ext
          nullable: true
        usePdfA:
          type: boolean
          description: >-
            Whether the document's main file is kept PDF/A compliant when it is
            signed or re-rendered. Once turned on it stays on.
          nullable: true
        user:
          allOf:
            - $ref: '#/components/schemas/entityGenericUser'
          description: >-
            User who created the document. Unlike `owner` it stays the same when
            the document changes hands.
          nullable: true
        workflow:
          allOf:
            - $ref: '#/components/schemas/internalDocumentsWorkflow'
          description: >-
            The workflow running on the document - its current state, the users
            and groups it waits for, the recorded history and the actions
            available in that state.
    responseFoldersSingle:
      type: object
      properties:
        _esHighlight:
          type: string
          description: >-
            Search highlighting for this hit - the matched fragments of the
            fields the search was asked to highlight.
        _version:
          type: number
          description: >-
            Storage version of the folder, used for optimistic concurrency
            control on writes.
          example: 3
        date:
          type: string
          format: date-time
          description: Date and time when the folder was created.
          nullable: true
        definition:
          type: string
          description: >-
            Identifier of the metadata definition the record belongs to, which
            determines its structure and the definition-specific fields it
            carries. A folder record always carries `folder` here.
          example: d_default
          nullable: true
        deletionInfo:
          allOf:
            - $ref: '#/components/schemas/entityDocumentsDeletionInfo'
          description: >-
            Soft-deletion record telling whether the record currently sits in
            the trash, and who moved it there and when.
          nullable: true
        documentTitle:
          type: string
          description: Name of the folder.
          example: Contract Agreement
          nullable: true
        folder:
          allOf:
            - $ref: '#/components/schemas/responseGenericFolder'
          description: >-
            Placement of this folder in the folder trees, that is which folder
            it is nested in.
        folderId:
          type: string
          description: Unique identifier of the folder.
          example: 8d25c1a9-1ee2c7f56-1da2-00ac83ba54ce
        isFolder:
          type: boolean
          description: Marks the record as a folder rather than a document.
        lastModified:
          type: string
          format: date-time
          description: Date and time when the record was last modified.
          nullable: true
        rights:
          allOf:
            - $ref: '#/components/schemas/responseDocumentsRights'
          description: Users and groups that may read or edit the folder.
        star:
          type: boolean
          description: >-
            Whether the caller has marked the folder as a favourite; the flag is
            kept per user.
        tags:
          allOf:
            - $ref: '#/components/schemas/responseGenericTags'
          description: >-
            Tags attached to the folder, split into the shared ones and the
            caller's private ones.
        type:
          type: string
          description: >-
            Kind of definition behind the record and, with it, the way the
            record is processed - `ext` for a document whose uploaded main file
            is the document itself, `edoc` for one generated from a definition
            template, `folder` for a folder.
          example: ext
          nullable: true
        user:
          allOf:
            - $ref: '#/components/schemas/entityGenericUser'
          description: The user who created the folder.
          nullable: true
    responseUsersMinimum:
      type: object
      properties:
        fullname:
          type: string
          description: >-
            Full name of the user. It is what names the person to a reader - in
            notifications, in mentions, in the appearance of their signature and
            in exported files.
          example: John Doe
          nullable: true
        image:
          type: string
          description: >-
            Storage hash of the user's profile picture in the rendition asked
            for by the caller.
          example: as0ia4jdqecwq0u5s1omd9krs4u244ic2n2545kyhyat9imkwyg1bgec16r94tth
          nullable: true
        mail:
          type: string
          description: >-
            E-mail address of the user, where the platform delivers
            notifications and other messages addressed to them. It is held
            separately from the username in `name`, although the two commonly
            carry the same address.
          example: john.doe@example.com
          nullable: true
        recordType:
          type: string
          description: >-
            Whether the record is a user account of the tenant or a contact
            identified only by an e-mail address.
          enum:
            - internal
            - external
        role:
          type: string
          description: >-
            Job title or position of the user in their company, kept as
            free-form text. It is descriptive only and grants no permissions.
          example: Head of Legal
          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
    requestDocumentsAnnotation:
      type: object
      properties:
        align:
          type: string
          description: >-
            Horizontal alignment of the text inside the annotation's box.
            Ignored when `maxCharacters` splits the box into character cells.
            Cannot be combined with `signFieldId`.
          enum:
            - left
            - center
            - right
        backgroundColor:
          type: string
          pattern: ^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{8})$
          description: >-
            Color filling the rectangle drawn behind the annotation's text.
            Nothing is filled when it is empty. Cannot be combined with
            `signFieldId`.
          example: '#ffaa55'
          nullable: true
        blob:
          type: string
          minLength: 1
          description: >-
            Identifier in the binary storage of the file the annotation attaches
            to the document. Only a submitted-file annotation carries one, and
            only a file the acting user uploaded themselves is accepted.
          example: da09a47b4f5b1xv726cfm36l8k1hkxzwmj5mszvfq6szoambdvc44v6i8hrhnu1f
        bold:
          type: boolean
          description: >-
            Renders the annotation's text with the bold variant of `font`.
            Cannot be combined with `signFieldId`.
        color:
          type: string
          pattern: ^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{8})$
          description: >-
            Color of the annotation's text, and of the underline drawn beneath
            it when `link` is set.
          example: '#ffaa55'
          default: '#000000'
          nullable: true
        comment:
          type: string
          maxLength: 1500
          description: >-
            Free-form comment the acting user attaches to the annotation while
            applying it.
          example: Processed as requested.
          nullable: true
        fileName:
          type: string
          description: >-
            Name under which the attached file is listed on the document. When
            it is empty the uploaded file keeps its own name.
          example: evidence.pdf
          nullable: true
        font:
          type: string
          description: >-
            Key of the font family used for the annotation's text. It is
            resolved to a font file by the PDF signing service, so only the
            fonts that service ships are usable. Cannot be combined with
            `signFieldId`.
          example: default
          nullable: true
        fontSize:
          type: number
          minimum: 4
          maximum: 100
          description: >-
            Size of the annotation's text in points. Cannot be combined with
            `signFieldId`.
        link:
          type: string
          maxLength: 2048
          description: >-
            Target address the annotation points to. When it is set, the
            rendered text becomes a clickable link underlined in the
            annotation's color. Cannot be combined with `signFieldId`.
          example: https://example.com
          nullable: true
        maxCharacters:
          type: integer
          minimum: 0
          exclusiveMinimum: true
          maximum: 256
          description: >-
            Number of equal-width character cells the annotation's box is split
            into, one glyph per cell. Cannot be combined with `signFieldId`.
          nullable: true
        pages:
          type: array
          items:
            type: integer
            minimum: 1
            example: 3
          maxItems: 5000
          description: >-
            Pages the annotation is rendered on, the first page being `1`. The
            same box is drawn on each of them. Cannot be combined with
            `signFieldId`.
        position:
          type: object
          additionalProperties: false
          description: >-
            Placement and size of the annotation's box on each of its pages.
            With `signFieldId` set, the box comes from the sign field and only
            its width and height can be overridden here.
        public:
          type: boolean
          description: >-
            Marks the attached file as visible to every reader of the document,
            including recipients outside the document's organization; otherwise
            only its uploader and users of that organization see it. Cannot be
            combined with `signFieldId`.
        signee:
          type: string
          description: >-
            Person the annotation is attributed to when it is filled in by
            someone other than the authenticated user, as happens during
            in-person signing. It is stored as supplied, without being resolved
            against a user record.
        signFieldId:
          type: string
          description: >-
            Identifier of the sign field this annotation fills. The field's own
            placement, formatting and subtype are taken from it. `signFieldId`
            cannot be combined with `pages`, `align`, `fontSize`, `bold`,
            `backgroundColor`, `link`, `subtype`, `font`, `maxCharacters` and
            `public`.
          example: 1LTn5IimzXh68bOv
          nullable: true
        subtype:
          type: string
          description: >-
            What the annotation renders or collects, refining it into a concrete
            kind. Several of the subtypes are filled in by the platform rather
            than by the caller. Cannot be combined with `signFieldId`.
          enum:
            - null
            - annotation_box_field
            - annotation_check
            - annotation_check_group
            - annotation_company
            - annotation_date
            - annotation_datetime
            - annotation_datetime_current
            - annotation_date_current
            - docId
            - annotation_dropdown
            - annotation_submitted_file
            - annotation_full_name
            - annotation_generic
            - annotation_link
            - annotation_mail
            - annotation_metadata
            - annotation_phone
            - annotation_radio
            - annotation_role
          nullable: true
        text:
          type: string
          maxLength: 10000
          description: >-
            Text the annotation renders into the file. On a checkbox or radio
            annotation the leading character encodes the toggle state and the
            rest is the label; for the automatically filled subtypes the
            platform composes the text itself. Except on a checkbox or radio
            annotation and when `maxCharacters` splits the box into character
            cells, the text is wrapped between words to the width of the
            annotation's box - a word wider than the box is split and a newline
            character forces a line break - and its lines are spaced at the
            font's natural line height from the top of the box. A box too short
            for them grows downwards by whole lines, keeping its width and top
            edge, and the annotation is stored with the grown height while its
            sign field keeps its own; the field's `numberOfLines` caps the
            lines, and a read-only field's box keeps its height. A text that
            needs more lines than that, or a box that would grow past the bottom
            of the page, is refused, and the error's `details.signFieldId` names
            the field when the annotation fills one.
        zIndex:
          type: integer
          description: >-
            Paint order of the annotation among the annotations and images
            placed on the same page - a lower value is drawn first, underneath
            the higher ones.
          example: 0
          default: 0
          nullable: true
    requestDocumentsImageData:
      type: object
      properties:
        blob:
          type: string
          minLength: 1
          description: >-
            Identifier in the binary storage of the picture that is embedded
            into the page.
          example: da09a47b4f5b1xv726cfm36l8k1hkxzwmj5mszvfq6szoambdvc44v6i8hrhnu1f
        comment:
          type: string
          maxLength: 1500
          description: >-
            Free-form comment the acting user attaches to the image while
            applying it.
          example: Processed as requested.
          nullable: true
        pages:
          type: array
          items:
            type: integer
            minimum: 1
            example: 2
          maxItems: 5000
          description: >-
            Pages the image is rendered on, the first page being `1`. The same
            box is drawn on each of them. Cannot be combined with `signFieldId`.
        position:
          allOf:
            - $ref: '#/components/schemas/requestDocumentsSignatureItem'
          description: >-
            Placement and size of the image's box on each of its pages. Cannot
            be combined with `signFieldId`.
        signee:
          type: string
          description: >-
            Person the image is attributed to when it is placed by someone other
            than the authenticated user, as happens during in-person signing. It
            is stored as supplied, without being resolved against a user record.
        signFieldId:
          type: string
          description: >-
            Identifier of the sign field this image fills. The field's own
            placement is taken from it. `signFieldId` cannot be combined with
            `pages` and `position`.
          example: 1LTn5IimzXh68bOv
        subtype:
          type: string
          description: >-
            Finer classification of the image - for instance a plain picture, a
            barcode or a hand-drawn mark. With `signFieldId` set, the value
            comes from the sign field.
          example: image_barcode
          nullable: true
        zIndex:
          type: integer
          description: >-
            Paint order of the image among the annotations and images placed on
            the same page - a lower value is drawn first, underneath the higher
            ones.
          example: 0
          default: 0
          nullable: true
      required:
        - blob
    requestDocumentsSignature:
      type: object
      properties:
        blob:
          type: string
          minLength: 1
          description: >-
            Image rendered for this signature: the identifier of the picture in
            the binary storage, or the identifier of the stamp definition when
            `type` is a stamp, in which case the stamp's own rendered image is
            used.
          example: da09a47b4f5b1xv726cfm36l8k1hkxzwmj5mszvfq6szoambdvc44v6i8hrhnu1f
        comment:
          type: string
          maxLength: 1500
          description: >-
            Free-form comment the acting user attaches to the signature while
            applying it.
          example: Processed as requested.
          nullable: true
        decorationType:
          type: string
          description: >-
            Decoration drawn around the signature or initials image - the frame
            and the caption carrying the signature id, the signing time and the
            on-behalf line. Stamps are never decorated, and only the decorations
            enabled for the tenant may be used.
          example: empty
          default: empty
          nullable: true
        pages:
          type: array
          items:
            type: integer
            minimum: 1
          maxItems: 5000
          description: >-
            Pages the signature is rendered on, the first page being `1`. The
            same box is drawn on each of them. Cannot be combined with
            `signFieldId`.
        position:
          allOf:
            - $ref: '#/components/schemas/requestDocumentsSignatureItem'
          description: >-
            Placement and size of the signature's box on each of its pages.
            Cannot be combined with `signFieldId`.
        signee:
          type: string
          description: >-
            Person the signature is attributed to when it is applied by someone
            other than the authenticated user, as happens during in-person
            signing. It is stored as supplied, without being resolved against a
            user record.
        signFieldId:
          type: string
          description: >-
            Identifier of the sign field this signature fills. The field's own
            placement and its rendering options are taken from it. `signFieldId`
            cannot be combined with `pages`, `position`, `type` and `timestamp`.
          example: 1LTn5IimzXh68bOv
        signOnBehalfOf:
          type: string
          pattern: ^[A-Za-z0-9.@_+-]+$
          description: >-
            Username of the person on whose behalf the signature is made. It is
            recorded on the produced signature and, where a decoration is drawn
            around the signature image, printed into it.
          example: john.doe+member@example.com
          nullable: true
        timestamp:
          type: boolean
          description: >-
            Draws the signing time into the visual representation of the
            signature. It affects only the rendered image, not the cryptographic
            signature. Cannot be combined with `signFieldId`.
        type:
          type: string
          description: >-
            Kind of signature applied - a signature, initials, a personal or
            organization stamp, or a signature captured with a signature pad.
            Cannot be combined with `signFieldId`.
          enum:
            - signature
            - initials
            - stamp
            - wacom
            - organization_stamp
      required:
        - blob
    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'
    entityDocumentsFile:
      type: object
      properties:
        additionalInfo:
          type: string
          description: >-
            Stringified object with additional information extracted from the
            file, such as its PDF version, XMP metadata and PDF/A compliance
            (PDF only).
          nullable: true
        content:
          type: string
          description: >-
            Identifier of the stored file in the binary storage; the bytes
            themselves are fetched separately.
          example: as0ia4jdqecwq0u5s1omd9krs4u244ic2n2545kyhyat9imkwyg1bgec16r94tth
          nullable: true
        fileExtension:
          type: string
          description: Extension of the file name, lowercase and without the leading dot.
          example: docx
          nullable: true
        fileType:
          type: string
          description: >-
            Coarse category of the file derived from its extension, for example
            `pdf`, `word`, `image` or `other`.
          example: word
          nullable: true
        hasPassword:
          type: boolean
          description: >-
            Indicates that the file is protected by a password of its own, so
            its contents could not be inspected (PDF only).
          nullable: true
        hidden:
          type: boolean
          description: >-
            Marks a file that belongs to something else on the document than its
            attachments - the drawing of a comment, which references it by this
            identifier. Such a file is never listed, counted or offered as an
            attachment.
          nullable: true
        merged:
          type: boolean
          description: >-
            Marks an attachment that is one of the source files the document's
            main file was assembled from; its identifier is then also listed in
            the main file's `merge` records.
          nullable: true
        mimetype:
          type: string
          description: MIME type of the file.
          example: >-
            application/vnd.openxmlformats-officedocument.wordprocessingml.document
          nullable: true
        name:
          type: string
          description: Display name of the file, normally including its extension.
          example: LegalNotes.docx
          nullable: true
        pages:
          type: integer
          description: Number of pages in the file (PDF only).
          example: 8
          nullable: true
        pdfPreview:
          allOf:
            - $ref: '#/components/schemas/entityDocumentsPdfPreview'
          description: >-
            PDF preview of this attachment, generated when it is an office
            format so that it can be viewed without an online editor. It mirrors
            the preview kept on the stored file, and is empty for any other
            format and for a file not processed yet.
          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.
          nullable: true
        size:
          type: integer
          description: >-
            Size in bytes of the file `content` currently points at. Signing and
            sealing rewrite it along with the bytes, so for a signed file this
            is the size of the signed result rather than of what was originally
            uploaded.
          example: 522481
          nullable: true
        timestamp:
          type: string
          format: date-time
          description: >-
            Time at which the file was uploaded to the binary storage, which may
            precede its attachment to the document.
          nullable: true
        unsealedContent:
          type: string
          description: >-
            Identifier of this file as it stood before the electronic seal was
            applied on top of it. It is kept so that further signing or
            post-processing can start from the unsealed variant instead of
            breaking the seal.
          example: ug7ib1v3yv6grxcz4ipx8j0f6ekjy6bcgfk8s9uvvvczk0gu9dtvtb46ph39w0f2
          nullable: true
        user:
          type: string
          description: Username of the user who uploaded the file.
          example: john.doe@example.com
          nullable: true
    entityDocumentsDeletionInfo:
      type: object
      properties:
        deletedBy:
          type: string
          description: >-
            Username of the user who moved the record to the trash. Only that
            user can take it back out again.
          example: john.doe@example.com
          nullable: true
        deletedDate:
          type: string
          format: date-time
          description: Date and time when the record was moved to the trash.
          nullable: true
        isDeleted:
          type: boolean
          description: >-
            Whether the record currently sits in the trash. Trashed records are
            kept out of listings and searches until they are restored or purged.
          nullable: true
    responseGenericFolder:
      type: object
      properties:
        global:
          allOf:
            - $ref: '#/components/schemas/responseGenericFoldersFolder'
          description: >-
            Placement in the shared folder tree of the tenant. `null` when the
            item is not filed there.
          nullable: true
        user:
          allOf:
            - $ref: '#/components/schemas/responseGenericFoldersFolder'
          description: >-
            Placement in the caller's own folder tree. `null` when the item is
            not filed there.
          nullable: true
    entityDocumentsLastSeen:
      type: object
      properties:
        date:
          type: string
          format: date-time
          description: Date and time when that user last opened the record.
          nullable: true
        name:
          type: string
          description: Username the entry belongs to.
          example: john.doe@example.com
          nullable: true
    entityDocumentsPdfFile:
      type: object
      properties:
        additionalInfo:
          type: string
          description: >-
            Stringified object with additional information extracted from the
            file, such as its PDF version, XMP metadata and PDF/A compliance
            (PDF only).
          nullable: true
        content:
          type: string
          description: >-
            Identifier of the document's main file in the binary storage; the
            bytes themselves are fetched separately.
          example: a219a47b4f5b1xv726cfm36l8k1hkxzwmj5mszvfq6szoambdvc44v6i8hrhntv0
          nullable: true
        fileExtension:
          type: string
          description: Extension of the file name, lowercase and without the leading dot.
          example: pdf
          nullable: true
        fileType:
          type: string
          description: >-
            Coarse category of the file derived from its extension, for example
            `pdf`, `word`, `image` or `other`.
          example: pdf
          nullable: true
        hasPassword:
          type: boolean
          description: >-
            Indicates that the file is protected by a password of its own, so
            its contents could not be inspected (PDF only).
          nullable: true
        merge:
          type: array
          items:
            $ref: '#/components/schemas/entityDocumentsPdfFileMerge'
          description: >-
            Source files the main file was assembled from, in merge order,
            together with the page range each of them occupies. Empty for a main
            file that was not assembled from several files.
          nullable: true
        mimetype:
          type: string
          description: >-
            MIME type of the main file. Despite the property name the main file
            is not necessarily a PDF; an uploaded office document is converted
            only on request or when the document is signed.
          example: application/pdf
          nullable: true
        name:
          type: string
          description: Display name of the main file, normally including its extension.
          example: Contract.pdf
          nullable: true
        pages:
          type: integer
          description: Number of pages in the file (PDF only).
          example: 21
          nullable: true
        pdfPreview:
          allOf:
            - $ref: '#/components/schemas/entityDocumentsPdfPreview'
          description: >-
            PDF preview of this main file, generated when it is an office format
            so that it can be viewed without an online editor. It mirrors the
            preview kept on the stored file, and is empty for any other format
            and for a file not processed yet.
          nullable: true
        size:
          type: integer
          description: >-
            Size in bytes of the file `content` currently points at. Signing and
            sealing rewrite it along with the bytes, so for a signed main file
            this is the size of the signed result rather than of what was
            originally uploaded.
          example: 724158
          nullable: true
        tempFile:
          type: string
          description: >-
            Identifier of the temporary working copy of the main file, created
            while the document is open for editing in the external office
            editor.
          example: h6uc1qhpj9nnj3d0i8y5cpfxrpm7bxg2gjpi3xnfbnpr3pn8g6bfb6a3vjt0kcpq
          nullable: true
        unsealedContent:
          type: string
          description: >-
            Identifier of the main file as it stood before the electronic seal
            was applied on top of it. It is kept so that further signing or
            post-processing can start from the unsealed variant instead of
            breaking the seal.
          example: ug7ib1v3yv6grxcz4ipx8j0f6ekjy6bcgfk8s9uvvvczk0gu9dtvtb46ph39w0f2
          nullable: true
    entityDocumentsRight:
      type: object
      properties:
        editGroups:
          type: array
          items:
            type: string
          description: >-
            Identifiers of the groups whose members may edit the record. Edit
            access covers read access as well.
          nullable: true
        editUsers:
          type: array
          items:
            type: string
          description: >-
            Usernames of the users who may edit the record. Edit access covers
            read access as well.
          nullable: true
        private:
          type: boolean
          description: >-
            Whether access to the record is limited to the users and groups
            named here. While it is not private, the rights the caller holds for
            the record's document type grant access too.
          nullable: true
        readGroups:
          type: array
          items:
            type: string
          description: Identifiers of the groups whose members may read the record.
          nullable: true
        readUsers:
          type: array
          items:
            type: string
          description: Usernames of the users who may read the record.
          nullable: true
    entityDocumentsSignatureComponent:
      type: object
      properties:
        actor:
          allOf:
            - $ref: '#/components/schemas/entityGenericUser'
          description: >-
            The user who performed the operation that produced this component.
            Absent for a signature that was read out of an already-signed file.
          nullable: true
        algorithm:
          type: string
          description: Signature algorithm of the certificate that produced the signature.
          example: SHA256withRSA
          nullable: true
        align:
          type: string
          description: >-
            Horizontal alignment of the text inside the component's box. Applies
            to annotation components.
          example: center
          nullable: true
        backgroundColor:
          type: string
          description: >-
            Color filling the rectangle behind the annotation's text, as a hex
            RGB or RGBA value.
          example: '#F5F5F5'
          nullable: true
        bold:
          type: boolean
          description: Renders the annotation's text in bold.
          nullable: true
        color:
          type: string
          description: >-
            Color of the annotation's text, and of the underline drawn for a
            link, as a hex RGB or RGBA value.
          example: '#1A1A1A'
          nullable: true
        comment:
          type: string
          description: >-
            Free-form comment the acting user attached to this signature,
            annotation or image while applying it.
          example: Reviewed with the legal team.
          nullable: true
        component:
          type: string
          description: >-
            Kind of the component: the sign field type that was applied
            (`signature`, `initials`, `stamp`, `organization_stamp`, `wacom`),
            or `annotation`, `image`, `seal` or `timestamp`.
          example: signature
          nullable: true
        coverAll:
          type: boolean
          description: >-
            Indicates that the file has not changed since this signature was
            applied, apart from the incremental changes the signature itself
            permits.
          nullable: true
        date:
          type: string
          format: date-time
          description: >-
            Time at which the component was produced. For a signature read out
            of an already-signed file it is the signing time recorded in that
            file.
          nullable: true
        decorateFile:
          type: string
          description: >-
            Name of the decoration drawn around the signature or initials image,
            such as an envelope or a frame.
          example: frame
          nullable: true
        fileHash:
          type: string
          description: >-
            Identifier of the image embedded for this component in the binary
            storage - the signature or stamp image, the picture of an image
            component, or the file a submitted-file annotation carries. It never
            refers to the signed file itself.
          example: as0ia4jdqecwq0u5s1omd9krs4u244ic2n2545kyhyat9imkwyg1bgec16r94tth
          nullable: true
        fingerprintSha256:
          type: string
          description: >-
            SHA-256 digest of the signing certificate's DER encoding, as
            uppercase hex without separators. It is what pins down the exact
            certificate, where `serialNumber` tells certificates apart only
            within one issuer. For a timestamp component it describes the
            timestamping authority's certificate.
          example: A13767DDACA2D1B0ACAEB7CD3145D3D1CE14E208106318968FAF9882C8423F43
          nullable: true
        font:
          type: string
          description: Family of the font used to render the annotation's text.
          example: opensans
          nullable: true
        fontSize:
          type: number
          description: Size of the annotation's text, in PDF points.
          example: 11
          nullable: true
        imageSignature:
          type: boolean
          description: >-
            Indicates that the component is a visual signature only, with no
            cryptographic signature of its own behind it; such a file carries a
            single document-level seal instead.
          nullable: true
        ip:
          type: string
          description: >-
            IP address the signer's request originated from. Holds `redacted`
            when the tenant is configured to hide this information.
          example: 203.0.113.42
          nullable: true
        isLTV:
          type: boolean
          description: >-
            Indicates that the signature embeds the certificate chain and
            revocation data needed for long-term validation, so it stays
            verifiable after the signing certificate expires.
          nullable: true
        isSelfSigned:
          type: boolean
          description: Indicates that the signing certificate is self-signed.
          nullable: true
        issuer:
          type: string
          description: >-
            Distinguished name of the authority that issued the signing
            certificate. For a timestamp component it describes the timestamping
            authority's certificate.
          example: CN=Example Qualified CA,O=Example Trust Services,C=CZ
          nullable: true
        isVerified:
          type: boolean
          description: >-
            Indicates that the signature was verified and its certificate chain
            anchors in at least one trust list.
          nullable: true
        keyUsage:
          type: array
          items:
            type: string
            nullable: true
          description: >-
            What the signing certificate's key may be used for, named as the key
            usage bits of RFC 5280 — `digitalSignature`, `nonRepudiation`,
            `keyEncipherment`, `dataEncipherment`, `keyAgreement`,
            `keyCertSign`, `cRLSign`, `encipherOnly` and `decipherOnly` — listed
            in the order the certificate carries them. A certificate without the
            extension leaves it empty.
          example:
            - digitalSignature
            - nonRepudiation
          nullable: true
        link:
          type: string
          description: >-
            Target address of the clickable link drawn over the annotation's
            box.
          example: https://example.com/contracts/2024-114
          nullable: true
        location:
          type: string
          description: >-
            Approximate location derived from the signer's IP address, given as
            country, region and city. Holds `redacted` when the tenant is
            configured to hide this information.
          example: Czechia, Prague, Prague
          nullable: true
        lockRatio:
          type: boolean
          description: >-
            Whether the image applied for the component keeps its aspect ratio
            when a client resizes it.
          nullable: true
        maxCharacters:
          type: integer
          description: >-
            Number of equally wide character cells the annotation's box is
            divided into, each holding a single character.
          example: 20
          nullable: true
        name:
          type: string
          description: >-
            Signer name recorded inside an already-signed file, read out of that
            file when it was uploaded or verified.
          example: John Doe
          nullable: true
        pages:
          oneOf:
            - type: array
              items:
                type: integer
                example: 3
                nullable: true
            - type: integer
              example: 3
              nullable: true
          description: Numbers of the pages the component is rendered on, counted from 1.
          nullable: true
        position:
          allOf:
            - $ref: '#/components/schemas/entityGenericSignFieldPosition'
          description: >-
            Placement of the component on the page, expressed as fractions of
            the page width and height measured from its top-left corner.
          nullable: true
        qcCompliance:
          type: boolean
          description: >-
            Whether the signing certificate carries the eIDAS QcCompliance
            statement, by which its issuer declares it a qualified certificate.
            It is the issuer's own claim, so it carries weight only for a
            certificate that also chains to a trusted list. Left empty, no
            certificate evidence was collected for the component at all — which
            is not the same as `false`, the statement provably being absent.
          nullable: true
        qcSSCD:
          type: boolean
          description: >-
            Whether the signing certificate carries the QcSSCD statement, by
            which its issuer declares the private key to live on a qualified
            signature or seal creation device. As with `qcCompliance` it is the
            issuer's claim, and an empty value means no certificate evidence was
            collected rather than the statement being absent.
          nullable: true
        qcTypes:
          type: array
          items:
            type: string
            nullable: true
          description: >-
            What the signing certificate is qualified for, taken from its QcType
            statement — `esign` for a signature made by a person, `eseal` for a
            seal of a legal entity, `web` for website authentication. A type the
            platform does not know is listed as its bare OID, and a certificate
            without the statement leaves it empty.
          example:
            - esign
          nullable: true
        readOnly:
          type: boolean
          description: >-
            Indicates that the annotation only displays its prefilled text and
            cannot be edited by the recipient.
          nullable: true
        reason:
          type: string
          description: >-
            Reason recorded in the file's signature, composed from the signing
            method and the signer's identity.
          example: Signed securely by John Doe john.doe@example.com
        reconstructed:
          type: boolean
          description: >-
            Marks a component that was not produced by the operation at hand but
            re-derived from the components already recorded on the document, so
            that it is drawn into the regenerated file again without being
            recorded a second time.
          nullable: true
        sealProvider:
          type: string
          description: >-
            Name of the seal provider the seal was made with, as it was named at
            the time. Set on seal components only; `signatureProvider` holds the
            provider's type.
          example: company-qseal
          nullable: true
        serialNumber:
          type: string
          description: >-
            Serial number of the signing certificate, as uppercase hex without
            separators or padding. Its issuer assigns it, so it tells
            certificates apart only among those of that one issuer.
          example: 4DC32DD214A19795A2111484900663142F513989
          nullable: true
        signatureProvider:
          type: string
          description: >-
            Signing provider that produced the signature - for a seal component
            the type of the seal provider. Not set for timestamp components or
            for signatures read out of an already-signed file.
          example: internal
          nullable: true
        signee:
          type: string
          description: >-
            Username of the person the component is attributed to. It differs
            from `actor` when the signature is captured on someone else's
            behalf, such as during in-person signing.
          example: john.doe@example.com
          nullable: true
        signId:
          type: string
          description: >-
            Identifier of the signing operation that produced this component.
            All components created by one operation share it, and it is printed
            into the visual signature so that a signature found in a file can be
            traced back to its document.
          example: 29326ml64lg2tjf8cz2ka7edcmpb3u2m7os5af3r09fquo6sbegzgsyebannd4yz
          nullable: true
        signOnBehalfOf:
          type: string
          description: Username of the person on whose behalf the signature was made.
          example: john.doe@example.com
          nullable: true
        signOnBehalfOfFullname:
          type: string
          description: >-
            Full name of the person the signature was made on behalf of, next to
            their username in `signOnBehalfOf`.
          example: John Doe
          nullable: true
        stampName:
          type: string
          description: >-
            Display name of the applied stamp, copied from the stamp definition.
            Set only for stamp components.
          example: Head office stamp
          nullable: true
        subject:
          type: string
          description: >-
            Distinguished name of the signing certificate's subject. For a
            timestamp component it describes the timestamping authority's
            certificate.
          example: CN=John Doe,O=Example Ltd,C=CZ
          nullable: true
        subtype:
          type: string
          description: >-
            Finer classification of the component within its kind - an
            annotation subtype for an annotation, an image subtype for an image.
            Not set for signature, seal and timestamp components.
          example: annotation_generic
          nullable: true
        text:
          type: string
          description: >-
            Text the annotation renders into the file. For the automatically
            filled annotation subtypes the platform composes it itself.
          example: 'Document validity: '
        trustedBy:
          type: array
          items:
            type: string
            nullable: true
          description: >-
            Trust lists in which the signing certificate's chain was found. An
            empty list means the certificate could not be anchored in any of
            them.
          example:
            - EUTL
          nullable: true
        tsaEnabled:
          type: boolean
          description: >-
            Indicates that a timestamp from a trusted timestamping authority is
            embedded in this signature.
          nullable: true
        tsaProvider:
          type: string
          description: >-
            Distinguished name of the subject of the timestamping authority's
            certificate.
          example: CN=Example TSA,O=Example Trust Services,C=CZ
          nullable: true
        tsaServer:
          type: string
          description: >-
            Name of the configured TSA server the timestamp of this component
            was requested from, as the server was named at the time. Empty when
            the component carries no timestamp obtained through Circularo.
          nullable: true
        userRoleId:
          type: integer
          description: >-
            Identifier of the recipient role the field behind this component
            belonged to. It matches the `userRoleId` of the sign entity that
            defines that role.
          nullable: true
        userRoleName:
          type: string
          description: >-
            Handle of that recipient role. The sign entity defining the role
            holds the authoritative name; this copy serves as a fallback.
          example: Recipient 1
          nullable: true
        validityFrom:
          type: string
          format: date-time
          description: >-
            Start of the validity period of the signing certificate. For a
            timestamp component it refers to the timestamping authority's
            certificate.
          nullable: true
        validityTo:
          type: string
          format: date-time
          description: >-
            End of the validity period of the signing certificate. For a
            timestamp component it refers to the timestamping authority's
            certificate.
          nullable: true
    entityDocumentsSignField:
      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
        cancelled:
          type: boolean
          description: >-
            Indicates that the field is no longer expected to be filled, because
            the recipient it was assigned to was removed from the document.
          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
        filled:
          type: boolean
          description: >-
            Indicates that the field has already been filled, whether by a
            signature, an annotation or an image.
          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
        shareId:
          type: array
          items:
            type: string
            nullable: true
          description: >-
            Identifiers of the shares whose recipients are expected to fill this
            field. Empty for a field that is not bound to any share.
          example:
            - sd0oAvfpB4k0yDf787x4
          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
    entityDocumentsSourceTemplate:
      type: object
      properties:
        id:
          type: string
          description: >-
            Identifier of the template. It keeps naming the template after the
            template is deleted.
          example: cba71ea5-9a68-431a-a5c2-6d9932792ec7
          nullable: true
        name:
          type: string
          description: >-
            Name the template had when the document was created; a later rename
            of the template does not change it.
          example: NDA for new suppliers
          nullable: true
    entityDocumentsSubmittedFile:
      type: object
      properties:
        additionalInfo:
          type: string
          description: >-
            Stringified object with additional information extracted from the
            file, such as its PDF version, XMP metadata and PDF/A compliance
            (PDF only).
          nullable: true
        content:
          type: string
          description: >-
            Identifier of the stored file in the binary storage; the bytes
            themselves are fetched separately.
          example: as0ia4jdqecwq0u5s1omd9krs4u244ic2n2545kyhyat9imkwyg1bgec16r94tth
          nullable: true
        fileExtension:
          type: string
          description: Extension of the file name, lowercase and without the leading dot.
          example: pdf
          nullable: true
        fileType:
          type: string
          description: >-
            Coarse category of the file derived from its extension, for example
            `pdf`, `word`, `image` or `other`.
          example: pdf
          nullable: true
        hasPassword:
          type: boolean
          description: >-
            Indicates that the file is protected by a password of its own, so
            its contents could not be inspected (PDF only).
          nullable: true
        mimetype:
          type: string
          description: MIME type of the file.
          example: >-
            application/vnd.openxmlformats-officedocument.wordprocessingml.document
          nullable: true
        name:
          type: string
          description: Display name of the file, normally including its extension.
          example: IDCardFront.pdf
          nullable: true
        pages:
          type: integer
          description: Number of pages in the file (PDF only).
          example: 8
          nullable: true
        pdfPreview:
          allOf:
            - $ref: '#/components/schemas/entityDocumentsPdfPreview'
          description: >-
            PDF preview of this submitted file, generated when it is an office
            format so that it can be viewed without an online editor. It mirrors
            the preview kept on the stored file, and is empty for any other
            format and for a file not processed yet.
          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.
          nullable: true
        size:
          type: integer
          description: Size of the file in bytes.
          example: 522481
          nullable: true
        timestamp:
          type: string
          format: date-time
          description: >-
            Time at which the file was uploaded to the binary storage, which may
            precede its submission to the document.
          nullable: true
        user:
          type: string
          description: Username of the user who uploaded the file.
          example: john.doe@example.com
          nullable: true
    entityDocumentsSubscriptions:
      type: object
      properties:
        comment:
          type: array
          items:
            type: string
          description: Usernames notified when a comment is added to the document.
          nullable: true
        update:
          type: array
          items:
            type: string
          description: Usernames notified when the document itself is changed.
          nullable: true
        workflowChange:
          type: array
          items:
            type: string
          description: >-
            Usernames notified when the document's workflow moves to another
            state.
          nullable: true
        workflowFinished:
          type: array
          items:
            type: string
          description: Usernames notified when the document's workflow reaches its end.
          nullable: true
    responseGenericTags:
      type: object
      properties:
        global:
          type: array
          items:
            type: string
          description: >-
            Tags shared by everyone in the tenant. Present only for a caller
            holding the `tags_public_view` right.
        user:
          type: array
          items:
            type: string
          description: >-
            Tags the caller keeps privately, invisible to other users. Present
            only for a caller holding the `tags_private` right.
    responseDocumentsTerm:
      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.
          nullable: true
        reminders:
          type: array
          items:
            $ref: '#/components/schemas/responseDocumentsTermReminder'
          description: >-
            Reminders sent ahead of the document's expiration date, each with
            the state it is in for the current one.
        renewal:
          allOf:
            - $ref: '#/components/schemas/responseDocumentsTermRenewal'
          description: >-
            How the contract is renewed once it expires, with the renewals
            carried out so far; `null` when it is not renewed.
          nullable: true
    entityGenericUser:
      type: object
      properties:
        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 e-mail address.
          enum:
            - null
            - internal
            - external
          example: internal
          nullable: true
    internalDocumentsWorkflow:
      type: object
      properties:
        actions:
          type: array
          items:
            oneOf:
              - type: object
                properties:
                  allowedAddressingGroups:
                    type: boolean
                    description: >-
                      Whether groups may be addressed as recipients of the
                      action.
                    example: true
                    default: true
                  allowedAddressingUsers:
                    type: boolean
                    description: >-
                      Whether individual accounts may be addressed as recipients
                      of the action.
                    example: true
                    default: true
                  allowedGroups:
                    type: array
                    items:
                      type: string
                    description: >-
                      Names of the groups kept with the action as the ones it is
                      meant to be addressed to. Nothing in the backend acts on
                      their value.
                    example:
                      - Approvers
                    nullable: true
                  allowedUsers:
                    type: array
                    items:
                      type: string
                    description: >-
                      Usernames kept with the action as the accounts it is meant
                      to be addressed to. Nothing in the backend acts on their
                      value.
                    example:
                      - john.doe@example.com
                    nullable: true
                  allowExternal:
                    type: boolean
                    description: >-
                      Whether the action may be addressed to people outside the
                      system (contacts and plain e-mail addresses) and not only
                      to accounts.
                    nullable: true
                  archive:
                    type: boolean
                    description: >-
                      Whether performing the action archives the document and
                      clears the recipients it was waiting for.
                    nullable: true
                  autoSign:
                    type: boolean
                    description: >-
                      Whether performing the action signs the document on the
                      caller's behalf, filling the sign fields reserved for
                      automatic signing instead of taking signature data from
                      the caller.
                    nullable: true
                  commentForbidden:
                    type: boolean
                    description: >-
                      Whether the action is meant to be performed without a
                      comment.
                    nullable: true
                  commentRequired:
                    type: boolean
                    description: >-
                      Whether the action can only be performed together with a
                      comment.
                    nullable: true
                  composeTemplate:
                    type: array
                    items:
                      type: string
                      nullable: true
                    description: >-
                      Metadata definitions offered in the composer the action
                      opens.
                    nullable: true
                  following:
                    type: string
                    description: >-
                      Free-form label stored on the action. Nothing in the
                      backend acts on its value.
                    nullable: true
                  groupFilter:
                    type: string
                    description: >-
                      Script evaluated against the document to narrow the groups
                      offered as recipients of the action.
                    nullable: true
                  id:
                    type: integer
                    description: >-
                      Identifier of the action, unique among the actions and
                      requests of its workflow definition.
                    example: 5
                    nullable: true
                  important:
                    type: boolean
                    description: >-
                      Whether the action is offered as a button of its own
                      rather than among the remaining actions.
                    example: false
                    default: false
                  isInitial:
                    type: boolean
                    description: >-
                      Marks the action as one that can be taken right after the
                      document has been created. Nothing in the backend acts on
                      its value.
                    nullable: true
                  multipleReceivers:
                    type: boolean
                    description: >-
                      Whether the action may be addressed to more than one
                      recipient at once.
                    nullable: true
                  multipleSignFieldUsers:
                    type: boolean
                    description: >-
                      Whether a sign field placed together with the action may
                      be assigned to more than one recipient.
                    nullable: true
                  name:
                    type: string
                    description: >-
                      Name of the action, recorded on the workflow history entry
                      it creates on the document.
                    example: create
                    nullable: true
                  nextState:
                    type: integer
                    description: >-
                      Workflow state the document moves to once the action is
                      performed.
                    example: 1
                    nullable: true
                  order:
                    type: integer
                    description: >-
                      Position of the action among the actions offered for the
                      same state.
                    nullable: true
                  predefinedReceiver:
                    type: boolean
                    description: >-
                      Marks the action as carrying a recipient of its own in
                      `receiver`, so that none has to be chosen when it is
                      performed. Nothing in the backend acts on its value.
                    nullable: true
                  receiver:
                    type: string
                    description: >-
                      Recipient fixed on the action itself. Nothing in the
                      backend acts on its value; the recipients an action is
                      actually addressed to travel with the request that
                      performs it.
                    example: john.doe@example.com
                    nullable: true
                  recipient:
                    type: boolean
                    description: >-
                      Whether the action has to name a recipient; an action that
                      passes the document on to somebody does, one that closes
                      it does not.
                    nullable: true
                  revertSignatures:
                    type: boolean
                    description: >-
                      Whether performing the action discards the signatures
                      already on the document, restoring the file from its
                      current revision.
                    nullable: true
                  rights:
                    type: string
                    description: >-
                      Workflow right the caller has to hold to use the action.
                      Left empty, the action is open to every caller.
                    nullable: true
                  send:
                    type: boolean
                    description: >-
                      Whether performing the action counts as sending the
                      document: the history entry it creates is marked as sent
                      and the record of who has already read the document is
                      cleared.
                    nullable: true
                  sentiment:
                    type: string
                    description: >-
                      Tone the action is offered in, so that a destructive one
                      reads differently from an approving one. It is carried for
                      the interface to present; nothing in the backend acts on
                      its value.
                    enum:
                      - positive
                      - negative
                      - neutral
                      - hidden
                    example: neutral
                    default: neutral
                  signAction:
                    type: boolean
                    description: >-
                      Whether signature data has to be supplied together with
                      the action.
                    nullable: true
                  signFields:
                    type: boolean
                    description: >-
                      Whether sign fields may be placed on the document as part
                      of the action.
                    nullable: true
                  stateId:
                    type: integer
                    description: >-
                      Workflow state the document has to be in for the action to
                      be offered.
                    example: 0
                    nullable: true
                  transitionAction:
                    type: string
                    description: >-
                      JavaScript source run when the action is performed. Its
                      result can override the target state and the action's
                      archiving, sending, automatic signing and signature
                      reverting behaviour.
                  type:
                    type: string
                    description: Kind of the entry; a workflow action carries `action`.
                    example: action
                  userFilter:
                    type: string
                    description: >-
                      Script evaluated against the document to narrow the
                      individual accounts offered as recipients of the action.
                    nullable: true
              - type: object
                properties:
                  allowedAddressingGroups:
                    type: boolean
                    description: >-
                      Whether groups may be addressed as recipients of the
                      request.
                    example: true
                    default: true
                  allowedAddressingUsers:
                    type: boolean
                    description: >-
                      Whether individual accounts may be addressed as recipients
                      of the request.
                    example: true
                    default: true
                  allowedGroups:
                    type: array
                    items:
                      type: string
                    description: >-
                      Names of the groups kept with the request as the ones it
                      is meant to be addressed to. Nothing in the backend acts
                      on their value.
                    example:
                      - Approvers
                    nullable: true
                  allowedUsers:
                    type: array
                    items:
                      type: string
                    description: >-
                      Usernames kept with the request as the accounts it is
                      meant to be addressed to. Nothing in the backend acts on
                      their value.
                    example:
                      - john.doe@example.com
                    nullable: true
                  allowExternal:
                    type: boolean
                    description: >-
                      Whether the request may be addressed to people outside the
                      system (contacts and plain e-mail addresses) and not only
                      to accounts.
                    nullable: true
                  autoSign:
                    type: boolean
                    description: >-
                      Whether raising the request signs the document on the
                      caller's behalf, filling the sign fields reserved for
                      automatic signing instead of taking signature data from
                      the caller.
                    nullable: true
                  commentForbidden:
                    type: boolean
                    description: >-
                      Whether the request is meant to be raised without a
                      comment.
                    nullable: true
                  commentRequired:
                    type: boolean
                    description: >-
                      Whether the request can only be raised together with a
                      comment.
                    nullable: true
                  composeTemplate:
                    type: array
                    items:
                      type: string
                      nullable: true
                    description: >-
                      Metadata definitions offered in the composer the request
                      opens.
                    nullable: true
                  groupFilter:
                    type: string
                    description: >-
                      Script evaluated against the document to narrow the groups
                      offered as recipients of the request.
                    nullable: true
                  id:
                    type: integer
                    description: >-
                      Identifier of the request, unique among the actions and
                      requests of its workflow definition.
                    example: 5
                    nullable: true
                  important:
                    type: boolean
                    description: >-
                      Whether the request is offered as a button of its own
                      rather than among the remaining actions.
                    example: false
                    default: false
                  isInitial:
                    type: boolean
                    description: >-
                      Marks the request as one that can be raised right after
                      the document has been created. Nothing in the backend acts
                      on its value.
                    nullable: true
                  multipleReceivers:
                    type: boolean
                    description: >-
                      Whether the request may be addressed to more than one
                      recipient at once.
                    nullable: true
                  multipleSignFieldUsers:
                    type: boolean
                    description: >-
                      Whether a sign field placed together with the request may
                      be assigned to more than one recipient.
                    nullable: true
                  name:
                    type: string
                    description: >-
                      Name of the request, recorded on the workflow history
                      entry it creates on the document.
                    example: request_sign
                    nullable: true
                  nextState:
                    type: integer
                    description: >-
                      Workflow state the document moves to once the request is
                      raised. Left unset, the document stays where it is.
                    nullable: true
                  order:
                    type: integer
                    description: >-
                      Position of the request among the actions and requests
                      offered for the same state.
                    nullable: true
                  predefinedReceiver:
                    type: boolean
                    description: >-
                      Marks the request as carrying a recipient of its own in
                      `receiver`, so that none has to be chosen when it is
                      raised. Nothing in the backend acts on its value.
                    nullable: true
                  receiver:
                    type: string
                    description: >-
                      Recipient fixed on the request itself. Nothing in the
                      backend acts on its value; the recipients a request is
                      actually addressed to travel with the request that raises
                      it.
                    example: john.doe@example.com
                    nullable: true
                  recipient:
                    type: boolean
                    description: >-
                      Whether the request has to name the recipient it is
                      addressed to.
                    nullable: true
                  resolvedBy:
                    type: integer
                    description: >-
                      Identifier of the action that answers the request; the
                      workflow right of that action is what a user needs in
                      order to resolve it.
                    nullable: true
                  revertSignatures:
                    type: boolean
                    description: >-
                      Whether raising the request discards the signatures
                      already on the document, restoring the file from its
                      current revision.
                    nullable: true
                  rework:
                    type: boolean
                    description: >-
                      Whether the request asks for rework: while it is the
                      document's latest workflow event, the document can be sent
                      back to the caller who raised it.
                    example: false
                    default: false
                  rights:
                    type: string
                    description: >-
                      Workflow right the caller has to hold to use the request.
                      Left empty, the request is open to every caller.
                    nullable: true
                  sentiment:
                    type: string
                    description: >-
                      Tone the request is offered in, so that a destructive one
                      reads differently from an approving one. It is carried for
                      the interface to present; nothing in the backend acts on
                      its value.
                    enum:
                      - positive
                      - negative
                      - neutral
                      - hidden
                    example: neutral
                    default: neutral
                  sign:
                    type: boolean
                    description: >-
                      Marks the request as a request for a signature. Nothing in
                      the backend acts on its value.
                    nullable: true
                  signAction:
                    type: boolean
                    description: >-
                      Whether signature data has to be supplied together with
                      the request.
                    nullable: true
                  signFields:
                    type: boolean
                    description: >-
                      Whether sign fields may be placed on the document as part
                      of the request.
                    nullable: true
                  stateId:
                    type: integer
                    description: >-
                      Workflow state the document has to be in for the request
                      to be offered.
                    example: 2
                    nullable: true
                  transitionAction:
                    type: string
                    description: >-
                      JavaScript source run when the request is raised. Its
                      result can override the target state and the request's
                      sending, automatic signing and signature reverting
                      behaviour.
                  type:
                    type: string
                    description: Kind of the entry; a workflow request carries `request`.
                    example: request
                  userFilter:
                    type: string
                    description: >-
                      Script evaluated against the document to narrow the
                      individual accounts offered as recipients of the request.
                    nullable: true
          description: >-
            Actions and requests of the workflow definition that can be started
            from the state the workflow currently sits in. For an internal
            caller they are further narrowed to the ones the caller holds
            workflow rights for.
        alreadySigned:
          type: array
          items:
            $ref: '#/components/schemas/entityDocumentsWorkflowShare'
          description: >-
            Recipients of the running transaction who have already completed the
            action asked of them. It is emptied once the transaction ends, so it
            describes a transaction in progress only.
          nullable: true
        archived:
          type: boolean
          description: >-
            Whether the workflow has been closed. It is set by executing an
            action marked as archiving in the workflow definition, and by
            cancelling the workflow.
          nullable: true
        cancelStateId:
          type: integer
          description: Workflow state a document moves to when its workflow is cancelled.
          nullable: true
        commentOnlyVersions:
          type: array
          items:
            type: integer
          description: >-
            Document versions that were followed by a write changing nothing but
            comment data in place (an edit, a deletion or a reaction). Lets a
            concurrent writer tell such a harmless version bump from an
            unexplained one. Most recent entries only.
          nullable: true
        currentShareSeen:
          type: array
          items:
            $ref: '#/components/schemas/entityGenericUser'
          description: >-
            Recipients who have opened the document since the current
            transaction was started. It is emptied whenever a new transaction
            begins.
          nullable: true
        group:
          type: array
          items:
            type: string
            nullable: true
          description: >-
            Groups the workflow is currently assigned to. Their members may
            execute the workflow's actions on the document and find it in their
            inbox.
          nullable: true
        history:
          type: array
          items:
            $ref: '#/components/schemas/entityDocumentsWorkflowHistory'
          description: >-
            Append-only record of everything that happened to the document,
            newest entry first. It is what the audit trail is rendered from.
          nullable: true
        id:
          type: string
          description: >-
            Identifier of the workflow. It is derived from the document's own id
            and is local to the document, not a standalone record id.
          example: a0d01c9d-f72f-4c57-af11-e26bda19cc590
          nullable: true
        lastAction:
          allOf:
            - $ref: '#/components/schemas/entityDocumentsWorkflowLastAction'
          description: >-
            The workflow definition's entry for the action most recently
            executed on the document, without its transition script.
          nullable: true
        lastRequest:
          allOf:
            - $ref: '#/components/schemas/entityDocumentsWorkflowLastRequest'
          description: >-
            The workflow definition's entry for the most recently raised
            request, without its transition script. It is present only while no
            action has been executed since, so it describes the request still
            outstanding.
          nullable: true
        receivedDate:
          type: string
          format: date-time
          description: >-
            When the document last reached its current assignees - the date of
            the newest history entry marked as sent, or the document's creation
            date when there is none. The inbox is ordered by it.
          nullable: true
        scheduledTransition:
          allOf:
            - $ref: '#/components/schemas/entityDocumentsWorkflowScheduledTransition'
          description: >-
            The workflow action queued to run on the document without anyone
            acting, taken from the current state's definition. It is recomputed
            on every state change and absent for a state that schedules nothing.
          nullable: true
        shareStateName:
          type: string
          description: >-
            State of the transaction running on the document. It is empty while
            no transaction has been started.
          example: inprogress
          nullable: true
        state:
          type: integer
          description: >-
            Identifier of the state the workflow is currently in, as declared by
            the workflow definition.
          example: 1
          nullable: true
        stateName:
          type: string
          description: Name of the state the workflow is currently in.
          example: created
          nullable: true
        timeOfDuration:
          type: integer
          description: >-
            How long the workflow had been running when its most recent action
            was executed, in milliseconds, measured from the oldest history
            entry.
          example: 86400000
          nullable: true
        user:
          type: array
          items:
            $ref: '#/components/schemas/entityGenericUser'
          description: >-
            Users the workflow is currently assigned to. They may execute the
            workflow's actions on the document and find it in their inbox.
          nullable: true
        waitingFor:
          type: array
          items:
            $ref: '#/components/schemas/entityDocumentsWorkflowShare'
          description: >-
            Recipients of the running transaction who still have to complete the
            action asked of them. It is emptied once the transaction ends, so it
            describes a transaction in progress only.
          nullable: true
        workflowType:
          type: string
          description: Name of the workflow definition driving this workflow.
          example: wf_archive
          nullable: true
    responseDocumentsRights:
      type: object
      properties:
        editGroups:
          type: array
          items:
            type: string
          description: >-
            Names of the groups explicitly allowed to edit the document or
            folder. Edit access implies read access.
          nullable: true
        editUsers:
          type: array
          items:
            type: string
            pattern: ^[A-Za-z0-9.@_+-]+$
            example: john.doe+member@example.com
            nullable: true
          description: >-
            Usernames explicitly allowed to edit the document or folder. Edit
            access implies read access.
        private:
          type: boolean
          description: >-
            Whether the document or folder is confined to the users and groups
            listed here instead of being reachable through the general access
            rights as well.
        readGroups:
          type: array
          items:
            type: string
          description: >-
            Names of the groups explicitly allowed to read the document or
            folder.
          nullable: true
        readUsers:
          type: array
          items:
            type: string
            pattern: ^[A-Za-z0-9.@_+-]+$
            example: john.doe+member@example.com
            nullable: true
          description: Usernames explicitly allowed to read the document or folder.
    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
    entityDocumentsPdfPreview:
      type: object
      properties:
        content:
          type: string
          description: >-
            Identifier of the PDF preview in the binary storage, set once the
            preview is ready. The preview is a separate stored file and is
            downloaded like any other file.
          example: p7kd2m4s9xq1v8b3n6c0z5w2e7r4t1y9u3i6o8a2s5d7f0g4h1j3k6l9z2x5c8v0b4
          nullable: true
        failureReason:
          type: string
          description: >-
            Why the last attempt to generate the preview failed; empty unless it
            failed.


            - `conversion_error`: The converter could not read the file, for
            example because it is damaged or its content does not match its
            type.

            - `file_too_large`: The file is larger than the biggest file a PDF
            preview is generated for.

            - `service_error`: The conversion service failed or could not be
            reached.

            - `timeout`: The conversion did not finish in time.
          enum:
            - conversion_error
            - file_too_large
            - service_error
            - timeout
            - null
          nullable: true
        status:
          type: string
          description: >-
            Where generating the preview stands.


            - `failed_irrecoverable`: The file cannot be turned into a PDF
            preview - its content was rejected or it is too large - and it is
            not tried again.

            - `failed_recoverable`: The last attempt failed for a reason that
            may pass, such as a timeout or an unavailable conversion service.
            The next request for the preview tries again once the retry cooldown
            has passed.

            - `finished`: The PDF preview is ready and `content` identifies it.

            - `in_progress`: The PDF preview is being generated.
          enum:
            - failed_irrecoverable
            - failed_recoverable
            - finished
            - in_progress
            - null
          nullable: true
        statusDate:
          type: string
          format: date-time
          description: >-
            When the preview last changed its status - when generating it
            started, finished or failed.
          nullable: true
    responseGenericFoldersFolder:
      type: object
      properties:
        accessible:
          type: boolean
          description: >-
            Whether this placement can still be reached in its tree. It is
            turned off for every record sitting under a folder that was moved to
            the trash, and such records are left out of folder listings and
            searches.
          nullable: true
        level:
          type: integer
          description: >-
            Depth of this placement in its tree, counted from zero for a record
            sitting directly in the root.
          nullable: true
        name:
          type: string
          description: >-
            Title of the folder that directly contains the item - the one named
            by `parentFolderId`. Absent for an item sitting in the root of the
            tree.
        parentFolderId:
          type: string
          description: >-
            Identifier of the folder the record sits in directly. It is `null`
            when the record sits in the root of the tree.
          example: 97cfb9de-92dd-413a-b5e7-175eff7506d6
          nullable: true
        path:
          type: array
          items:
            type: object
            properties:
              folderId:
                type: string
                description: Identifier of the folder on the path.
                example: 97cfb9de-92dd-413a-b5e7-175eff7506d6
                nullable: true
              level:
                type: integer
                description: >-
                  Depth of that folder in the tree, counted from zero for a
                  folder sitting directly in the root.
                nullable: true
              name:
                type: string
                description: Title of the folder named by `folderId`.
            nullable: true
          description: >-
            Chain of folders leading from the root of the tree down to the
            folder that directly contains the item.
        username:
          type: string
          description: >-
            Owner of the tree this placement belongs to - a username for that
            user's own tree, or the shared pseudo-user for the tree shared
            across the tenant. The same record can be filed in several trees at
            once, once per entry.
          example: john.doe@example.com
          nullable: true
    entityDocumentsPdfFileMerge:
      type: object
      properties:
        end:
          type: integer
          description: >-
            Number of the last page of the merged main file occupied by this
            source file.
          example: 12
          nullable: true
        hash:
          type: string
          description: >-
            Identifier of the source file that was merged into the main file.
            The same value appears as the `content` of the matching attachment
            record.
          example: a219a47b4f5b1xv726cfm36l8k1hkxzwmj5mszvfq6szoambdvc44v6i8hrhntv0
          nullable: true
        start:
          type: integer
          description: >-
            Number of the first page of the merged main file occupied by this
            source file.
          example: 1
          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
    responseDocumentsTermReminder:
      type: object
      properties:
        nextReminderOn:
          type: string
          format: date-time
          description: >-
            Moment the reminder fires for the current expiration date; `null`
            while the document has no expiration date.
          example: '2026-11-30T08:00:00.000Z'
          nullable: true
        notifyOwner:
          type: boolean
          description: >-
            Whether the reminder also goes to the document's owner, whoever that
            is at the moment it fires.
          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` - counted on the
            calendar of `timeZone`. Left empty, the reminder fires on the
            expiration day itself.
          example: 30d
          nullable: true
        recipients:
          type: array
          items:
            type: string
          maxItems: 100
          description: >-
            Usernames of the users the reminder is sent to, next to the
            document's owner when `notifyOwner` is set. A recipient who has been
            deactivated or deleted, or has left the owner's organization, by the
            time the reminder fires is replaced by the owner for good.
          example:
            - jane.doe@example.com
          nullable: true
        sentOn:
          type: string
          format: date-time
          description: >-
            When the reminder went out for the current expiration date; `null`
            while it has not.
          example: '2026-11-30T08:00:07.412Z'
          nullable: true
        state:
          type: string
          description: >-
            Where the reminder stands for the current expiration date.


            - `scheduled`: Waiting for the moment it fires.

            - `sent`: Already sent for the current expiration date.

            - `error`: Its moment had already gone by when it was armed, so it
            is not sent for the current expiration date.

            - `dormant`: The document has no expiration date, so the reminder
            has no moment to fire at.
          enum:
            - scheduled
            - sent
            - error
            - dormant
          example: scheduled
        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, read in `timeZone`. A
            reminder stored without one fires at `09:00`.
          example: '09:00'
          nullable: true
        timeZone:
          type: string
          maxLength: 64
          description: >-
            Time zone the reminder's day and time are read in - the zone of the
            user who configured the reminder, kept for as long as the reminder
            stays unchanged. The reminder shows its dates in this zone as well.
          example: Europe/Prague
          nullable: true
    responseDocumentsTermRenewal:
      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. Left empty, the renewals are
            limited only by their number.
          example: '2030-12-31T00:00:00.000Z'
          nullable: true
        lastRenewedOn:
          type: string
          format: date-time
          description: >-
            When the latest automatic renewal was carried out; `null` before the
            first one.
          example: '2027-01-01T00:15:03.118Z'
          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.
          nullable: true
        noticeDueOn:
          type: string
          format: date-time
          description: >-
            Last day the notice can still be given - the expiration day minus
            `noticePeriod` on the calendar of the term's time zone, as the start
            of that day there. Worked out by the server whenever the expiration
            date, the time zone or the renewal changes; `null` without an
            expiration date or a notice period, and once an automatic renewal
            has no renewal left.
          example: '2026-09-30T00:00:00.000Z'
          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. It is counted back from the expiration date on the
            calendar of the term's time zone, and nothing acts on it - the
            automatic renewal happens regardless.
          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`. It is added on the
            calendar of the term's time zone, and a manual renewal keeps it for
            reference only.
          example: 1y
          nullable: true
        renewedCount:
          type: integer
          minimum: 0
          description: How many times the contract has been renewed automatically so far.
          nullable: true
        type:
          type: string
          description: >-
            How the contract is renewed.


            - `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
    entityDocumentsWorkflowShare:
      type: object
      properties:
        action:
          type: string
          description: >-
            What the recipient is asked to do - the share purpose recorded when
            the participation was created. It is written once and is not
            rewritten as the recipient acts.
          example: sign
          nullable: true
        customActionName:
          type: string
          description: >-
            Free-form label copied from the share record. Nothing in the backend
            acts on its value.
          nullable: true
        hasTurn:
          type: boolean
          description: >-
            Whether it is this recipient's turn to act. In a parallel
            transaction every recipient is on turn from the start; in a
            sequential one only the lowest `order` still pending is.
          nullable: true
        hasTurnSince:
          type: string
          format: date-time
          description: >-
            When this recipient's turn started. The durations reported for the
            recipient are measured from it.
          nullable: true
        isMandatory:
          type: boolean
          description: >-
            Whether the transaction depends on this recipient: when a mandatory
            recipient rejects or is otherwise removed, the whole transaction
            ends instead of carrying on without them.
          nullable: true
        order:
          type: integer
          description: >-
            The recipient's position in a sequential transaction. Recipients
            sharing one value act together, and the lowest value still pending
            is the one on turn.
          nullable: true
        quorum:
          type: integer
          description: >-
            How many recipients of the same `order` have to complete the action
            before the turn moves on; the remaining ones are then no longer
            needed. Recipients of one order carry the same value.
          nullable: true
        shareId:
          type: string
          description: >-
            Identifier of the share record this participation belongs to. It is
            absent for the document owner's own signature, which involves no
            share.
          example: sd0oAvfpB4k0yDf787x4
          nullable: true
        user:
          allOf:
            - $ref: '#/components/schemas/entityGenericUser'
          description: >-
            The recipient - an internal user, or an external one identified by
            their email address.
          nullable: true
    entityDocumentsWorkflowHistory:
      type: object
      properties:
        action:
          type: integer
          description: >-
            Numeric identifier of the recorded event: a negative id for one of
            the platform's built-in events, or the action's own id taken from
            the document's workflow definition.
          example: -17
          nullable: true
        comment:
          type: string
          description: Free-text comment the actor attached to the action.
          nullable: true
        commentAnchor:
          allOf:
            - $ref: '#/components/schemas/entityDocumentsWorkflowHistoryAnchor'
          description: >-
            On a root comment, the place on a page of the main file the comment
            points at. Absent on a comment written without one. When the main
            file's content is replaced, it follows its page to wherever the new
            main file holds it - when the new main file is, or is merged from,
            the previous main file or one of the files merged into it - and is
            dropped otherwise, as the page it pointed at may no longer exist.
          nullable: true
        commentAttachment:
          type: string
          description: >-
            Identifier of the file the comment carries - a hand drawing rendered
            as an image. The file is kept on the document as a hidden entry of
            its files and is downloaded by this identifier.
          example: as0ia4jdqecwq0u5s1omd9krs4u244ic2n2545kyhyat9imkwyg1bgec16r94tth
          nullable: true
        commentDeleted:
          type: boolean
          description: >-
            Set once the comment's author deleted it. The record is kept, its
            text is cleared and its reactions are dropped; the original text
            survives only in the audit log.
          nullable: true
        commentLastEditedOn:
          type: string
          format: date-time
          description: >-
            When the comment was last edited. Absent on a comment that was never
            edited.
          example: '2026-09-22T09:15:30.000Z'
          nullable: true
        commentResolutionChangedBy:
          allOf:
            - $ref: '#/components/schemas/entityGenericUser'
          description: >-
            On a root comment, who last resolved or reopened its thread.
            Together with `commentResolved` it tells which of the two happened
            last. Absent while the thread was never resolved.
          nullable: true
        commentResolutionChangedOn:
          type: string
          format: date-time
          description: When the thread was last resolved or reopened.
          example: '2026-11-04T10:00:00.000Z'
          nullable: true
        commentResolved:
          type: boolean
          description: >-
            On a root comment, whether its thread is resolved. A thread that was
            never resolved is open.
          nullable: true
        connection:
          allOf:
            - $ref: '#/components/schemas/entityDocumentsWorkflowHistoryConnection'
          description: >-
            Network origin the action was performed from. Omitted entirely when
            the actor's settings suppress IP and location.
          nullable: true
        date:
          type: string
          format: date-time
          description: When the event happened.
          nullable: true
        fileChanged:
          type: boolean
          description: >-
            Whether the event replaced the content of a file, as opposed to
            changing only its name or its visibility.
          nullable: true
        fileName:
          type: string
          description: Name of the attachment or submitted file the event concerns.
          example: contract.pdf
          nullable: true
        groupReceiver:
          type: array
          items:
            type: string
          description: Groups the document was handed over to by a workflow transition.
          nullable: true
        hidden:
          type: boolean
          description: >-
            Whether the record is meant to be left out of the history shown to
            users. Technical events that would only clutter it are recorded this
            way.
          nullable: true
        historyId:
          type: string
          description: >-
            Identifier of this history record, unique within the document.
            Addresses a comment for a reply, a reaction, an edit, a deletion or
            a link.
          example: 9f1c4e2ab7d4423d8a6f0c5e3b7d1a92
          nullable: true
        isPublicComment:
          type: boolean
          description: >-
            Whether `comment` is visible to everyone with access to the
            document.
          nullable: true
        mentionedDocuments:
          type: array
          items:
            type: string
          description: Identifiers of the documents mentioned in `comment`.
          nullable: true
        mentionedUsers:
          type: array
          items:
            type: string
          description: Users mentioned in `comment`.
          example:
            - jane.doe@example.com
          nullable: true
        mimetype:
          type: string
          description: MIME type of the attachment or submitted file the event concerns.
          example: application/pdf
          nullable: true
        name:
          type: string
          description: >-
            Name of the recorded event - one of the platform's built-in event
            names, or the name of the action taken from the document's workflow
            definition. It doubles as the translation key the event is labelled
            with.
          example: document_signed
          nullable: true
        newExpiresOn:
          type: string
          format: date-time
          description: >-
            Expiration date the automatic renewals recorded by the event
            extended the document to.
          example: '2027-12-31T00:00:00.000Z'
          nullable: true
        newRevision:
          type: integer
          description: Number of the document revision the event produced.
          nullable: true
        newTitle:
          type: string
          description: The document's title after the event.
          nullable: true
        originalExpiresOn:
          type: string
          format: date-time
          description: >-
            Expiration date the document had before the automatic renewals
            recorded by the event.
          example: '2026-12-31T00:00:00.000Z'
          nullable: true
        originalFileName:
          type: string
          description: Name of the file that was replaced.
          example: contract.docx
          nullable: true
        originalMimetype:
          type: string
          description: MIME type of the file that was replaced.
          example: >-
            application/vnd.openxmlformats-officedocument.wordprocessingml.document
          nullable: true
        originalOwner:
          type: string
          description: The document's owner before the event.
          example: john.doe@example.com
          nullable: true
        originalPublicAttachment:
          type: boolean
          nullable: true
        originalRevision:
          type: integer
          description: Number of the document revision the event started from.
          nullable: true
        originalTitle:
          type: string
          description: The document's title before the event.
          nullable: true
        owner:
          type: string
          description: The document's owner after the event.
          example: jane.doe@example.com
          nullable: true
        publicAttachment:
          type: boolean
          nullable: true
        reactions:
          type: array
          items:
            $ref: '#/components/schemas/entityDocumentsWorkflowHistoryReaction'
          description: Reactions placed on this comment, one entry per reaction type.
          nullable: true
        renewedCount:
          type: integer
          description: >-
            How many automatic renewals the contract had had in total once the
            event's renewals were done. One event covers every renewal a single
            run of the periodic term job caught up on.
          nullable: true
        rights:
          allOf:
            - $ref: '#/components/schemas/entityDocumentsWorkflowHistoryRights'
          description: >-
            The read and edit access the event granted or withdrew on the
            document.
          nullable: true
        sent:
          type: boolean
          description: >-
            Whether the event handed the document over to the recipients in
            `userReceiver` and `groupReceiver`.
          nullable: true
        share:
          type: array
          items:
            $ref: '#/components/schemas/entityDocumentsWorkflowHistoryShare'
          description: >-
            The shares the event concerns, each a snapshot of that recipient's
            participation as it stood at the time.
          nullable: true
        shareActionsCompleted:
          type: boolean
          description: >-
            Whether every action requested by this sharing has since been
            completed.
          nullable: true
        shareActive:
          type: boolean
          description: Whether at least one of the shares recorded here is still live.
          nullable: true
        shareDuration:
          type: integer
          description: >-
            Elapsed time in milliseconds - the whole transaction for an event
            that ended it, otherwise the turn of the single recipient the event
            concerns.
          example: 86400000
          nullable: true
        shareFinal:
          type: boolean
          description: >-
            Whether this rejection, cancellation or expiry ended the whole
            transaction rather than one recipient's participation.
          nullable: true
        shareGroup:
          type: array
          items:
            type: string
          description: >-
            Identifiers of the sharing operations the event relates to; every
            share created by one sharing request carries the same value.
          nullable: true
        shareOwner:
          type: string
          description: The user who sent the document out for the recipients to act on.
          example: john.doe@example.com
          nullable: true
        shareSequential:
          type: boolean
          description: >-
            Whether the recipients are addressed round by round rather than all
            at once.
          nullable: true
        signatureComponents:
          type: array
          items:
            type: string
          description: >-
            The kinds of elements the event placed on the document - a signature
            type, an annotation, an image, a seal or a timestamp.
          example:
            - signature
            - timestamp
          nullable: true
        signId:
          type: string
          description: >-
            Identifier of the signature, seal or timestamp the event produced.
            The document's signature components carry the same value.
          nullable: true
        state:
          type: integer
          description: The workflow state the document was in when the event was recorded.
          nullable: true
        tags:
          type: array
          items:
            type: string
          description: The tags the event added to or removed from the document.
          nullable: true
        threadParentId:
          type: string
          description: >-
            On a reply, the historyId of the root comment it answers. Empty on a
            root comment, so it doubles as the thread identifier. Only one level
            of replies exists.
          example: 9f1c4e2ab7d4423d8a6f0c5e3b7d1a92
          nullable: true
        titleChanged:
          type: boolean
          description: Whether the event changed the document's title.
          nullable: true
        type:
          type: string
          description: >-
            Kind of the recorded event. A built-in event repeats its `name`
            here; an action taken from the document's workflow definition is
            marked there as either an `action` or a `request`.
          example: document_signed
          nullable: true
        user:
          allOf:
            - $ref: '#/components/schemas/entityGenericUser'
          description: >-
            Who performed the action. Left without a name for an event the
            platform recorded on its own.
          nullable: true
        userReceiver:
          type: array
          items:
            $ref: '#/components/schemas/entityGenericUser'
          description: Users the document was handed over to by a workflow transition.
          nullable: true
        version:
          type: integer
          description: >-
            The document's version at the moment the event was recorded.
            Conflict resolution uses it to tell which records were added by a
            concurrent write.
          nullable: true
    entityDocumentsWorkflowLastAction:
      type: object
      properties:
        allowedAddressingGroups:
          type: boolean
          description: Whether groups may be addressed by the action.
          nullable: true
        allowedAddressingUsers:
          type: boolean
          description: Whether individual users may be addressed by the action.
          nullable: true
        allowedGroups:
          type: array
          items:
            type: string
          description: >-
            Names of the groups kept with the action as the ones it is meant to
            be addressed to. Nothing in the backend acts on their value.
          example:
            - Approvers
          nullable: true
        allowedUsers:
          type: array
          items:
            type: string
          description: >-
            Usernames kept with the action as the accounts it is meant to be
            addressed to. Nothing in the backend acts on their value.
          example:
            - john.doe@example.com
          nullable: true
        allowExternal:
          type: boolean
          description: >-
            Whether external recipients, identified by an email address, may be
            addressed by the action.
          nullable: true
        archive:
          type: boolean
          description: >-
            Whether executing the action closes the workflow and marks it
            archived.
          nullable: true
        autoSign:
          type: boolean
          description: >-
            Whether executing the action signs the document automatically, on
            the sign fields already prepared for it.
          nullable: true
        commentForbidden:
          type: boolean
          description: Whether the action must be executed without a comment.
          nullable: true
        commentRequired:
          type: boolean
          description: Whether the action cannot be executed without a comment.
          nullable: true
        composeTemplate:
          type: array
          items:
            type: string
            nullable: true
          description: >-
            Compose templates the action offers, naming the document definitions
            or definition types a new document may be composed from.
          nullable: true
        following:
          type: string
          description: >-
            Free-form label carried by the action. Nothing in the backend acts
            on its value.
          nullable: true
        groupFilter:
          type: string
          description: >-
            Script evaluated by the client to narrow the groups offered as
            recipients of the action.
          nullable: true
        id:
          type: integer
          description: >-
            Identifier of the action, unique among the actions and requests of
            its workflow definition.
          example: 5
          nullable: true
        important:
          type: boolean
          description: >-
            Whether the action is offered as a button of its own instead of
            inside the action menu.
          nullable: true
        isInitial:
          type: boolean
          description: >-
            Marks the action as one that can be taken right after the document
            has been created. Nothing in the backend acts on its value.
          nullable: true
        multipleReceivers:
          type: boolean
          description: Whether the action may be addressed to more than one recipient.
          nullable: true
        multipleSignFieldUsers:
          type: boolean
          description: >-
            Whether the sign fields placed as part of the action may be assigned
            to more than one signer.
          nullable: true
        name:
          type: string
          description: Name of the action.
          example: create
          nullable: true
        nextState:
          type: integer
          description: >-
            Identifier of the state the workflow moves to once the action has
            been executed.
          example: 1
          nullable: true
        order:
          type: integer
          description: Position of the action among those offered for its state.
          nullable: true
        predefinedReceiver:
          type: boolean
          description: >-
            Marks the action as carrying a recipient of its own in `receiver`,
            so that none has to be chosen when it is taken. Nothing in the
            backend acts on its value.
          nullable: true
        receiver:
          type: string
          description: >-
            Recipient fixed on the action itself. Nothing in the backend acts on
            its value; the recipients the action was actually addressed to are
            recorded on the workflow history entry it created.
          example: john.doe@example.com
          nullable: true
        recipient:
          type: boolean
          description: >-
            Whether the action has to be addressed to somebody. An archiving
            action needs no recipient even when this is set.
          nullable: true
        revertSignatures:
          type: boolean
          description: >-
            Whether executing the action strips the signatures from the
            document, putting back the main file of its current revision.
          nullable: true
        rights:
          type: string
          description: >-
            Workflow right a user has to hold to execute the action. An action
            without one is open to everybody.
          nullable: true
        send:
          type: boolean
          description: >-
            Whether the history entry written by the action is marked as sent,
            which makes the document count as newly received by the users it is
            assigned to.
          nullable: true
        sentiment:
          type: string
          description: Sentiment of the action, describing the meaning its outcome carries.
          example: neutral
          nullable: true
        signAction:
          type: boolean
          description: >-
            Whether signature data has to be supplied together with the action,
            so that the executor places their signature themselves.
          nullable: true
        signFields:
          type: boolean
          description: >-
            Whether sign fields may be placed on the document as part of the
            action.
          nullable: true
        stateId:
          type: integer
          description: Identifier of the state the action can be executed from.
          example: 0
          nullable: true
        userFilter:
          type: string
          description: >-
            Script evaluated by the client to narrow the users offered as
            recipients of the action.
          nullable: true
    entityDocumentsWorkflowLastRequest:
      type: object
      properties:
        allowedAddressingGroups:
          type: boolean
          description: Whether groups may be addressed by the request.
          nullable: true
        allowedAddressingUsers:
          type: boolean
          description: Whether individual users may be addressed by the request.
          nullable: true
        allowedGroups:
          type: array
          items:
            type: string
          description: >-
            Names of the groups kept with the request as the ones it is meant to
            be addressed to. Nothing in the backend acts on their value.
          example:
            - Approvers
          nullable: true
        allowedUsers:
          type: array
          items:
            type: string
          description: >-
            Usernames kept with the request as the accounts it is meant to be
            addressed to. Nothing in the backend acts on their value.
          example:
            - john.doe@example.com
          nullable: true
        allowExternal:
          type: boolean
          description: >-
            Whether external recipients, identified by an email address, may be
            addressed by the request.
          nullable: true
        autoSign:
          type: boolean
          description: >-
            Whether raising the request signs the document automatically, on the
            sign fields already prepared for it.
          nullable: true
        commentForbidden:
          type: boolean
          description: Whether the request must be raised without a comment.
          nullable: true
        commentRequired:
          type: boolean
          description: Whether the request cannot be raised without a comment.
          nullable: true
        composeTemplate:
          type: array
          items:
            type: string
            nullable: true
          description: >-
            Compose templates the request offers, naming the document
            definitions or definition types a new document may be composed from.
          nullable: true
        groupFilter:
          type: string
          description: >-
            Script evaluated by the client to narrow the groups offered as
            recipients of the request.
          nullable: true
        id:
          type: integer
          description: >-
            Identifier of the request, unique among the actions and requests of
            its workflow definition.
          example: 5
          nullable: true
        important:
          type: boolean
          description: >-
            Whether the request is offered as a button of its own instead of
            inside the action menu.
          nullable: true
        isInitial:
          type: boolean
          description: >-
            Marks the request as one that can be raised right after the document
            has been created. Nothing in the backend acts on its value.
          nullable: true
        multipleReceivers:
          type: boolean
          description: Whether the request may be addressed to more than one recipient.
          nullable: true
        multipleSignFieldUsers:
          type: boolean
          description: >-
            Whether the sign fields placed as part of the request may be
            assigned to more than one signer.
          nullable: true
        name:
          type: string
          description: Name of the request.
          example: request_approval
          nullable: true
        nextState:
          type: integer
          description: >-
            Identifier of the state the workflow moves to once the request has
            been raised.
          example: 1
          nullable: true
        order:
          type: integer
          description: Position of the request among those offered for its state.
          nullable: true
        predefinedReceiver:
          type: boolean
          description: >-
            Marks the request as carrying a recipient of its own in `receiver`,
            so that none has to be chosen when it is raised. Nothing in the
            backend acts on its value.
          nullable: true
        receiver:
          type: string
          description: >-
            Recipient fixed on the request itself. Nothing in the backend acts
            on its value; the recipients the request was actually addressed to
            are recorded on the workflow history entry it created.
          example: john.doe@example.com
          nullable: true
        recipient:
          type: boolean
          description: Whether raising the request needs somebody to address it to.
          nullable: true
        resolvedBy:
          type: integer
          description: >-
            Identifier of the action that answers the request. The rights of
            that action are what tells the requester who is able to resolve it.
          example: 5
          nullable: true
        revertSignatures:
          type: boolean
          description: >-
            Whether raising the request strips the signatures from the document,
            putting back the main file of its current revision.
          nullable: true
        rework:
          type: boolean
          description: >-
            Whether the request asks for the document to be reworked, which lets
            its author edit it and return it to the requester.
          nullable: true
        rights:
          type: string
          description: >-
            Workflow right a user has to hold to raise the request. A request
            without one is open to everybody.
          nullable: true
        sentiment:
          type: string
          description: >-
            Sentiment of the request, describing the meaning its outcome
            carries.
          example: neutral
          nullable: true
        sign:
          type: boolean
          description: >-
            Marks the request as a request for a signature. Nothing in the
            backend acts on its value.
          nullable: true
        signAction:
          type: boolean
          description: >-
            Whether signature data has to be supplied together with the request,
            so that the executor places their signature themselves.
          nullable: true
        signFields:
          type: boolean
          description: >-
            Whether sign fields may be placed on the document as part of the
            request.
          nullable: true
        stateId:
          type: integer
          description: Identifier of the state the request can be raised from.
          example: 0
          nullable: true
        userFilter:
          type: string
          description: >-
            Script evaluated by the client to narrow the users offered as
            recipients of the request.
          nullable: true
    entityDocumentsWorkflowScheduledTransition:
      type: object
      properties:
        actionId:
          type: integer
          description: >-
            Identifier of the workflow action that is executed once the
            transition becomes due.
          example: 5
          nullable: true
        fieldReference:
          type: string
          description: >-
            Name of the document's own field the due moment is read from, kept
            so that the moment can be refreshed when that field changes. It is
            absent when the state schedules the transition by a fixed delay
            instead.
          example: D_EMPLOYMENT_START_DATE
          nullable: true
        'on':
          type: string
          format: date-time
          description: >-
            Moment at which the transition becomes due. A periodic job executes
            the action once it has passed.
          nullable: true
    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
    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
    entityDocumentsWorkflowHistoryAnchor:
      type: object
      properties:
        page:
          type: integer
          description: >-
            Page of the main file the comment points at, the first page being
            `1`.
          example: 1
          nullable: true
        position:
          allOf:
            - $ref: '#/components/schemas/entityGenericSignFieldPosition'
          description: The rectangle on that page the comment points at.
          nullable: true
    entityDocumentsWorkflowHistoryConnection:
      type: object
      properties:
        ip:
          type: string
          description: IP address the action was performed from.
          example: 192.0.2.15
          nullable: true
        location:
          allOf:
            - $ref: '#/components/schemas/entityGenericLocation'
          description: Approximate geographical location resolved from `ip`.
          nullable: true
    entityDocumentsWorkflowHistoryReaction:
      type: object
      properties:
        type:
          type: string
          description: Reaction type placed on the comment.
          example: like
          nullable: true
        users:
          type: array
          items:
            type: string
          description: Usernames that placed this reaction, in the order they placed it.
          nullable: true
    entityDocumentsWorkflowHistoryRights:
      type: object
      properties:
        edit:
          allOf:
            - $ref: '#/components/schemas/entityDocumentsWorkflowHistoryRightsObject'
          description: >-
            Users and groups whose edit access to the document the change
            granted or withdrew.
        madePrivate:
          type: boolean
          description: Whether the change turned the document from public into private.
          nullable: true
        madePublic:
          type: boolean
          description: Whether the change turned the document from private into public.
          nullable: true
        read:
          allOf:
            - $ref: '#/components/schemas/entityDocumentsWorkflowHistoryRightsObject'
          description: >-
            Users and groups whose read access to the document the change
            granted or withdrew.
    entityDocumentsWorkflowHistoryShare:
      type: object
      properties:
        active:
          type: boolean
          description: >-
            Whether the share is still live. It is cleared once the share is
            cancelled, expires, is replaced by a recipient change, or is no
            longer needed.
          nullable: true
        customActionName:
          type: string
          description: >-
            Label shown to the recipient in place of the standard name of the
            requested action. It only renames the action, it does not change
            what the recipient is asked to do.
          nullable: true
        delegated:
          type: boolean
          description: >-
            Whether the recipient handed the requested action over to somebody
            else.
          nullable: true
        delegatedChainId:
          type: string
          description: >-
            Identifier of the share a delegation chain started from, carried
            unchanged through every further hop.
          example: sd0oAvfpB4k0yDf787x4
          nullable: true
        delegatedFrom:
          type: string
          description: >-
            Identifier of the share this one took over from - the immediately
            preceding hop of a delegation, or the share whose recipient was
            changed.
          example: sd0oAvfpB4k0yDf787x4
          nullable: true
        isMandatory:
          type: boolean
          description: >-
            Whether the recipient must complete their action for the transaction
            to finish successfully.
          nullable: true
        order:
          type: integer
          description: >-
            The recipient's round in a sequential transaction - recipients act
            from the lowest order upwards, and recipients sharing an order act
            together in the same round.
          example: 1
          nullable: true
        originalShareType:
          type: string
          description: >-
            The purpose the share was created with. Unlike `shareType` it is
            never rewritten, so it still names the action originally asked for.
          example: sign
          nullable: true
        phone:
          type: string
          description: Phone number an SMS reminder was sent to.
          example: '+420123456789'
          nullable: true
        positive:
          type: boolean
          description: >-
            Outcome of a yes-or-no action such as an approval or a review - true
            when the recipient decided in favour.
          nullable: true
        quorum:
          type: integer
          description: >-
            How many recipients of the same order must complete their action for
            the transaction to move on.
          example: 2
          nullable: true
        rights:
          type: array
          items:
            type: string
          description: Extra permissions the recipient holds on the shared document.
          example:
            - print
            - metadata
          nullable: true
        shareDuration:
          type: integer
          description: >-
            How long the recipient's turn lasted, in milliseconds, counted from
            the moment their action became awaited.
          example: 86400000
          nullable: true
        shareExpiration:
          type: string
          format: date-time
          description: The deadline for the recipient to complete their action.
          nullable: true
        shareId:
          type: string
          description: Identifier of the share this entry describes.
          example: sd0oAvfpB4k0yDf787x4
          nullable: true
        shareMode:
          type: string
          description: >-
            How the recipient has to prove their identity before the share
            opens, derived from the protection set on it.
          example: sms_protected
          nullable: true
        shareReminded:
          type: boolean
          description: Whether the recipient has been sent a reminder.
          nullable: true
        shareSeen:
          type: boolean
          description: Whether the recipient has opened the shared document.
          nullable: true
        shareStateName:
          type: string
          description: >-
            State of the recipient's participation. Not filled for a share that
            asks for nothing but viewing.
          example: inprogress
          nullable: true
        shareTo:
          allOf:
            - $ref: '#/components/schemas/entityGenericUser'
          description: >-
            Who the entry concerns - the recipient the share was created for,
            or, for an event recorded while the share was being used, the
            account that used it.
          nullable: true
        shareType:
          type: string
          description: >-
            The purpose the share currently serves. Once the recipient has acted
            it is rewritten to `view`, because nothing more is asked of them.
          example: sign
          nullable: true
        signId:
          type: string
          description: >-
            Identifier of the signature the recipient completed their action
            with. The document's signature components carry the same value.
          nullable: true
        updates:
          type: array
          items:
            $ref: '#/components/schemas/entityDocumentsWorkflowHistoryShareUpdate'
          description: >-
            Before and after values of the properties changed when the share was
            edited.
          nullable: true
        verifiedWith:
          allOf:
            - $ref: >-
                #/components/schemas/entityDocumentsWorkflowHistoryShareVerifiedWith
          description: >-
            How the recipient proved their identity for this event. Not filled
            when the actor was signed in to their own account instead of acting
            through a share.
    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
    entityGenericLocation:
      type: object
      properties:
        city:
          type: string
          description: English name of the city.
          example: Pilsen
          nullable: true
        country:
          type: string
          description: English name of the country.
          example: Czech Republic
          nullable: true
        countryCode:
          type: string
          description: Two-letter ISO code of that country.
          example: CZ
          nullable: true
        region:
          type: string
          description: English name of the region or state within the country.
          example: Vysočina
          nullable: true
    entityDocumentsWorkflowHistoryRightsObject:
      type: object
      properties:
        addedGroups:
          type: array
          items:
            type: string
            nullable: true
          description: Groups that gained this level of access to the document.
          nullable: true
        addedUsers:
          type: array
          items:
            type: string
            nullable: true
          description: Users that gained this level of access to the document.
          example:
            - jane.doe@example.com
          nullable: true
        removedGroups:
          type: array
          items:
            type: string
            nullable: true
          description: Groups that lost this level of access to the document.
          nullable: true
        removedUsers:
          type: array
          items:
            type: string
            nullable: true
          description: Users that lost this level of access to the document.
          example:
            - jane.doe@example.com
          nullable: true
    entityDocumentsWorkflowHistoryShareUpdate:
      type: object
      properties:
        hasChanged:
          type: boolean
          description: Whether the edit altered the property's value.
          nullable: true
        name:
          type: string
          description: >-
            Name of the edited share property. `shareMode` is a derived value
            rather than a stored property, and stands for a change of the
            recipient's verification method.
          example: validUntil
          nullable: true
        newValue:
          type: string
          description: The property's value after the edit, rendered as text.
          nullable: true
        oldValue:
          type: string
          description: The property's value before the edit, rendered as text.
          nullable: true
    entityDocumentsWorkflowHistoryShareVerifiedWith:
      type: object
      properties:
        factor:
          type: string
          description: >-
            The method the recipient used to prove their identity before opening
            the share.
          example: sms
          nullable: true
        fullname:
          type: string
          description: >-
            Full name of the verified person as returned by the identity
            provider (Latin script).
          nullable: true
        fullnameAr:
          type: string
          description: >-
            Full name of the verified person as returned by the identity
            provider (Arabic script).
          nullable: true
        kycFactors:
          type: array
          items:
            type: string
            enum:
              - idVerification
              - livenessDetection
              - selfieWithId
          description: >-
            The individual checks the recipient had to pass, for an
            identity-document (KYC) verification.
          nullable: true
        oauthFactors:
          type: array
          items:
            $ref: >-
              #/components/schemas/entityDocumentsWorkflowHistoryShareVerifiedWithOauthFactor
          description: >-
            The profile attributes matched against the identity provider, for a
            sign-in verification.
          nullable: true
        value:
          type: string
          description: >-
            Identifies the concrete factor used - for example the phone number
            or email address a one-time code was sent to, or the identity
            provider that signed the recipient in. Not filled for a password.
          nullable: true
    entityDocumentsWorkflowHistoryShareVerifiedWithOauthFactor:
      type: object
      properties:
        type:
          type: string
          description: >-
            Attribute of the recipient's identity-provider profile that was
            checked.
          enum:
            - email
            - phoneNumber
            - emiratesId
          example: email
        value:
          type: string
          description: Value that attribute was required to match.
          nullable: true
      required:
        - type
  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.