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

> `POST /groups/search`

Returns a page of the tenant's groups matching the given query. This is the read behind every group list and group picker - the administration lists of groups and of organizations, the membership dialogs of an ACL, the group selector on a user - so it also carries the extras those screens need: member counts, a short preview of the members themselves and the resolved subscription of an organization. Send an empty body to page through everything you can see.

Whatever the query asks for, an access restriction is added on top of it. An organization administrator only ever matches groups of their own organization. A global administrator sees the whole tenant while holding the administration right or the right to see all users; without them the search is narrowed to the groups they belong to, and without the right to see groups at all it returns nothing.

---

**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_groups`

**Required user role:** `admin` or `organization_admin`



## OpenAPI

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


        Returns a page of the tenant's groups matching the given query. This is
        the read behind every group list and group picker - the administration
        lists of groups and of organizations, the membership dialogs of an ACL,
        the group selector on a user - so it also carries the extras those
        screens need: member counts, a short preview of the members themselves
        and the resolved subscription of an organization. Send an empty body to
        page through everything you can see.


        Whatever the query asks for, an access restriction is added on top of
        it. An organization administrator only ever matches groups of their own
        organization. A global administrator sees the whole tenant while holding
        the administration right or the right to see all users; without them the
        search is narrowed to the groups they belong to, and without the right
        to see groups at all it returns nothing.


        ---


        **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_groups`


        **Required user role:** `admin` or `organization_admin`
      operationId: requestGroupsPostSearch
      parameters:
        - in: query
          name: photoSize
          description: Rendition of the profile photo returned with the previewed members.
          required: false
          schema:
            type: string
            enum:
              - nano
              - small
              - medium
              - big
            example: nano
            default: nano
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/requestGroupsPostSearch'
      responses:
        '200':
          description: Returns the matching groups and the total number of matches.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/responseGroupsMultipleExtended'
        '400':
          description: The query is malformed or asks for an unsupported restriction.
          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: The caller lacks the required right or role.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error'
              example:
                status: 403
                type: AUTH:ACCESS_DENIED
                message: Access denied
                requestId: 3fa85f6457174562b3fc2c963f66afa6
      security:
        - Token: []
