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

# Search users

> `POST /users/search`

Returns a page of the accounts matching the given query - this is what fills a user list or a recipient picker. Contacts from the caller's own address book and whole groups can be searched alongside them in the same request, so one call can offer everything a person might be picked from; each result says which of the three it is.

Whatever the query asks for, the answer is confined to what the caller may see: inside an organization that is its own accounts, outside one it follows from the rights held - every account, the accounts of the caller's visibility groups, or only their own. Accounts that have been deleted never appear, and the secrets kept on an account are stripped from the results whatever the query does.

---

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

**Required user rights:** `view_users`



## OpenAPI

````yaml /api-v1/openapi.json post /users/search
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:
  /users/search:
    post:
      tags:
        - Users
      summary: Search users
      description: >-
        `POST /users/search`


        Returns a page of the accounts matching the given query - this is what
        fills a user list or a recipient picker. Contacts from the caller's own
        address book and whole groups can be searched alongside them in the same
        request, so one call can offer everything a person might be picked from;
        each result says which of the three it is.


        Whatever the query asks for, the answer is confined to what the caller
        may see: inside an organization that is its own accounts, outside one it
        follows from the rights held - every account, the accounts of the
        caller's visibility groups, or only their own. Accounts that have been
        deleted never appear, and the secrets kept on an account are stripped
        from the results whatever the query does.


        ---


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


        **Required user rights:** `view_users`
      operationId: requestUsersPostSearch
      parameters:
        - in: query
          name: photoSize
          description: >-
            Rendition of the profile pictures to point at in the answer - pick
            the smallest one the place they are shown can live with.
          required: false
          schema:
            type: string
            enum:
              - nano
              - small
              - medium
              - big
            example: nano
            default: nano
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/requestUsersPostSearch'
      responses:
        '200':
          description: >-
            Returns the matching accounts, the total number of matches and any
            aggregations asked for.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/responseUsersSearch'
        '400':
          description: >-
            The query is malformed, it names a right no group grants, or it asks
            for something that is not allowed - a forbidden aggregation, or a
            query, sort or aggregation reaching for one of the account's
            secrets.
          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
        '403':
          description: Sessions were asked for by somebody who is not an administrator.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error'
              example:
                status: 403
                type: AUTH:ACCESS_DENIED
                message: Access denied
                requestId: 3fa85f6457174562b3fc2c963f66afa6
      security:
        - Token: []