components:
  schemas:
    requestGroupsPostSearch:
      type: object
      properties:
        groupQuery:
          allOf:
            - $ref: '#/components/schemas/internalSearchQuery'
          description: >-
            Search query the groups are matched against. Omit it to page through
            every group you can see.
        includeSubscriptionInfo:
          type: boolean
          description: >-
            Resolve the subscription of every returned group that has one
            assigned and attach it in full. Only an organization carries a
            subscription, so this pays off on a search restricted to
            organizations.
          example: false
          default: false
        includeUserCount:
          type: boolean
          description: >-
            Attach the number of regular and of lite members to every returned
            group. Counting the members of a page of groups costs an extra
            aggregation, so leave it off for a picker that only shows names.
          example: false
          default: false
        membersToInclude:
          type: integer
          minimum: 0
          maximum: 10
          description: >-
            How many members of each group to return as a preview of who is in
            it, never the whole membership. Asking for any member brings the
            member counts along even when they were not requested.
          example: 0
          default: 0
    responseGroupsMultipleExtended:
      type: object
      properties:
        results:
          type: array
          items:
            $ref: '#/components/schemas/responseGroupsSingleExtended'
          description: >-
            Matching groups on the requested page, each carrying the extra
            information the request asked for.
        total:
          type: number
          description: >-
            Number of groups the query matched in total, which may be more than
            the page returns.
          example: 3
    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.
    responseGroupsSingleExtended:
      type: object
      properties:
        _id:
          type: string
          description: Unique identifier of the group.
          example: d0a72e51-728e-4a1d-9a5c-13796122b6f8
        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
        liteUserCount:
          type: integer
          description: >-
            Number of the group's members that count as lite users, that is
            those who also belong to a prepare, read or sign role group of an
            organization. Deleted accounts are left out. Present under the same
            condition as `userCount`.
          example: 10
        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.
        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
        subscriptionObj:
          allOf:
            - $ref: '#/components/schemas/responseSubscription'
          description: >-
            Subscription assigned to the group, resolved in full. Present only
            when the request asked for subscription information and the group
            has a subscription assigned.
        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
        userCount:
          type: integer
          description: >-
            Number of the group's members that do not count as lite users.
            Deleted accounts are left out. Present only when the request asked
            for member counts or for member examples.
          example: 15
        users:
          type: object
          additionalProperties:
            $ref: '#/components/schemas/responseUsersMinimum'
          description: >-
            A few of the group's members as an example of who is in it, keyed by
            username, taking the alphabetically first usernames. Present only
            when the request asked for member examples, and never the complete
            membership.
        version:
          type: integer
          description: >-
            Current version of the group. Send it back with the next update so a
            concurrent change is not overwritten silently.
          example: 3
    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
    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
    responseSubscription:
      type: object
      properties:
        administrativeHold:
          type: boolean
          description: >-
            Whether the subscription was suspended or cancelled by an
            administrator of the workspace rather than by its billing. It is set
            when such an administrator sets `state` to `suspended` or
            `cancelled` and cleared when they set it back to `active`. While it
            is set, what the payment provider reports leaves the subscription's
            `state` alone. Only an administrator of the workspace is answered
            this field.
          nullable: true
        assignedToId:
          type: string
          description: >-
            Identifier of the user or of the organization group the subscription
            is attached to; which of the two it is follows from
            `assignedToType`. A template, and a subscription that has not been
            assigned to anybody yet, carries neither.
          nullable: true
        assignedToType:
          type: string
          description: >-
            Whether the subscription is attached to a single user (`user`) or to
            an organization group (`group`).
          example: group
          nullable: true
        autoRenewal:
          type: boolean
          description: >-
            Whether the subscription is meant to roll over into another period
            instead of simply ending. It records the commercial arrangement;
            where the subscription is linked to an outside billing system, the
            value held there is used. Only an organization administrator or an
            administrator of the workspace is answered this field.
          nullable: true
        billingAddress:
          allOf:
            - $ref: '#/components/schemas/entitySubscriptionsAddress'
          description: >-
            Address the invoices for this subscription are made out to. Only an
            organization administrator or an administrator of the workspace is
            answered this field.
          nullable: true
        billingPeriod:
          type: string
          description: >-
            How often the customer is invoiced, written the same way as
            `subscriptionPeriod` - a count followed by a unit. It is a
            commercial record only: the allowances are measured and cleared by
            `subscriptionPeriod`, not by this. Only an organization
            administrator or an administrator of the workspace is answered this
            field.
          example: 1M
          nullable: true
        billingTermEnd:
          type: string
          format: date-time
          description: >-
            End of the billing term the customer is currently paying for. Only
            an organization administrator or an administrator of the workspace
            is answered this field.
          example: '2027-01-01T00:00:00.000Z'
          nullable: true
        billingTermStart:
          type: string
          format: date-time
          description: >-
            Start of the billing term the customer is currently paying for. Only
            an organization administrator or an administrator of the workspace
            is answered this field.
          example: '2026-01-01T00:00:00.000Z'
          nullable: true
        cancelAtPeriodEnd:
          type: boolean
          description: >-
            Whether the subscription is to be closed rather than carried on once
            the period now running ends. The periodic sweep then sets `state` to
            `cancelled` instead of clearing the usage and starting another
            period.
          nullable: true
        cancelDate:
          type: string
          format: date-time
          description: >-
            When the subscription was cancelled. It is kept for the commercial
            record - what the platform acts on is `state`. Only an administrator
            of the workspace is answered this field.
          example: '2026-03-14T09:12:44.318Z'
          nullable: true
        cancelReason:
          type: string
          description: >-
            Why the subscription was cancelled, in free text. Only an
            administrator of the workspace is answered this field.
          example: Customer churned
          nullable: true
        contacts:
          type: array
          items:
            $ref: '#/components/schemas/entitySubscriptionsContact'
          description: >-
            People to deal with about this subscription - the customer's
            administrative, billing, technical and support contacts. Only an
            organization administrator or an administrator of the workspace is
            answered this field.
          nullable: true
        contract:
          allOf:
            - $ref: '#/components/schemas/entitySubscriptionsContract'
          description: >-
            The contract behind the subscription: when it runs from and to, over
            what period and in what state. Only an administrator of the
            workspace is answered this field.
          nullable: true
        createDate:
          type: string
          format: date-time
          description: >-
            When the subscription record was created. Only an administrator of
            the workspace is answered this field.
          example: '2026-01-01T00:00:00.000Z'
          nullable: true
        createdBy:
          type: string
          description: >-
            Name of the user who created the subscription; one raised by the
            platform itself, such as a personal copy made when a user joins an
            organization, carries `system`. Only an administrator of the
            workspace is answered this field.
          example: admin@circularo.com
          nullable: true
        currencyCode:
          type: string
          description: >-
            Currency every amount on this subscription is expressed in. Only an
            organization administrator or an administrator of the workspace is
            answered this field.
          example: EUR
          nullable: true
        customer:
          allOf:
            - $ref: '#/components/schemas/entitySubscriptionsCustomer'
          description: >-
            The customer the subscription is billed to - legal name, address,
            tax details and how the account is rated. Only an administrator of
            the workspace is answered this field.
          nullable: true
        deliveryAddress:
          allOf:
            - $ref: '#/components/schemas/entitySubscriptionsAddress'
          description: >-
            Address the paperwork is delivered to when it differs from the
            billing address. Only an organization administrator or an
            administrator of the workspace is answered this field.
          nullable: true
        directSales:
          type: boolean
          description: >-
            Whether the subscription was sold directly rather than through a
            reseller or a distributor. Only an administrator of the workspace is
            answered this field.
          nullable: true
        distributor:
          allOf:
            - $ref: '#/components/schemas/entitySubscriptionsAddress'
          description: >-
            The distributor the subscription was sold through. Only an
            administrator of the workspace is answered this field.
          nullable: true
        distributorTotal:
          type: number
          description: >-
            What the distributor is charged for the subscription altogether, in
            `currencyCode`. Only an administrator of the workspace is answered
            this field.
          example: 1200.5
          nullable: true
        dueSince:
          type: string
          format: date-time
          description: >-
            Since when the payment for this subscription has been overdue.
            Nothing in the platform is withheld because of it. Only an
            administrator of the workspace is answered this field.
          example: '2026-02-01T00:00:00.000Z'
          nullable: true
        endDate:
          type: string
          format: date-time
          description: >-
            End of the period the subscription is measured over. It is moved
            forward whenever the period rolls over, unless the subscription is
            linked to an outside billing system, in which case the dates are
            left as that system reports them.
          example: '2027-01-01T00:00:00.000Z'
          nullable: true
        externalData:
          allOf:
            - $ref: '#/components/schemas/entitySubscriptionsExternal'
          description: >-
            Particulars of the matching record in the outside billing system -
            who raised and last edited it there, under what owner and team name,
            and how many times it has been renewed. Only an organization
            administrator or an administrator of the workspace is answered this
            field.
          nullable: true
        firstStartDate:
          type: string
          format: date-time
          description: >-
            When the subscription is to begin being measured for the very first
            time. Once that moment has passed, the subscription is started: its
            usage is cleared, the measured period is moved onto that date and
            `isStarted` is set. Only an administrator of the workspace is
            answered this field.
          example: '2026-01-01T00:00:00.000Z'
          nullable: true
        hostingRegion:
          type: string
          description: >-
            Region whose installation hosts the customer, such as `eu`, `mena`
            or `ksa`. Only an organization administrator or an administrator of
            the workspace is answered this field.
          example: eu
          nullable: true
        id:
          type: string
          description: Identifier of the subscription.
          example: a0d01c9d-f72f-4c57-af11-e26bda19cc59
          nullable: true
        ignoreLimits:
          type: boolean
          description: >-
            Whether the allowances in `limits` are merely recorded and never
            enforced, so that nothing is refused however much of them has been
            used up.
          nullable: true
        invoicedAmount:
          type: number
          description: >-
            How much has been invoiced on this subscription so far, in
            `currencyCode`. Only an organization administrator or an
            administrator of the workspace is answered this field.
          example: 2400
          nullable: true
        invoiceStatus:
          type: string
          description: >-
            How far the invoicing of this subscription has got, as the outside
            billing system reports it, such as `invoiced`, `to invoice` or `no`.
            Only an organization administrator or an administrator of the
            workspace is answered this field.
          example: invoiced
          nullable: true
        isRenewing:
          type: boolean
          description: >-
            Whether the subscription is currently going through renewal. It is a
            commercial record taken from the outside billing system; the
            platform does not act on it. Only an organization administrator or
            an administrator of the workspace is answered this field.
          nullable: true
        isStarted:
          type: boolean
          description: >-
            Whether the subscription has already had its first start. It is set
            once `firstStartDate` has passed and the measured period has been
            moved onto it; while it is unset, that first start is still pending.
            Only an administrator of the workspace is answered this field.
          nullable: true
        isTemplate:
          type: boolean
          description: >-
            Whether this record is a package for other subscriptions to be built
            from rather than a subscription in use. A template entitles nobody -
            the application cannot be used through it. Only an administrator of
            the workspace is answered this field.
          nullable: true
        isTrial:
          type: boolean
          description: >-
            Whether the subscription is a trial. A trial organization whose
            subscription has been left suspended long enough is deleted with it,
            and paying through the payment provider turns the trial into a full
            subscription. Only an organization administrator or an administrator
            of the workspace is answered this field.
          nullable: true
        isUpselling:
          type: boolean
          description: >-
            Whether a larger package is currently being sold to the customer. It
            is a commercial record taken from the outside billing system; the
            platform does not act on it. Only an organization administrator or
            an administrator of the workspace is answered this field.
          nullable: true
        lastResetDate:
          type: string
          format: date-time
          description: >-
            Start of the period the usage now being counted belongs to. It is
            moved onto the former `nextResetDate` every time the period rolls
            over and the usage is cleared. Only an organization administrator or
            an administrator of the workspace is answered this field.
          example: '2026-01-01T00:00:00.000Z'
          nullable: true
        limits:
          allOf:
            - $ref: '#/components/schemas/entitySubscriptionsLimits'
          description: >-
            The allowances the subscription grants - users, transactions,
            templates, storage, SMS and the per-provider ones - against which
            the usage is measured and further actions refused. A user's personal
            copy inside an organization carries none of its own: the allowances
            that govern them sit on the organization's subscription.
          nullable: true
        metadata:
          type: string
          description: >-
            Any further data kept with the subscription, as a JSON string.
            Nothing in the platform interprets it.
          example: '{"crmId":"A-1234"}'
          nullable: true
        modifiedBy:
          type: string
          description: >-
            Name of the user who last changed the subscription; a change made by
            the platform itself carries `system`. Only an administrator of the
            workspace is answered this field.
          example: admin@circularo.com
          nullable: true
        modifyDate:
          type: string
          format: date-time
          description: >-
            When the subscription was last changed, whether by hand or by the
            periodic sweep. Only an administrator of the workspace is answered
            this field.
          example: '2026-03-14T09:12:44.318Z'
          nullable: true
        mrr:
          type: number
          description: >-
            Monthly recurring revenue of the subscription, in `currencyCode`.
            Only an administrator of the workspace is answered this field.
          example: 199.9
          nullable: true
        name:
          type: string
          description: >-
            Name the subscription is shown under to administrators. Only an
            administrator of the workspace is answered this field.
          example: Business subscription
          nullable: true
        nextResetDate:
          type: string
          format: date-time
          description: >-
            When the period now running ends: at that moment the usage is
            cleared and counted again from zero, and both reset dates move on by
            one period. Only an organization administrator or an administrator
            of the workspace is answered this field.
          example: '2027-01-01T00:00:00.000Z'
          nullable: true
        onboardingDate:
          type: string
          format: date-time
          description: >-
            When the customer was onboarded. It is kept for the commercial
            record only. Only an administrator of the workspace is answered this
            field.
          example: '2025-12-15T00:00:00.000Z'
          nullable: true
        organization:
          type: string
          description: >-
            Identifier of the organization group the subscription belongs to -
            the group it is assigned to, or for a user's personal copy the
            organization that user is in. It is what an organization
            administrator's reach over subscriptions is measured against. Only
            an administrator of the workspace is answered this field.
          example: 9bd60cb0-2b72-474d-a334-9b446e110cad
          nullable: true
        parentId:
          type: string
          description: >-
            Identifier of the organization's subscription this record is a
            personal copy of. A user inside an organization has both: the
            organization's one carries the allowances, their own only their own
            usage.
          nullable: true
        pauseDate:
          type: string
          format: date-time
          description: >-
            When the subscription was suspended. It is kept for the commercial
            record - the suspension itself is expressed by `state`. Only an
            organization administrator or an administrator of the workspace is
            answered this field.
          example: '2026-04-01T00:00:00.000Z'
          nullable: true
        plan:
          type: string
          description: >-
            Name of the plan from the plans catalogue the subscription is sold
            under. It labels the commercial package - the allowances themselves
            are in `limits`.
          example: business
          nullable: true
        poNumber:
          type: string
          description: >-
            The customer's purchase order number for this subscription. Only an
            administrator of the workspace is answered this field.
          example: PO-2026-00123
          nullable: true
        pricelist:
          type: string
          description: >-
            Name of the price list the amounts were taken from. Only an
            administrator of the workspace is answered this field.
          example: Public Pricelist (EUR)
          nullable: true
        remainingBillingCycles:
          type: integer
          description: >-
            How many billing cycles are still to be invoiced before the
            arrangement runs out. Only an organization administrator or an
            administrator of the workspace is answered this field.
          example: 12
          nullable: true
        reseller:
          allOf:
            - $ref: '#/components/schemas/entitySubscriptionsAddress'
          description: >-
            The reseller the subscription was sold through. Only an
            administrator of the workspace is answered this field.
          nullable: true
        resellerTotal:
          type: number
          description: >-
            What the reseller is charged for the subscription altogether, in
            `currencyCode`. Only an administrator of the workspace is answered
            this field.
          example: 1800
          nullable: true
        resumeDate:
          type: string
          format: date-time
          description: >-
            When the subscription was resumed after a suspension. Only an
            administrator of the workspace is answered this field.
          example: '2026-05-01T00:00:00.000Z'
          nullable: true
        setupFee:
          type: number
          description: >-
            One-off fee charged for setting the subscription up, in
            `currencyCode`. Only an organization administrator or an
            administrator of the workspace is answered this field.
          example: 500
          nullable: true
        standardTerms:
          type: boolean
          description: >-
            Whether the subscription was sold on the standard terms and
            conditions rather than on a negotiated contract. Only an
            organization administrator or an administrator of the workspace is
            answered this field.
          nullable: true
        startDate:
          type: string
          format: date-time
          description: >-
            Beginning of the period the subscription is measured over. It is
            moved forward together with `endDate` whenever the period rolls
            over, unless the subscription is linked to an outside billing
            system, in which case the dates are left as that system reports
            them.
          example: '2026-01-01T00:00:00.000Z'
          nullable: true
        startDateResetDone:
          type: boolean
          description: Was this subscription restarted on first start date?
          nullable: true
        state:
          type: string
          description: >-
            How much of the application the subscription opens: `active` grants
            it fully, `suspended` keeps it open but refuses everything the
            subscription meters, `cancelled` and `scheduled` close it.
          example: active
          nullable: true
        stripeCustomerId:
          type: string
          description: >-
            Identifier of the customer at the payment provider (Stripe) the
            charges for this subscription are made against. Only an
            administrator of the workspace is answered this field.
          example: cus_NffrFeUfNV2Hib
          nullable: true
        stripePaymentActionNeeded:
          type: boolean
          description: >-
            Whether the latest invoice at the payment provider is waiting for
            the customer to act on it, typically to confirm a card payment;
            `stripePaymentActionUrl` then leads to that invoice. Only an
            organization administrator or an administrator of the workspace is
            answered this field.
          nullable: true
        stripePaymentActionUrl:
          type: string
          description: >-
            Address of the hosted invoice at the payment provider where the
            customer settles or confirms the payment. It is set alongside
            `stripePaymentFailed` or `stripePaymentActionNeeded` and dropped
            once the payment provider reports the subscription paid up - in good
            standing, with no change of it waiting for its payment and its
            latest invoice settled - or the subscription at the payment provider
            ends. Only an organization administrator or an administrator of the
            workspace is answered this field.
          example: >-
            https://invoice.stripe.com/i/acct_1M2JTkLkdIwHu7ix/test_YWNjdF8xTTJKVGtMa2RJd0h1N2l4
          nullable: true
        stripePaymentFailed:
          type: boolean
          description: >-
            Whether the latest payment attempt at the payment provider was
            declined. It is cleared once the payment provider reports the
            subscription paid up - in good standing, with no change of it
            waiting for its payment and its latest invoice settled - or the
            subscription at the payment provider ends. Only an organization
            administrator or an administrator of the workspace is answered this
            field.
          nullable: true
        stripeSubscriptionId:
          type: string
          description: >-
            Identifier of the matching subscription at the payment provider
            (Stripe). It is dropped when that subscription is deleted there,
            which also leaves this one suspended. Only an administrator of the
            workspace is answered this field.
          example: sub_1MowQVLkdIwHu7ixeRlqHVzs
          nullable: true
        subscriptionExternalId:
          type: string
          description: >-
            Identifier of the matching subscription in the outside billing
            system (Odoo). While it is set, the commercial details are taken
            from there, and the dates of the measured period are left as that
            system reports them when the period rolls over. Only an organization
            administrator or an administrator of the workspace is answered this
            field.
          example: SUB-00042
          nullable: true
        subscriptionItems:
          type: array
          items:
            $ref: '#/components/schemas/responseSubscriptionsSubscriptionItem'
          description: >-
            The items bought under this subscription - what was sold, in what
            quantity and at what price. Only an organization administrator or an
            administrator of the workspace is answered this field, and the
            pricing behind each item is narrowed down further still.
          nullable: true
        subscriptionPeriod:
          type: string
          description: >-
            How long one measured period lasts, as a count followed by a unit -
            `y`, `Q`, `M`, `w` or `d` - so that `1M` is a month and `3M` a
            quarter. The end of the period and the moments at which the usage is
            cleared are worked out from it. Only an organization administrator
            or an administrator of the workspace is answered this field.
          example: 1M
          nullable: true
        templateId:
          type: string
          description: >-
            Identifier of the subscription this one was built from - the
            template whose allowances, period, plan and flags were copied onto
            it. Only an administrator of the workspace is answered this field.
          example: business_default
          nullable: true
        totalAmount:
          type: number
          description: >-
            Price of the subscription altogether, tax included, in
            `currencyCode`. Only an administrator of the workspace is answered
            this field.
          example: 2400
          nullable: true
        totalDues:
          type: number
          description: >-
            How much is still owed on this subscription, in `currencyCode`. Only
            an administrator of the workspace is answered this field.
          example: 0
          nullable: true
        trial:
          allOf:
            - $ref: '#/components/schemas/responseSubscriptionsTrial'
          description: >-
            For a trial subscription, when the trial runs from and to and over
            what period. Only an organization administrator or an administrator
            of the workspace is answered this field.
          nullable: true
        untaxedAmount:
          type: number
          description: >-
            Price of the subscription altogether before tax, in `currencyCode`.
            Only an administrator of the workspace is answered this field.
          example: 2000
          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
    entitySubscriptionsAddress:
      type: object
      properties:
        additionalInfo:
          type: string
          description: >-
            Anything about the address that has no field of its own, kept as
            stringified JSON. The platform only stores it.
          example: '{"buildingAccess":"reception desk, 3rd floor"}'
          nullable: true
        city:
          type: string
          description: City of the address.
          example: Dubai
          nullable: true
        company:
          type: string
          description: >-
            Company at the address. On a reseller or distributor entry it is
            usually the only field filled, because the billing system supplies
            just the partner's name there.
          example: Acme Trading LLC
          nullable: true
        country:
          type: string
          description: >-
            Country of the address. The billing system supplies it as a
            two-letter country code.
          example: AE
          nullable: true
        customerId:
          type: string
          description: >-
            Identifier of the party living at this address in the CRM behind the
            billing system.
          example: '12345'
          nullable: true
        email:
          type: string
          description: E-mail address reaching the party at this address.
          example: billing@acme.com
          nullable: true
        firstName:
          type: string
          description: Given name of the person at this address.
          example: James
          nullable: true
        isPartner:
          type: boolean
          description: >-
            Whether the party at this address is a Circularo partner, such as a
            reseller or a distributor, rather than the end customer.
          nullable: true
        lastName:
          type: string
          description: Family name of the person at this address.
          example: Baines
          nullable: true
        phone:
          type: string
          description: Phone number reaching the party at this address.
          example: '+971501234567'
          nullable: true
        state:
          type: string
          description: State, province or emirate of the address.
          example: Dubai
          nullable: true
        street:
          type: string
          description: Street and house number of the address.
          example: Sheikh Zayed Road 12
          nullable: true
        zip:
          type: string
          description: Postal code of the address.
          example: '11001'
          nullable: true
    entitySubscriptionsContact:
      type: object
      properties:
        contactType:
          type: string
          description: >-
            Role the contact plays for the subscription: `admin` runs the
            account, `billing` handles invoices and payments, `technical` and
            `support` are the people to turn to on those matters. Paying for a
            subscription through Stripe requires a `billing` contact carrying a
            valid e-mail address.
          example: billing
          nullable: true
        customerId:
          type: string
          description: Identifier of the contact in the CRM behind the billing system.
          example: '12345'
          nullable: true
        email:
          type: string
          description: >-
            E-mail address of the contact. On the `billing` contact it opens the
            Stripe checkout and the customer created for it, so it has to be a
            valid address.
          example: billing@acme.com
          nullable: true
        firstName:
          type: string
          description: >-
            Given name of the contact. The billing system keeps one name field
            only, so a name arriving from it lands here whole.
          example: James
          nullable: true
        isPartner:
          type: boolean
          description: >-
            Whether the contact belongs to a Circularo partner, such as a
            reseller or a distributor, rather than to the end customer.
          nullable: true
        jobTitle:
          type: string
          description: Position the contact holds at the customer.
          example: Head of Finance
          nullable: true
        lastName:
          type: string
          description: Family name of the contact.
          example: Baines
          nullable: true
        phone:
          type: string
          description: Phone number of the contact.
          example: '+971501234567'
          nullable: true
        preferredLanguage:
          type: string
          description: >-
            Language the contact prefers to be addressed in. The billing system
            supplies its own locale code, the web client fills the user's
            interface language.
          example: en
          nullable: true
    entitySubscriptionsContract:
      type: object
      properties:
        autoRenewal:
          type: boolean
          description: >-
            Whether the contract renews itself for another term instead of
            ending. It states what was agreed with the customer and is kept
            apart from the subscription's own `autoRenewal`.
          nullable: true
        endDate:
          type: string
          format: date-time
          description: >-
            When the agreed contract term ends. The billing system fills it with
            the contract renewal date it holds.
          example: '2026-12-31T23:59:59.000Z'
          nullable: true
        period:
          type: string
          description: >-
            Length of one contract term, written as a count followed by a period
            unit in the same notation as the subscription period.
          example: 1y
          nullable: true
        startDate:
          type: string
          format: date-time
          description: When the agreed contract term begins.
          example: '2026-01-01T00:00:00.000Z'
          nullable: true
        status:
          type: string
          description: >-
            Where the contract stands: `active` while it runs, `completed` once
            it has served its full term, `cancelled` when it was called off and
            `terminated` when it was ended before term.
          example: active
          nullable: true
    entitySubscriptionsCustomer:
      type: object
      properties:
        city:
          type: string
          description: City the customer is based in.
          example: Dubai
          nullable: true
        company:
          type: string
          description: >-
            Name the customer's company trades under, which need not match its
            registered legal name.
          example: Acme Trading
          nullable: true
        customerId:
          type: string
          description: Identifier of the customer in the CRM behind the billing system.
          example: '12345'
          nullable: true
        email:
          type: string
          description: >-
            E-mail address of the customer as a company. People to write to
            about the subscription are listed separately as contacts.
          example: finance@acme.com
          nullable: true
        firstName:
          type: string
          description: Given name of the person the customer is represented by.
          example: James
          nullable: true
        isPartner:
          type: boolean
          description: >-
            Whether the customer is a Circularo partner, such as a reseller or a
            distributor, rather than an end customer.
          nullable: true
        lastName:
          type: string
          description: Family name of the person the customer is represented by.
          example: Baines
          nullable: true
        legalName:
          type: string
          description: >-
            Registered legal name of the customer, the one invoices are made out
            to.
          example: Acme Trading LLC
          nullable: true
        phone:
          type: string
          description: Phone number of the customer.
          example: '+971501234567'
          nullable: true
        priority:
          type: integer
          minimum: 0
          maximum: 4
          description: >-
            Tier the customer is ranked in by the business, kept as a plain rank
            rather than a name. Where it is pulled from the outside billing
            system it comes from that system's `T1` to `T3` rating, of which
            only the number is kept.
          example: 1
          nullable: true
        state:
          type: string
          description: State, province or emirate the customer is based in.
          example: Dubai
          nullable: true
        street:
          type: string
          description: Street and house number of the customer.
          example: Sheikh Zayed Road 12
          nullable: true
        taxability:
          type: string
          description: >-
            How the customer is treated for tax: `taxable` when tax is charged,
            `non_taxable` when it is not and `exempt` when the customer holds an
            exemption. The billing system distinguishes only the first two.
          example: taxable
          nullable: true
        vatNumber:
          type: string
          description: VAT registration number of the customer.
          example: AE100000000000003
          nullable: true
        zip:
          type: string
          description: Postal code of the customer.
          example: '11001'
          nullable: true
    entitySubscriptionsExternal:
      type: object
      properties:
        createDate:
          type: string
          format: date-time
          description: >-
            When the subscription record was created in the billing system,
            which is a different moment from when the subscription was created
            here.
          example: '2026-01-15T09:12:00.000Z'
          nullable: true
        createdBy:
          type: string
          description: >-
            Display name of the billing system's own user who created the record
            there. It is not a Circularo user.
          example: John Doe
          nullable: true
        editDate:
          type: string
          format: date-time
          description: >-
            When the record was last changed in the billing system. The
            synchronization run that copies the data over does not move it.
          example: '2026-03-02T14:40:00.000Z'
          nullable: true
        editedBy:
          type: string
          description: >-
            Display name of the billing system's own user who changed the record
            there last.
          example: John Doe
          nullable: true
        renewalCount:
          type: integer
          description: >-
            How many times the subscription has been renewed for another term in
            the billing system.
          example: 2
          nullable: true
        teamName:
          type: string
          description: Sales team the subscription belongs to in the billing system.
          example: MENA Sales
          nullable: true
        user:
          type: string
          description: >-
            Display name of the salesperson the subscription is assigned to in
            the billing system. It is not the user the subscription entitles
            here.
          example: John Doe
          nullable: true
    entitySubscriptionsLimits:
      type: object
      properties:
        apiSealingTransactions:
          allOf:
            - $ref: >-
                #/components/schemas/entitySubscriptionsLimitsSealingTransactions
          description: >-
            Maximum number of sealing transactions consumed through Circularo
            API v2, per provider.
        apiSigningTransactions:
          type: integer
          description: >-
            Maximum number of signing transactions consumed through Circularo
            API v2.
          nullable: true
        apiTimestamps:
          type: array
          items:
            $ref: '#/components/schemas/entitySubscriptionsLimitsTimestamp'
          description: >-
            Limits for TSA providers when consumed through Circularo API v2
            (only applicable to organization subscription)
        documents:
          type: integer
          description: >-
            How many documents the organization may hold at the same time;
            folders are not counted. Creating, uploading or cloning a document
            that would exceed it is refused, unless the subscription is set to
            ignore limits. Read from the organization's subscription, not from
            the user's own one.
          nullable: true
        identities:
          allOf:
            - $ref: '#/components/schemas/entitySubscriptionsLimitsIdentities'
          description: >-
            How many identity verifications may be made through each identity
            provider - an external national or banking identity service a user
            authenticates with or links their account to. The value is kept per
            provider and read from the organization's subscription, not from the
            user's own one.
        kyc:
          allOf:
            - $ref: '#/components/schemas/entitySubscriptionsLimitsKyc'
          description: >-
            How many KYC verifications may be run through each KYC provider - an
            external service that checks a share recipient's identity document
            before they may act on a document. The value is kept per provider,
            and starting a verification is refused once that provider's value is
            reached, unless the subscription is set to ignore limits.
        liteUsers:
          type: integer
          description: >-
            How many lite users the organization may have - members restricted
            to its prepare, read and sign groups. A value of `0` makes lite
            users draw on `users` instead of having a quota of their own; adding
            a user beyond what is left is refused, unless the subscription is
            set to ignore limits.
          nullable: true
        sealingTransactions:
          allOf:
            - $ref: >-
                #/components/schemas/entitySubscriptionsLimitsSealingTransactions
          description: >-
            How many seals may be applied through each sealing provider - the
            certificate authority whose certificate the seal is made with. The
            value is kept per provider, and sealing is refused once that
            provider's value is reached, unless the subscription is set to
            ignore limits.
        sealingTransactionsPerUser:
          allOf:
            - $ref: >-
                #/components/schemas/entitySubscriptionsLimitsSealingTransactions
          description: >-
            How many of the organization's seals a single user may apply. The
            value is kept per sealing provider, the same way as in
            `sealingTransactions`.
        signingTransactions:
          type: integer
          description: >-
            How many signing transactions may be started. One is spent when a
            document is shared with recipients for signing, approval, review or
            acceptance, and one when a document is signed directly without a
            share. Sharing or signing is refused once the value is reached,
            unless the subscription is set to ignore limits.
          nullable: true
        signingTransactionsPerUser:
          type: integer
          description: >-
            How many of the organization's signing transactions a single user
            may start.
          nullable: true
        sms:
          type: integer
          description: >-
            How many text messages may be sent on the holder's behalf, such as
            the one-time codes a recipient verifies with. Sending is refused
            once the value is reached, unless the subscription is set to ignore
            limits.
          nullable: true
        storage:
          type: integer
          description: >-
            How many bytes of stored files the organization may occupy. Only
            files that have become a document's main file or one of its
            attachments are measured. Uploading a file that would exceed the
            value is refused, unless the subscription is set to ignore limits.
          example: 10737418240
          nullable: true
        storagePerUser:
          type: integer
          description: >-
            How many bytes of stored files a single user may occupy, counted
            over the files they own. Uploading a file that would exceed the
            value is refused, unless the subscription is set to ignore limits.
          example: 1073741824
          nullable: true
        templates:
          type: integer
          description: >-
            How many templates the organization may hold at the same time - the
            reusable preparations a document is sent for signing from. Creating
            a template that would exceed it is refused, unless the subscription
            is set to ignore limits.
          nullable: true
        templatesPerUser:
          type: integer
          description: How many templates a single user may own.
          nullable: true
        timestamps:
          type: array
          items:
            $ref: '#/components/schemas/entitySubscriptionsLimitsTimestamp'
          description: >-
            How many timestamps may be requested from each timestamping
            authority, as one entry per provider. Read from the organization's
            subscription, not from the user's own one.
        users:
          type: integer
          description: >-
            How many regular (non-lite) members the organization may have.
            Adding a user beyond the value is refused, unless the subscription
            is set to ignore limits. Read from the organization's subscription,
            not from the user's own one.
          nullable: true
    responseSubscriptionsSubscriptionItem:
      type: object
      properties:
        description:
          type: string
          description: >-
            The line as it reads on the order - the name the outside billing
            system displays for what was sold.
          example: Circularo Business - user
          nullable: true
        discount:
          type: number
          description: >-
            Discount granted on the line, as the percentage the outside billing
            system records on it. Only an administrator of the workspace is
            answered this field; the plainer particulars of the line reach an
            organization administrator as well.
          example: 10
          nullable: true
        distributorDiscount:
          type: number
          description: >-
            Discount the distributor is granted on the line, as the outside
            billing system records it. Only an administrator of the workspace is
            answered this field.
          example: 25
          nullable: true
        distributorPrice:
          type: number
          description: >-
            What the distributor is charged for the line, in the subscription's
            `currencyCode`. Only an administrator of the workspace is answered
            this field.
          example: 750
          nullable: true
        isMetered:
          type: boolean
          description: Is metered?
          nullable: true
        itemCategory:
          type: string
          description: Item category.
          nullable: true
        itemId:
          type: string
          description: Identifier of the matching order line in the outside billing system.
          example: '12345'
          nullable: true
        itemSku:
          type: string
          description: >-
            Name of the product sold on the line, as the outside billing
            system's product catalogue lists it.
          example: Circularo Business - user
          nullable: true
        itemType:
          type: string
          description: >-
            Whether the line is charged again with every invoice (`recurring`)
            or was charged once only (`one_time`).
          example: recurring
          nullable: true
        priceAfterDiscount:
          type: number
          description: >-
            What the line comes to altogether once the discount is taken off,
            tax included, in the subscription's `currencyCode`.
          example: 2400
          nullable: true
        priceBeforeDiscount:
          type: number
          description: >-
            What the line would come to at the full unit price, before any
            discount - `unitPrice` times `quantity`. Only an administrator of
            the workspace is answered this field.
          example: 2700
          nullable: true
        quantity:
          type: number
          description: How many units of the item were bought.
          example: 25
          nullable: true
        resellerDiscount:
          type: number
          description: >-
            Discount the reseller is granted on the line, as the outside billing
            system records it. Only an administrator of the workspace is
            answered this field.
          example: 15
          nullable: true
        resellerPrice:
          type: number
          description: >-
            What the reseller is charged for the line, in the subscription's
            `currencyCode`. Only an administrator of the workspace is answered
            this field.
          example: 900
          nullable: true
        taxes:
          type: number
          description: >-
            Tax charged on the line, in the subscription's `currencyCode`. Only
            an administrator of the workspace is answered this field.
          example: 400
          nullable: true
        unit:
          type: string
          description: >-
            Unit the quantity is expressed in, as the outside billing system
            names it.
          example: Units
          nullable: true
        unitPrice:
          type: number
          description: >-
            Price of a single unit before any discount, in the subscription's
            `currencyCode`.
          example: 108
          nullable: true
    responseSubscriptionsTrial:
      type: object
      properties:
        conversion:
          type: boolean
          description: >-
            Whether the trial is meant to be turned into a full subscription
            once it ends, rather than simply lapsing. Only an administrator of
            the workspace is answered this field; the rest of the block reaches
            an organization administrator as well.
          nullable: true
        endDate:
          type: string
          format: date-time
          description: >-
            When the agreed trial term ends. It records the term itself; what
            the platform acts on is the subscription's own period and state.
          example: '2026-02-14T23:59:59.000Z'
          nullable: true
        period:
          type: string
          description: >-
            How long the trial term was agreed to last. It is a record of the
            arrangement only - the period the subscription is actually measured
            over is `subscriptionPeriod`.
          example: 14d
          nullable: true
        startDate:
          type: string
          format: date-time
          description: >-
            When the agreed trial term begins. It records the term itself; the
            moment the subscription starts being measured is its own
            `startDate`.
          example: '2026-02-01T00:00:00.000Z'
          nullable: true
    entitySubscriptionsLimitsSealingTransactions:
      type: object
      properties:
        datasure:
          type: integer
          description: >-
            How many seals may be applied with Datasure, an external trust
            service provider. Sealing is refused once the value is reached,
            unless the subscription is set to ignore limits.
          nullable: true
        icaRemoteQualifiedSeal:
          type: integer
          description: >-
            How many seals may be applied with I.CA RemoteSeal, the
            organization's qualified electronic seal. A seal somebody asks for -
            including one applied while they download an audit trail or export
            sealed documents - is refused once the value is reached, unless the
            subscription is set to ignore limits; seals applied automatically,
            such as on completion, are counted but never refused.
          nullable: true
        internal:
          type: integer
          description: >-
            How many seals may be applied with the certificate Circularo manages
            for the workspace. Sealing is refused once the value is reached,
            unless the subscription is set to ignore limits.
          nullable: true
    entitySubscriptionsLimitsTimestamp:
      type: object
      properties:
        name:
          type: string
          description: >-
            Which TSA server the entry applies to, matching the `name` of one of
            the configured `tsaServers`. A server with no entry is unlimited.
          example: internal
        value:
          type: integer
          description: >-
            How many timestamps may be requested from this timestamping
            authority.
          nullable: true
      required:
        - name
    entitySubscriptionsLimitsIdentities:
      type: object
      properties:
        bankId:
          type: integer
          description: >-
            How many identity verifications may be made through BankID. One is
            spent on every successful authentication with it and when a user
            first links their account to it.
          nullable: true
        nafath:
          type: integer
          description: >-
            How many identity verifications may be made through Nafath, the
            national digital identity service of Saudi Arabia. One is spent on
            every successful authentication with it and when a user first links
            their account to it.
          nullable: true
        uaePass:
          type: integer
          description: >-
            How many identity verifications may be made through UAE PASS, the
            national digital identity service of the United Arab Emirates. One
            is spent on every successful authentication with it and when a user
            first links their account to it.
          nullable: true
    entitySubscriptionsLimitsKyc:
      type: object
      properties:
        identomat:
          type: integer
          description: >-
            How many KYC verifications may be run through Identomat, the
            external identity-document check a share recipient goes through.
            Starting a verification is refused once the value is reached, unless
            the subscription is set to ignore limits.
          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.