components:
  schemas:
    requestUsersPostSearch:
      type: object
      properties:
        activeSessions:
          type: boolean
          description: >-
            Whether each account is answered with the sessions it currently has
            open - where it is signed in, and since when.
          example: false
          default: false
        aggregations:
          type: object
          additionalProperties: false
          description: >-
            Elasticsearch aggregations, passed through as sent and answered
            alongside the results. Refused are the kinds that would reach past
            what the caller may see or into what nobody may see: a `global`
            aggregation, a `top_hits` or scripted one, and any that targets one
            of the account's secrets.
        format:
          type: string
          description: >-
            How much of each account comes back: the short form that fills a
            picker, or everything the account holds. Ask for the full form only
            where it is really needed - it is a great deal more data per
            account.
          enum:
            - minimal
            - full
          example: minimal
          default: minimal
        includeContacts:
          type: boolean
          description: >-
            Whether contacts from the caller's address book are searched
            alongside the accounts, so that a recipient picker can offer both.
            Read `recordType` on each result to tell one from the other.
          example: false
          default: false
        includeGroups:
          type: boolean
          description: >-
            Whether groups are searched alongside the accounts, so that one
            request can offer both a person and a whole group as a recipient.
          example: false
          default: false
        lastActivity:
          type: boolean
          description: >-
            Whether each account is answered with the moment it was last used.
            It is worked out from the sessions, which costs an extra lookup, so
            ask for it only where it is shown.
          example: false
          default: false
        rights:
          type: array
          items:
            type: string
          description: >-
            Narrows the answer to accounts that hold every one of these rights -
            the way to find, say, everyone who may administer documents. A right
            that no group grants at all makes the request fail rather than
            answer nothing. Contacts and groups searched alongside the accounts
            are not weighed against it.
          example:
            - view_users
            - update_users
        userQuery:
          allOf:
            - $ref: '#/components/schemas/internalSearchQuery'
          description: >-
            Search query the accounts are matched against. Omit it to page
            through everything you can reach. A query cannot reach the secrets
            kept on an account - the password, the one-time-password seed,
            recovery codes, provider tokens and identity payloads are refused as
            query, sort and aggregation fields alike.
    responseUsersSearch:
      type: object
      properties:
        aggregations:
          type: object
          additionalProperties: false
          description: >-
            Results of the aggregations the search carried, answered as the
            search engine produced them. Absent where the search asked for none.
        results:
          type: array
          items:
            oneOf:
              - $ref: '#/components/schemas/responseUsersNormal'
              - $ref: '#/components/schemas/responseContactsSingle'
              - $ref: '#/components/schemas/responseUsersBasic'
              - $ref: '#/components/schemas/responseGroupsWithRecordType'
          description: >-
            What the search matched, limited to the requested page. Accounts,
            contacts and groups can all appear here, each in the shape its kind
            has - and in the short or the full form, depending on the format the
            search asked for. Read `recordType` to tell them apart.
        total:
          type: integer
          description: Number of results matching the query, regardless of paging.
          example: 42
    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
    internalSearchQuery:
      type: object
      properties:
        from:
          type: integer
          minimum: 0
          description: Starting position in the result set.
          example: 0
          default: 0
          nullable: true
        query:
          allOf:
            - $ref: '#/components/schemas/internalSearchQueryObject'
          description: >-
            Root boolean query the records are matched against. Omit it to match
            all records the caller may see.
        size:
          type: integer
          minimum: 0
          maximum: 100
          description: Maximum number of results to return.
          example: 10
          default: 10
          nullable: true
        sort:
          type: array
          items:
            $ref: '#/components/schemas/internalSearchQuerySort'
          description: >-
            Ordering of the results, applied in the given order. Without it the
            records come back in the search engine's own order.
    responseUsersNormal:
      type: object
      properties:
        activeSessions:
          type: array
          items:
            $ref: '#/components/schemas/responseUsersSessionSingle'
          description: >-
            Sessions the account currently has open. Gathered on demand only, so
            it is absent unless the endpoint was asked for it.
        allowBiometricSignature:
          type: boolean
          description: >-
            Whether the person may capture a signature on a signature pad. It
            says what the client offers them; whether a signature is accepted is
            decided elsewhere.
          example: false
          nullable: true
        authenticationFactors:
          type: array
          items:
            type: string
          description: >-
            Second factors the account has switched on - `sms`, `totp` or
            `email`. Once there is one, signing in asks for it.
          example:
            - totp
          nullable: true
        autoTimezone:
          type: boolean
          description: >-
            Whether the timezone is taken from the browser at every sign-in
            instead of from `timezone`. New accounts start with it on.
          example: true
          nullable: true
        backgroundJobs:
          type: array
          items:
            $ref: '#/components/schemas/entityUsersBackgroundJobs'
          description: >-
            Exports the person has asked for, each with where it has got to and
            the file it produced. They are kept on the account so a finished
            export can be collected later.
          nullable: true
        company:
          type: string
          description: >-
            Employer the person entered in their profile, used to fill a company
            field on a document. It has nothing to do with `organization`.
          example: Example Ltd.
          nullable: true
        config:
          allOf:
            - $ref: '#/components/schemas/entityUsersConfiguration'
          description: >-
            The person's own settings: language, delegation, which notifications
            reach them through which channel, their profile picture, and the
            signature and initials they sign with.
          nullable: true
        createType:
          type: string
          description: >-
            How the account came to exist - created by an administrator
            (`internal`), registered by the person themselves (`register`),
            brought in by a first sign-in through an identity provider (`oauth`,
            `saml`, `loginhub`), or kept in step with an outside directory
            (`scim`). The last one is the load-bearing case: such an account
            refuses changes made through the API.
          example: internal
          nullable: true
        customFields:
          type: object
          additionalProperties:
            type: string
            nullable: true
          description: >-
            Extra profile details the tenant keeps about its people, as plain
            name and value. Which names are expected is a matter of the tenant's
            settings, not of the account.
          example:
            department: Legal
        dateformat:
          type: string
          description: >-
            How the person wants dates written, as a Luxon format pattern. Where
            it is not set, the tenant's own setting applies.
          example: dd/MM/yyyy
          nullable: true
        defaultStamp:
          type: string
          description: >-
            Stamp offered to the person first when they stamp a document. It has
            to be one of their own stamps.
          nullable: true
        disabledIntros:
          type: array
          items:
            type: string
          description: >-
            Guided tours the person has already been through or dismissed. A
            tour is offered only while its name is absent here.
          nullable: true
        filters:
          type: array
          items:
            $ref: '#/components/schemas/responseUsersFilter'
          description: >-
            Searches the person has saved, offered to them as their own entries
            in the navigation.
          nullable: true
        firstActivityOn:
          type: string
          format: date-time
          description: >-
            When the account was first used - the moment its first request came
            in. Recorded once and never touched again.
          nullable: true
        firstDayOfWeek:
          type: integer
          description: >-
            Day the person's weeks start on in a calendar, counted from Monday
            as 1 through to Sunday as 7.
          example: 1
        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
        group:
          type: array
          items:
            type: string
          description: >-
            Groups the account belongs to: its organization, the permission
            profile it is given, the settings that apply to it and any group it
            is seen through. Everything the person is allowed to do is worked
            out from this list, so replacing it replaces their permissions.
          nullable: true
        hasActiveDelegation:
          type: boolean
          description: >-
            Whether the person has their work handed over to somebody else right
            now - a delegate is named and the present moment falls inside the
            period set for it.
          example: false
          nullable: true
        hiddenStorageServices:
          type: array
          items:
            type: string
          description: >-
            External storage services the person has hidden from their own view
            of the application.
          nullable: true
        id:
          type: string
          description: Identifier of the account, which is the username itself.
          example: john.doe@example.com
        identities:
          type: array
          items:
            $ref: '#/components/schemas/responseUsersIdentity'
          description: >-
            External identities linked to the account, which let the person be
            recognised - and sign - as that identity. The data each one carries
            is never answered in full.
        image:
          type: string
          description: >-
            Storage hash of the user's profile picture in the rendition asked
            for by the caller.
          example: as0ia4jdqecwq0u5s1omd9krs4u244ic2n2545kyhyat9imkwyg1bgec16r94tth
          nullable: true
        language:
          type: string
          description: >-
            Language the person has chosen for the application, taken from their
            configuration. It is what anything addressed to them is written in.
          example: en
          nullable: true
        lastActivity:
          type: string
          format: date-time
          description: >-
            When the account was last used. Worked out on demand only, so it is
            absent unless the endpoint was asked for it.
          nullable: true
        lastReleaseAnnouncementSeen:
          type: string
          description: >-
            Version of the release announcement the person has already been
            shown, so that the same one is not offered twice.
          example: 26.1.0
          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
        marketing:
          type: boolean
          description: Whether the person agreed to be sent marketing messages.
          example: false
          nullable: true
        name:
          type: string
          description: >-
            Username the account is known by, and the identifier every endpoint
            takes for it. Usually an e-mail address, and it stays as it is for
            the life of the account.
          example: john.doe@example.com
          nullable: true
        organization:
          type: string
          description: >-
            Organization the account belongs to, named by the identifier of its
            organization group. It also settles which accounts the person can
            see and who may administer them.
          nullable: true
        phone:
          type: string
          description: >-
            Phone number of the person, where a one-time code is sent. It cannot
            be taken away while the account signs in with the SMS factor.
          example: '+420123456789'
          nullable: true
        providers:
          type: array
          items:
            $ref: '#/components/schemas/responseUsersProviders'
          description: Accounts at identity and storage providers connected to this one.
        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
        registeredOn:
          type: string
          format: date-time
          description: When the account was created.
          nullable: true
        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
        status:
          type: string
          description: >-
            State of the account, which decides whether it can be used at all. A
            deleted account is kept only as a record of who acted in the past.


            - `active`: The account is active and can be used.

            - `deleted`: The account has been deleted.

            - `newly_created`: The account has been created but not yet
            activated.

            - `password_change_requested`: The account must set a new password
            before it can be used.

            - `suspended`: The account has been suspended and cannot be used
            until it is reactivated.
          enum:
            - null
            - active
            - deleted
            - newly_created
            - password_change_requested
            - suspended
          nullable: true
        statusChangedOn:
          type: string
          format: date-time
          description: When the state of the account last changed.
          nullable: true
        templateUsage:
          type: array
          items:
            $ref: '#/components/schemas/entityUsersTemplateUsage'
          description: >-
            How often and how recently the person used each template and each
            document definition, kept so that what they reach for most can be
            offered first.
          nullable: true
        termsAccepted:
          type: boolean
          description: Whether the person has accepted the terms and conditions.
          example: true
          nullable: true
        termsAcceptedOn:
          type: string
          format: date-time
          description: >-
            When they accepted them. Signing in compares it with the date the
            current terms took effect, so a newer version has to be accepted
            again.
          nullable: true
        timeformat:
          type: string
          description: >-
            How the person wants times written, as a Luxon format pattern. Where
            it is not set, the tenant's own setting applies.
          example: h:mm a
          nullable: true
        timezone:
          type: string
          description: >-
            Timezone the person's dates and times are shown in, as an IANA name.
            While `autoTimezone` is on it is overwritten from the browser at
            every sign-in.
          example: Europe/Prague
          nullable: true
        version:
          type: integer
          description: >-
            Version the account record currently stands at. It rises with every
            stored change and is what an update sends back to be told that
            somebody else has edited the account in the meantime.
          example: 7
    responseContactsSingle:
      type: object
      properties:
        __addedBy:
          type: string
          description: >-
            User who created the contact. They keep editing rights over it even
            when ownership sits elsewhere.
          example: john.doe@example.com
          nullable: true
        __addedOn:
          type: string
          format: date-time
          description: Time the contact was created.
          nullable: true
        __editable:
          type: boolean
          description: >-
            Whether the calling user may change or delete this contact. Use it
            to decide what to offer instead of guessing from the ownership and
            sharing fields.
          example: true
        __groups:
          type: array
          items:
            type: string
          description: Groups the contact is shared with; every member of them reaches it.
          example:
            - 12e2b52d-01a1-4048-abc5-4bb54c859d52
          nullable: true
        __id:
          type: string
          description: >-
            Identifier of the contact, derived from its owner together with its
            e-mail address. Changing the address therefore gives the contact a
            new identifier.
          example: dff8fe9414afa6668d5107265e87d5d63019ab315b55e27061d53505b
          nullable: true
        __owner:
          type: string
          description: >-
            User the contact belongs to. When empty, the contact is not owned by
            anyone and everybody who can see it may edit it.
          example: john.doe@example.com
          nullable: true
        __shared:
          type: boolean
          description: >-
            Whether the contact reached the calling user through a share rather
            than being their own.
          example: false
        __shareEdit:
          type: boolean
          description: >-
            Whether the users and groups the contact is shared with may change
            it, rather than only read it. It is one setting for all of them.
          nullable: true
        __users:
          type: array
          items:
            type: string
          description: Users the contact is shared with individually.
          example:
            - jane.doe@example.com
          nullable: true
        company:
          type: string
          description: Company the contact belongs to.
          example: Acme Corporation
          nullable: true
        fullname:
          type: string
          description: Name the contact is shown under.
          example: James Baines
          nullable: true
        language:
          type: string
          description: >-
            Language code the contact is addressed in, used for anything sent to
            them.
          example: en
          nullable: true
        location:
          type: string
          description: Free-form place the contact is based in.
          example: Prague
          nullable: true
        mail:
          type: string
          description: >-
            E-mail address of the contact. It identifies the contact within an
            address book, so it is always required and no two contacts of one
            owner may share it.
          example: james.baines@example.com
        phone:
          type: string
          description: Phone number of the contact, in international format.
          example: '+38591234567'
          nullable: true
        photo:
          allOf:
            - $ref: '#/components/schemas/entityContactsPhoto'
          description: >-
            Photo of the contact, held in several sizes. On write, each size
            takes either the hash of an uploaded file or the image inline as
            base64, which is then stored as a file.
          nullable: true
        timezone:
          type: string
          description: IANA time zone the contact lives in.
          example: Europe/Zagreb
          nullable: true
      required:
        - mail
    responseUsersBasic:
      type: object
      properties:
        activeSessions:
          type: array
          items:
            $ref: '#/components/schemas/responseUsersSessionSingle'
          description: >-
            Sessions the account currently has open. Gathered on demand only, so
            it is absent unless the endpoint was asked for it.
        customFields:
          type: object
          additionalProperties:
            type: string
            nullable: true
          description: >-
            Extra profile details the tenant keeps about its people, as plain
            name and value. Which names are expected is a matter of the tenant's
            settings, not of the account.
          example:
            department: Legal
        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
        hasActiveDelegation:
          type: boolean
          description: >-
            Whether the person has their work handed over to somebody else right
            now - a delegate is named and the present moment falls inside the
            period set for it.
          example: false
          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
        language:
          type: string
          description: >-
            Language the person has chosen for the application, taken from their
            configuration. It is what anything addressed to them is written in.
          example: en
          nullable: true
        lastActivity:
          type: string
          format: date-time
          description: >-
            When the account was last used. Worked out on demand only, so it is
            absent unless the endpoint was asked for it.
          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
        name:
          type: string
          description: >-
            Username the account is known by, and the identifier every endpoint
            takes for it. Usually an e-mail address, and it stays as it is for
            the life of the account.
          example: john.doe@example.com
          nullable: true
        phone:
          type: string
          description: >-
            Phone number of the person, where a one-time code is sent. It cannot
            be taken away while the account signs in with the SMS factor.
          example: '+420123456789'
          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
    responseGroupsWithRecordType:
      type: object
      properties:
        acl:
          type: array
          items:
            type: string
          description: >-
            Names of the ACLs the group carries. Their rights are what the group
            grants to its members.
          example:
            - business_user
            - advanced_reports
          nullable: true
        createType:
          type: string
          description: >-
            Origin of the group; `internal` unless the group was provisioned
            externally. A `scim` group is maintained by an identity provider -
            it cannot be deleted through the API and its display name cannot be
            changed there.
          example: scim
          nullable: true
        description:
          type: string
          description: >-
            Free-text note on what the group is for, kept for administrators and
            matched when groups are searched. Unlike `displayName` it is not
            localized.
          example: Users with administrative rights for the organization
          nullable: true
        displayName:
          type: array
          items:
            $ref: '#/components/schemas/entityGroupsDisplayName'
          description: >-
            Localized display names of the group. One entry per language is the
            convention rather than a constraint - nothing rejects a second entry
            for a language, and readers take the first they find.
          example:
            - language: en
              value: Organization Administrators
            - language: es
              value: Administradores de la Organización
          nullable: true
        edition:
          type: string
          description: >-
            Commercial tier of the organization, carried only by a group that is
            one. Changing it rewrites the ACLs of the organization's role
            groups, so it is what decides the reach its members have, and it
            also picks the subscription a new organization starts from. The tier
            has to be configured for the workspace before it can be set.
          example: business
          nullable: true
        name:
          type: string
          description: >-
            Identifier of the group and the id of its record. A group created
            through the platform is given a generated one, while the groups a
            workspace is seeded with carry a readable identifier such as
            `administration` or `everyone`. It is not a label — what a user is
            shown comes from `displayName`.
          example: d0a72e51-728e-4a1d-9a5c-13796122b6f8
          nullable: true
        organization:
          type: string
          description: >-
            Organization the group belongs to, named by that organization's own
            identifier. An organization is itself a group and carries its own
            identifier here; a group that belongs to none leaves it empty. It is
            what keeps the group out of reach of everybody outside that
            organization but a global administrator.
          example: d1b33e20-715e-441d-145c-a0796122b6e0
          nullable: true
        organizationGroups:
          allOf:
            - $ref: '#/components/schemas/entityGroupsOrganizationGroups'
          description: >-
            The organization's role groups, one for each of its roles, carried
            only by a group that is an organization. A user holds a role by
            being a member of the group named here, so this is the whole of the
            wiring.
        recordType:
          type: string
          description: >-
            Marks the record as a group, so a result set mixing groups with
            users and contacts can be told apart. Always `group` here.
          example: group
        subscription:
          type: string
          description: >-
            Subscription assigned to the organization, carried only by a group
            that is one. It is the subscription holding the limits its members
            are measured against, as against the personal one each of them also
            has. Once it is set it cannot be pointed at another subscription.
          example: zufpYZUBmvIz_dFpis9r
          nullable: true
        type:
          type: array
          items:
            type: string
          description: >-
            Roles the group plays in the system - an organization, a carrier of
            shared settings, a content visibility group, an organization role
            group or a feature group. A plain user group carries no type.
          example:
            - organization
          nullable: true
    internalSearchQueryObject:
      type: object
      properties:
        filter:
          type: array
          items:
            type: object
            additionalProperties: false
          description: >-
            Restrictions and nested query objects that all have to match.
            Matches here do not affect the relevance score, which makes this the
            cheaper choice for plain conditions. At least one of `filter`,
            `must`, `should` and `mustNot` must be provided.
        ignore_unmapped:
          type: boolean
          description: >-
            Whether a nested `path` that the index does not map should match
            nothing instead of failing the whole search.
          example: false
          default: false
        minimumShouldMatch:
          type: integer
          minimum: 0
          description: How many entries of `should` a record has to match.
          example: 1
          default: 1
        must:
          type: array
          items:
            type: object
            additionalProperties: false
          description: >-
            Restrictions and nested query objects that all have to match and
            contribute to the relevance score, so a better match is ordered
            higher. At least one of `filter`, `must`, `should` and `mustNot`
            must be provided.
        mustNot:
          type: array
          items:
            type: object
            additionalProperties: false
          description: >-
            Restrictions and nested query objects that must not match. At least
            one of `filter`, `must`, `should` and `mustNot` must be provided.
        path:
          type: string
          description: >-
            Nested field path this query object and everything inside it applies
            to. It belongs on a nested query object only - setting it on the
            root query is rejected.
          example: workflow.history
          nullable: true
        should:
          type: array
          items:
            type: object
            additionalProperties: false
          description: >-
            Restrictions and nested query objects of which `minimumShouldMatch`
            have to match, and which contribute to the relevance score. At least
            one of `filter`, `must`, `should` and `mustNot` must be provided.
    internalSearchQuerySort:
      type: object
      properties:
        field:
          type: string
          description: >-
            Field the results are ordered by. Use the full dotted path for a
            field inside a nested object.
          example: createDate
        nested:
          type: object
          additionalProperties: false
          description: >-
            Raw Elasticsearch `nested` sort options, passed through unchanged.
            Needed when ordering by a field inside a nested object has to be
            narrowed to matching inner records.
        order:
          type: string
          description: Direction the records are ordered in.
          enum:
            - asc
            - desc
        unmapped_type:
          type: string
          description: >-
            Type to sort the field as when the index does not map it. Without
            it, an unmapped field fails the search instead of sorting as empty.
          enum:
            - boolean
            - byte
            - short
            - integer
            - long
            - double
            - float
            - keyword
            - text
            - date
      required:
        - field
        - order
    responseUsersSessionSingle:
      type: object
      properties:
        authentication:
          type: array
          items:
            $ref: '#/components/schemas/responseLoginFactor'
          description: >-
            Authentication the session went through, one entry per factor that
            was asked for.
          nullable: true
        connection:
          allOf:
            - $ref: '#/components/schemas/responseGenericConnection'
          description: >-
            Where the session was opened from - the client and the network
            address it came in on.
          nullable: true
        created:
          type: string
          format: date-time
          description: When the session was opened.
          nullable: true
        lastUsed:
          type: string
          format: date-time
          description: >-
            When the session was last used to call the API. A session expires
            once it has been idle for longer than `validForMilliseconds`.
          nullable: true
        system:
          type: boolean
          description: >-
            Whether the session belongs to the platform itself rather than to
            somebody working in the application.
          example: false
          nullable: true
        username:
          type: string
          description: Account the session belongs to.
          example: john.doe@example.com
          nullable: true
        validForMilliseconds:
          type: integer
          description: >-
            How long the session may stay idle before it stops being usable,
            counted from `lastUsed`.
          example: 2592000000
          nullable: true
    entityUsersBackgroundJobs:
      type: object
      properties:
        fileHash:
          type: string
          description: >-
            Storage hash of the file the export produced, once there is one to
            collect.
          nullable: true
        finishedOn:
          type: string
          format: date-time
          description: When the export finished, whether it succeeded or failed.
          nullable: true
        id:
          type: string
          description: >-
            Identifier of the export, unique within the account. It is what the
            client watches to follow its progress.
          nullable: true
        name:
          type: string
          description: Name of the export that was asked for.
          nullable: true
        queuedOn:
          type: string
          format: date-time
          description: When the export was asked for and put in the queue.
          nullable: true
        result:
          type: string
          description: >-
            What the run came to, written out as text - including the individual
            failures where some of the exported records did not make it.
          nullable: true
        startedOn:
          type: string
          format: date-time
          description: When work on the export actually began.
          nullable: true
        status:
          type: string
          description: >-
            Where the export has got to: `queued` while it waits, `running`
            while it is being produced, then `success`, `error` or `noop` when
            there was nothing to export at all.
          example: success
          nullable: true
    entityUsersConfiguration:
      type: object
      properties:
        delegation:
          allOf:
            - $ref: '#/components/schemas/entityUsersDelegation'
          description: >-
            How the person's work is handed over while they are away - to whom,
            and for how long.
          nullable: true
        initials:
          type: array
          items:
            $ref: '#/components/schemas/entityUsersPhotoData'
          description: >-
            Images of the person's initials, used wherever a document asks to be
            initialled. The first one is taken as theirs unless another is
            picked.
          nullable: true
        language:
          type: string
          description: >-
            Language the application and anything addressed to the person is in.
            It has to be one the tenant has installed.
          example: en
          nullable: true
        navigationOpen:
          type: boolean
          description: Whether the person left the side navigation open.
          example: true
          nullable: true
        notifications:
          allOf:
            - $ref: '#/components/schemas/entityUsersNotification'
          description: Which notifications reach the person, and through which channel.
          nullable: true
        photo:
          allOf:
            - $ref: '#/components/schemas/entityUsersPhoto'
          description: >-
            Profile picture of the person, kept in four sizes so that each place
            can take the one it needs.
          nullable: true
        scheduler:
          type: boolean
          description: Whether the person has the scheduler panel switched on.
          example: true
          nullable: true
        signature:
          type: array
          items:
            $ref: '#/components/schemas/entityUsersPhotoData'
          description: >-
            Images the person signs with. The first one is taken as theirs
            unless another is picked.
          nullable: true
        view:
          type: string
          description: >-
            How the person left their document list arranged - as a table, a
            list or icons.
          example: tableView
          nullable: true
    responseUsersFilter:
      type: object
      properties:
        iconClass:
          type: string
          description: Icon shown next to the saved search in the navigation.
          example: filter
        name:
          type: string
          description: >-
            Name the search is saved under, which is also what identifies it
            among the person's own.
          example: Recent contracts
        q:
          type: string
          description: >-
            The search itself, kept as the query the client sends when the
            filter is picked.
          example: >-
            {"documentCategory":["Contract"],"multifieldDateItems":[{"date":{"startDate":"now-90d/d","endDate":"now","predefined":"last_90_days"},"queryType":"created"}]}
    responseUsersIdentity:
      type: object
      properties:
        data:
          type: object
          properties:
            id:
              type: string
              description: Identifier the provider knows the person by.
            userType:
              type: string
              description: >-
                Kind of account the provider reports for the person, in the
                provider's own terms.
          description: >-
            The little of the verified profile that is passed on. It is filled
            only for providers whose profile the platform understands; for the
            rest it stays `null`.
          nullable: true
        name:
          type: string
          description: Identity provider the account is linked to.
          example: uaePass
          nullable: true
    responseUsersProviders:
      type: object
      properties:
        connectedOn:
          type: string
          format: date-time
          description: When the connection was made.
          nullable: true
        name:
          type: string
          description: Provider the account is connected to.
          example: google
          nullable: true
        subName:
          type: string
          description: >-
            Which of the provider's services the connection is for, where it
            offers more than one.
          nullable: true
    entityUsersTemplateUsage:
      type: object
      properties:
        count:
          type: integer
          description: How many times the person has started from it.
          example: 12
          nullable: true
        custom:
          type: boolean
          description: >-
            Whether the entry counts a template of the person's own rather than
            a document definition the tenant provides. Together with the name
            below it is what identifies the entry.
          example: true
          nullable: true
        lastUsed:
          type: string
          format: date-time
          description: When the person last started from it.
          nullable: true
        template:
          type: string
          description: >-
            What was used - the identifier of a template, or the name of a
            document definition.
          nullable: true
    entityContactsPhoto:
      type: object
      properties:
        big:
          type: string
          description: Largest rendition, for a profile detail view.
          example: s1pss1atbzli272pinbt48n2ssy96ax2pwgqrz5qyzklwxg1kl0tq6anvz1p97xj
          nullable: true
        medium:
          type: string
          description: Mid-sized rendition, for lists and cards.
          nullable: true
        nano:
          type: string
          description: Smallest rendition, for an inline avatar.
          nullable: true
        small:
          type: string
          description: Small rendition, for a compact avatar.
          nullable: true
    entityGroupsDisplayName:
      type: object
      properties:
        language:
          type: string
          description: Language code the display name is written in.
          example: en
          nullable: true
        value:
          type: string
          description: Display name of the group in this language.
          example: Organization Administrators
          nullable: true
    entityGroupsOrganizationGroups:
      type: object
      properties:
        admin:
          type: string
          description: >-
            Group carrying the admin role in this organization. Its members
            administer the organization — its members, its groups and its
            settings — on top of everything a member may do.
          example: e378ef19-3c07-4105-91db-2593b6a443a5
          nullable: true
        prepare:
          type: string
          description: >-
            Group carrying the preparer role in this organization. Its members
            upload and prepare documents for others and build templates, but
            cannot sign.
          example: a1c03148-9473-4ae3-95ed-e9b4acc414f0
          nullable: true
        read:
          type: string
          description: >-
            Group carrying the reader role in this organization. Its members
            only consume what is shared with them — they read, search and
            comment, but neither author nor sign.
          example: 2d884a07-e21e-4773-89db-ebc3c9399b90
          nullable: true
        sign:
          type: string
          description: >-
            Group carrying the signer role in this organization. Its members
            only sign what reaches them and cannot start a signing process
            themselves.
          example: 54f88bff-234e-4da6-91c9-f7ab818d2898
          nullable: true
        user:
          type: string
          description: >-
            Group carrying the member role in this organization. Its members
            reach documents and signing in full, but administer nothing.
          example: fe2f70e8-367e-4aa5-8ea3-81dd74d60914
          nullable: true
    responseLoginFactor:
      type: object
      properties:
        address:
          type: string
          description: >-
            Masked destination the code was sent to, enough for the person to
            recognize which phone or mailbox to look at. It is absent for a
            factor that sends nothing.
          example: '*****89'
        attemptsLeft:
          type: integer
          description: >-
            How many wrong answers this factor still tolerates before it has to
            be sent again. It is absent for a factor whose code is generated on
            the user's own device.
          example: 2
        factor:
          type: string
          description: Kind of second factor this entry stands for.
          example: sms
        unlocked:
          type: boolean
          description: Whether this factor has been verified.
          example: false
        validUntil:
          type: string
          format: date-time
          description: >-
            When the code sent for this factor stops being accepted. Once it has
            passed, ask for a new code rather than trying again. It is absent
            for a factor whose code is generated on the user's own device.
    responseGenericConnection:
      type: object
      properties:
        browser:
          type: string
          description: Browser the request came from, as recognized from its user agent.
          example: Chrome
        browserVersion:
          type: string
          description: Version of that browser.
          example: 130.0.0.0
        ip:
          type: string
          description: Network address the request came from.
          example: 203.0.113.42
        location:
          allOf:
            - $ref: '#/components/schemas/responseGenericConnectionLocation'
          description: >-
            Where that network address is placed geographically. It is always
            present, but its properties stay empty when the address could not be
            located.
        os:
          type: string
          description: Operating system the request came from.
          example: Windows 10.0
        platform:
          type: string
          description: Platform family of that operating system.
          example: Microsoft Windows
        userAgent:
          type: string
          description: >-
            User agent string exactly as the client sent it. The other
            properties here are what could be read out of it.
          example: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36
    entityUsersDelegation:
      type: object
      properties:
        activationNotificationSent:
          type: boolean
          description: >-
            Whether the delegating person has already been told that the
            hand-over is in effect. A hand-over scheduled for later is announced
            only once its period begins.
          example: false
          default: false
        deactivationNotificationSent:
          type: boolean
          description: >-
            Whether the pair have already been told that the hand-over has run
            out. It keeps the reminder from being sent twice.
          example: false
          default: false
        time:
          allOf:
            - $ref: '#/components/schemas/entityUsersDelegationTime'
          description: >-
            Period the hand-over covers. Outside it the delegation counts for
            nothing, even while it is configured.
        user:
          type: string
          description: >-
            Person the work is handed over to. They then act in place of the
            delegating person for as long as the period lasts.
          example: jane.doe@example.com
          nullable: true
    entityUsersPhotoData:
      type: object
      properties:
        imageId:
          type: string
          pattern: ^[a-z0-9]+$
          minLength: 1
          description: Storage hash of the image itself.
          example: s1pss1atbzli272pinbt48n2ssy96ax2pwgqrz5qyzklwxg1kl0tq6anvz1p97xj
          nullable: true
        name:
          type: string
          description: >-
            Label the person gave the image, so that several of them can be told
            apart when one is picked.
          example: Full signature
          nullable: true
    entityUsersNotification:
      type: object
      properties:
        enableAlerts:
          type: boolean
          description: >-
            Whether notifications are also shown as pop-up alerts while the
            person is working in the application.
          example: true
          nullable: true
        inApp:
          type: array
          items:
            type: string
          description: >-
            Notifications the person wants delivered inside the application. It
            is a list of notification types to send, so a type that is absent is
            not delivered this way.
          example:
            - shareForSign
          nullable: true
        mail:
          type: array
          items:
            type: string
          description: >-
            Notifications the person wants delivered by e-mail. It is a list of
            notification types to send, so a type that is absent is not
            delivered this way.
          example:
            - shareForSign
          nullable: true
        push:
          type: array
          items:
            type: string
          description: >-
            Notifications the person wants pushed to their device. It is a list
            of notification types to send, so a type that is absent is not
            delivered this way.
          example:
            - shareForSign
          nullable: true
    entityUsersPhoto:
      type: object
      properties:
        big:
          type: string
          description: >-
            Storage hash of the picture at its largest, for showing the person
            in full.
          nullable: true
        medium:
          type: string
          description: >-
            Storage hash of the picture at medium size, for a profile or a
            detail page.
          nullable: true
        nano:
          type: string
          description: >-
            Storage hash of the smallest rendition, for an avatar in a list or
            next to a name.
          nullable: true
        small:
          type: string
          description: >-
            Storage hash of the small rendition, for an avatar that is shown a
            little larger.
          nullable: true
    responseGenericConnectionLocation:
      type: object
      properties:
        city:
          type: string
          description: City the address was located in.
          example: Prague
        country:
          type: string
          description: Country the network address was located in.
          example: Czechia
        countryCode:
          type: string
          description: Two-letter code of the country.
          example: CZ
        region:
          type: string
          description: Region or state within that country.
          example: Prague
    entityUsersDelegationTime:
      type: object
      properties:
        end:
          type: string
          format: date-time
          description: When the hand-over stops.
          nullable: true
        start:
          type: string
          format: date-time
          description: When the hand-over takes effect.
          nullable: true
  securitySchemes:
    Token:
      type: apiKey
      in: query
      name: token
      description: >-
        Standard authorization for most API calls. This token identifies the
        logged-in user and their permissions. It is obtained either as a
        temporary token after a successful login or as a long-term API key.

````

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