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

# Reassign a recipient of a transaction

> `POST /transactions/{id}/recipients/{recipientId}/reassign`

Hands a recipient's participation in a running transaction over to someone else. The previous participation is removed from the transaction — its identifier no longer resolves — and a new one, with a new identifier returned in the response, takes its place, inheriting every setting you do not override. The new recipient is notified right away.

Verification tied to the previous recipient personally — SMS, email, OAuth, Nafath, or the expected identity data of a KYC check — does not carry over: provide a new verification, or set it to `null` to remove it. For KYC, supply the new recipient's expected identity data, or set `expectedData` to `null` to keep the check without an identity match. A verification that carries nothing personal — a password, or a KYC check without expected identity data — is inherited unchanged. The recipient's private message is not carried over either and cannot be re-supplied here. Transaction editing must be enabled in your organization's Circularo settings.



## OpenAPI

````yaml /api-v2/openapi.json post /transactions/{id}/recipients/{recipientId}/reassign
openapi: 3.0.3
info:
  title: Circularo API v2
  description: >-
    Circularo API v2 gives programmatic access to Circularo, the platform for
    intelligent document management, electronic and digital signing, and the
    signing and approval processes that move your documents forward.


    Use this API to embed Circularo directly into your own products and systems:
    automate the document lifecycle end to end, send documents out to be signed
    and approved, collect the evidence of what happened, manage users and
    access, and stay in sync through real-time events.


    ## Capabilities


    * **Documents:** Create, organize, and search documents, then seal or
    annotate them, clone them, and create a shareable view link — with a
    tamper-proof audit trail behind every one.

    * **Transactions:** Send a document to one or more recipients to be signed,
    approved, reviewed, or accepted — in parallel or in a set order, with
    identity verification for recipients who have no Circularo account — or sign
    it yourself. Track a running transaction, remind, replace or remove its
    recipients, and cancel it.

    * **Templates:** Start a transaction from a template prepared in the
    Circularo web app, with its placed fields and recipient roles already laid
    out for you.

    * **Files, folders & metadata:** Upload reusable files, describe documents
    with metadata definitions, and organize them into personal or shared
    folders.

    * **Exports:** Download a document together with its audit trail and
    certificate of fulfillment, or have a whole folder tree, a filtered set of
    documents, or your own account data archived in the background.

    * **Administration:** Provision and manage the members of your organization,
    control who belongs to which group, and review a complete audit log of
    activity.

    * **Reporting:** Read organization-wide reports and predefined analytics
    dashboards.

    * **Real-time events:** Subscribe to webhooks to react the moment a document
    is created, signed, or completed.


    ## Authentication


    Authenticate every request with a long-lived API key. Create your first key
    from the Circularo web app, then create, list, and revoke additional keys
    through this API. Read `GET /me` to see which account a key belongs to and
    what it is allowed to do.
  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/v2
security:
  - ApiKey: []
tags:
  - name: API Keys
    description: >-
      An API key is the long-lived, secret credential your integration uses to
      authenticate with Circularo. A key stays valid as long as it is in regular
      use; store it securely, and revoke any key that is no longer needed or may
      have been exposed.
  - name: Audit Logs
    description: >-
      The audit log is the record of actions taken across your organization —
      who did what, to which entity, and when. Search and page through it,
      filtering by actor, activity, target and time range, with an offset for
      shallow access or an opaque cursor for deep traversal and exports.
  - name: Dashboards
    description: >-
      Dashboards are your organization's predefined analytics — document and
      transaction metrics aggregated for reporting and visualization. List the
      dashboards your account can access, then run one to read back its labeled,
      chart-ready data series.
  - name: Documents
    description: >-
      A document combines a main file with metadata, custom fields, and optional
      attachments — the central object you create, search, and manage in
      Circularo. Act on a document directly by sealing or annotating it, clone
      it, read the text of its main file, or create a shareable view link, and
      organize it into folders. Every document carries a transaction identifier
      for tracking its signing or approval process.
  - name: Exports
    description: >-
      An export job packages your documents, folders, or account data into a
      downloadable ZIP archive in the background. Create an export from the
      respective resource, poll it here until it completes, then download the
      resulting archive by its file identifier.
  - name: Files
    description: >-
      A file is a reusable binary you upload once and then reference by its
      identifier wherever a file is needed — as a document's main file, an
      attachment, or an image placed on a page. Upload files and download them
      again; for PDFs, you can also locate signature anchors at upload time.
  - name: Folders
    description: >-
      A folder organizes your documents into a tree — your personal tree, which
      is yours alone, or your organization's shared tree. Nest folders under one
      another, move them within their tree, and search across them to build and
      navigate the structure that fits your workflow.
  - name: Groups
    description: >-
      A group bundles the permissions and access granted to its members —
      including your organization itself, which is represented as a group.
      Browse the groups in your organization and manage who belongs to them.
      Both require organization administrator permissions.
  - name: Me
    description: >-
      The account that your API key belongs to — your identity, role, granted
      permissions, locale preferences, and account status. Read it to discover
      which account a key is connected to and what it is allowed to do.
  - name: Metadata Definitions
    description: >-
      A metadata definition describes the structure of a document — the metadata
      fields it accepts — so you know which metadata to supply when creating or
      working with documents. Browse the definitions available to your account.
  - name: Ping
    description: >-
      Check that Circularo API v2 is reachable and responding. Use it from your
      monitoring or before an integration run to verify connectivity. No
      authentication is required.
  - name: Reports
    description: >-
      A report is an organization-wide view over your documents and their
      transactions — each row pairs a document with the status, timing, activity
      counts and recipients of its transaction, for auditing signing activity,
      tracking processing times, and feeding compliance and analytics tooling.
      Filter by creation time, transaction status, metadata definition,
      category, creator and owner, and page through results with an offset or an
      opaque cursor.
  - name: Templates
    description: >-
      A template is a reusable blueprint for creating transactions, prepared in
      the Circularo web app. Every template carries document defaults — a source
      file, a name and a metadata definition; a signing template additionally
      carries the placed fields and defines the recipient roles and their
      routing. Browse the templates available to your account, then create a
      transaction from one by referencing it and casting recipients into its
      roles.
  - name: Transactions
    description: >-
      A transaction gets a document signed, approved, reviewed or accepted — by
      other people, by yourself, or both. Start one on an existing document or
      create the document in the same call; send it to recipients, defining who
      takes part, what each of them is asked to do, and optional verification
      for recipients without a Circularo account — or sign it yourself, which
      completes the transaction immediately. Once it is running, track its
      progress, remind recipients, update or reassign them, and cancel it when
      it is no longer needed. Transactions have no separate search — find them
      by searching your documents, each of which carries its transaction's
      status and pending recipients.
  - name: Users
    description: >-
      A user is a member of your organization. What they may do is set through
      their role, while the organization is assigned automatically.
      Provisioning, updating, and removing members requires organization
      administrator permissions.
  - name: Webhooks
    description: >-
      A webhook subscribes your systems to document events in your organization.
      Register an HTTPS callback URL to receive real-time notifications when
      documents are created, signed or completed; each payload can optionally
      carry a signature so you can verify it originates from Circularo. Managing
      webhooks requires organization administrator permissions.
externalDocs:
  description: Guides
  url: https://developers.circularo.com/latest/guides
paths:
  /transactions/{id}/recipients/{recipientId}/reassign:
    post:
      tags:
        - Transactions
      summary: Reassign a recipient of a transaction
      description: >-
        `POST /transactions/{id}/recipients/{recipientId}/reassign`


        Hands a recipient's participation in a running transaction over to
        someone else. The previous participation is removed from the transaction
        — its identifier no longer resolves — and a new one, with a new
        identifier returned in the response, takes its place, inheriting every
        setting you do not override. The new recipient is notified right away.


        Verification tied to the previous recipient personally — SMS, email,
        OAuth, Nafath, or the expected identity data of a KYC check — does not
        carry over: provide a new verification, or set it to `null` to remove
        it. For KYC, supply the new recipient's expected identity data, or set
        `expectedData` to `null` to keep the check without an identity match. A
        verification that carries nothing personal — a password, or a KYC check
        without expected identity data — is inherited unchanged. The recipient's
        private message is not carried over either and cannot be re-supplied
        here. Transaction editing must be enabled in your organization's
        Circularo settings.
      operationId: reassignTransactionRecipient
      parameters:
        - in: path
          name: id
          description: Identifier of the transaction the recipient takes part in.
          required: true
          schema:
            type: string
            pattern: ^[A-Za-z0-9_-]+$
            minLength: 1
            example: a0d01c9d-f72f-4c57-af11-e26bda19cc590
        - in: path
          name: recipientId
          description: Identifier of the participation to hand over to the new recipient.
          required: true
          schema:
            type: string
            pattern: ^[A-Za-z0-9_-]+$
            minLength: 1
            example: sd0oAvfpB4k0yDf787x4
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/reassignTransactionRecipient'
            example:
              recipient: laura.bennett@example.com
      responses:
        '200':
          description: Returns the new participation that replaces the previous one.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/transactionRecipient'
        '400':
          description: >-
            The request is malformed, a chosen KYC provider is unavailable,
            transaction editing is not enabled for your organization, or the
            participation cannot be reassigned.
          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: >-
            Your account does not have permission to manage this transaction, to
            require the requested recipient verification or to grant the
            `delegate` permission, or you may not share with the new recipient.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error'
              example:
                status: 403
                type: AUTH:ACCESS_DENIED
                message: Access denied
                requestId: 3fa85f6457174562b3fc2c963f66afa6
        '404':
          description: >-
            The transaction or the recipient does not exist or is not
            accessible.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error'
              example:
                status: 404
                type: RESOURCE:NOT_FOUND
                message: Resource not found
                requestId: 3fa85f6457174562b3fc2c963f66afa6
        '409':
          description: >-
            The transaction or the recipient's participation state does not
            allow the reassignment.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error'
              example:
                status: 409
                type: RESOURCE:STATE_CONFLICT
                message: Resource state conflict
                requestId: 3fa85f6457174562b3fc2c963f66afa6
        '429':
          description: >-
            Rate limit exceeded; retry after the delay indicated in the
            `Retry-After` header.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error'
              example:
                status: 429
                type: SYSTEM:RATE_LIMIT_EXCEEDED
                message: Rate limit exceeded
                requestId: 3fa85f6457174562b3fc2c963f66afa6
      security:
        - ApiKey: []
components:
  schemas:
    reassignTransactionRecipient:
      type: object
      properties:
        expiresAt:
          type: string
          format: date-time
          description: >-
            The deadline for the recipient to complete their action; after this
            moment the request expires. Must lie in the future. Set to `null` to
            remove the deadline.
          example: '2030-11-02T09:15:30.000Z'
          nullable: true
        permissions:
          type: array
          items:
            type: string
            enum:
              - print
              - delegate
              - viewMetadata
              - annotateOnReject
              - rejectWithoutComment
              - uploadFiles
            description: >-
              - `print`: The recipient may print the document.

              - `delegate`: The recipient may delegate their action to someone
              else.

              - `viewMetadata`: The recipient may view the document's metadata.

              - `annotateOnReject`: The recipient may add annotations when
              rejecting.

              - `rejectWithoutComment`: The recipient may reject without
              providing a comment.

              - `uploadFiles`: The recipient may upload attachment files to the
              document freely, beyond filling any pre-placed attachment fields.
          uniqueItems: true
          description: >-
            What the recipient is allowed to do with the shared document.
            Replaces the current permissions; an empty array removes all of
            them, `null` restores the default set.
          nullable: true
        recipient:
          type: string
          pattern: ^[A-Za-z0-9.@_+-]+$
          minLength: 1
          description: >-
            Identifier or email address of the new recipient. A user is looked
            up by identifier first, then by email address; an email address that
            matches no user makes the new recipient an external party without a
            Circularo account. Recipients outside your organization are allowed
            only when you may share outside it. A suspended user cannot become
            the new recipient.
          example: john.doe+member@example.com
        reminder:
          allOf:
            - $ref: '#/components/schemas/transactionReminderInput'
          description: >-
            Automatic reminders sent to the recipient until they complete their
            action. Set to `null` to stop sending them.
          nullable: true
        verification:
          allOf:
            - $ref: '#/components/schemas/recipientVerificationInput'
          description: >-
            Verification required from the recipient before they can access the
            document. Replaces the current verification; set to `null` to remove
            it. Applies to recipients without a Circularo account; ignored for
            account holders, who authenticate by signing in.
          nullable: true
      required:
        - recipient
      description: >-
        The new recipient of the participation, with optional overrides of its
        settings. An omitted field is inherited from the current participation;
        a `null` field is restored to its default.
    transactionRecipient:
      type: object
      properties:
        completedAt:
          type: string
          format: date-time
          description: >-
            When the recipient finished their participation — completed or
            rejected their action. Null while they have not finished it.
          example: '2024-11-02T09:15:30.000Z'
          nullable: true
        expiresAt:
          type: string
          format: date-time
          description: >-
            The deadline for the recipient to complete their action; after this
            moment the request expires. Null when there is no deadline.
          example: '2024-11-02T09:15:30.000Z'
          nullable: true
        id:
          type: string
          description: >-
            Identifier of the recipient's participation in the transaction. Null
            for a signature applied directly rather than through a request to a
            recipient, such as the document owner's own signature.
          example: sd0oAvfpB4k0yDf787x4
          nullable: true
        isMandatory:
          type: boolean
          description: >-
            Whether the recipient's rejection or expiry ends the whole
            transaction. A recipient who is not mandatory is still awaited, but
            the transaction goes on without them when they reject or their
            request expires.
        language:
          type: string
          pattern: ^[a-z][a-z-]+$
          minLength: 1
          description: >-
            Language of the notifications sent to the recipient. Null when none
            was set, so the default language applies.
          example: en
          nullable: true
        message:
          type: string
          description: >-
            The private message shown only to this recipient, as plain text: its
            formatting is dropped and every link is written as its text followed
            by its address in parentheses.
          example: Please sign by Friday.
          nullable: true
        order:
          type: integer
          description: >-
            The recipient's round in a sequential transaction — recipients act
            from the lowest order upwards, and recipients sharing an order act
            together in the same round. The value is relative: only the ordering
            and which recipients share a value are significant, not the absolute
            number. Null for parallel transactions and for the document owner's
            own signature.
          example: 1
          nullable: true
        permissions:
          type: array
          items:
            type: string
            enum:
              - print
              - delegate
              - viewMetadata
              - annotateOnReject
              - rejectWithoutComment
              - uploadFiles
            description: >-
              - `print`: The recipient may print the document.

              - `delegate`: The recipient may delegate their action to someone
              else.

              - `viewMetadata`: The recipient may view the document's metadata.

              - `annotateOnReject`: The recipient may add annotations when
              rejecting.

              - `rejectWithoutComment`: The recipient may reject without
              providing a comment.

              - `uploadFiles`: The recipient may upload attachment files to the
              document freely, beyond filling any pre-placed attachment fields.
          description: >-
            What the recipient is allowed to do with the shared document. Null
            for the document owner's own signature.
          nullable: true
        purpose:
          type: string
          description: >-
            What the recipient is asked to do with the document.


            - `view`: The recipient is given read-only access to the document.

            - `sign`: The recipient is requested to sign the document.

            - `approve`: The recipient is requested to approve the document.

            - `review`: The recipient is requested to review the document.

            - `accept`: The recipient is requested to accept the document.

            - `edit`: The recipient is requested to edit the document.

            - `execute`: The recipient is requested to perform a workflow action
            on the document.
          enum:
            - view
            - sign
            - approve
            - review
            - accept
            - edit
            - execute
            - null
          nullable: true
        quorum:
          type: integer
          description: >-
            How many recipients of the same order must complete their action for
            the transaction to move on. Null when all of them must, and for a
            recipient who only views the document.
          example: 1
          nullable: true
        recipient:
          allOf:
            - $ref: '#/components/schemas/person'
          description: >-
            The recipient — a Circularo user, or a party without an account
            identified by their email address. Null when it cannot be
            determined.
          nullable: true
        reminder:
          allOf:
            - $ref: '#/components/schemas/transactionReminder'
          description: >-
            Automatic reminders sent to the recipient until they complete their
            action. Null when no automatic reminders are sent.
          nullable: true
        status:
          type: string
          description: >-
            Current state of the recipient's participation. Live statuses
            (`queued`, `pending`, `viewed`) describe a running transaction; once
            the transaction reaches a terminal status, recipients that did not
            act keep the status they had.


            - `queued`: The recipient is not up yet — earlier recipients act
            first.

            - `pending`: The recipient is up and their action is awaited.

            - `viewed`: The recipient has opened the document.

            - `completed`: The recipient has completed their action.

            - `superseded`: The recipient did not act; a peer meeting the
            `quorum` completed the action for their order group.

            - `rejected`: The recipient has rejected the request.

            - `cancelled`: The recipient's participation was cancelled before
            they completed their action.

            - `expired`: The recipient's deadline passed before they completed
            their action.
          enum:
            - queued
            - pending
            - viewed
            - completed
            - superseded
            - rejected
            - cancelled
            - expired
          example: pending
        turnStartedAt:
          type: string
          format: date-time
          description: >-
            When the recipient came up in the transaction and their action
            became awaited. Null while their turn has not come yet.
          example: '2024-11-02T09:15:30.000Z'
          nullable: true
        verification:
          allOf:
            - $ref: '#/components/schemas/recipientVerification'
          description: >-
            Verification required from the recipient, keyed by the verification
            method. Null when no verification is required.
          nullable: true
      required:
        - completedAt
        - expiresAt
        - id
        - isMandatory
        - language
        - message
        - order
        - permissions
        - purpose
        - quorum
        - recipient
        - reminder
        - status
        - turnStartedAt
        - verification
      description: >-
        A recipient of the transaction and the current state of their
        participation.
    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
    transactionReminderInput:
      type: object
      properties:
        intervalDays:
          type: integer
          minimum: 1
          description: How many days pass between two reminders.
          example: 3
        startAt:
          type: string
          format: date-time
          description: >-
            When the first reminder is sent. Must lie in the future and, when
            `expiresAt` is sent alongside, before it.
          example: '2030-11-01T08:00:00.000Z'
      required:
        - intervalDays
        - startAt
      description: >-
        Automatic reminders sent to a recipient until they complete their
        action.
    recipientVerificationInput:
      type: object
      minProperties: 1
      maxProperties: 1
      properties:
        email:
          allOf:
            - $ref: '#/components/schemas/emailVerificationInput'
          description: Verify the recipient with a one-time code sent by email.
        kyc:
          allOf:
            - $ref: '#/components/schemas/kycVerificationInput'
          description: Verify the recipient's identity through a KYC provider.
        nafath:
          allOf:
            - $ref: '#/components/schemas/nafathVerificationInput'
          description: >-
            Verify the recipient's identity through the Nafath national identity
            service.
        oauth:
          allOf:
            - $ref: '#/components/schemas/oauthVerificationInput'
          description: Verify the recipient's identity through an OAuth identity provider.
        password:
          allOf:
            - $ref: '#/components/schemas/passwordVerificationInput'
          description: Verify the recipient with a password you share with them.
        sms:
          allOf:
            - $ref: '#/components/schemas/smsVerificationInput'
          description: Verify the recipient with a one-time code sent by SMS.
      description: >-
        Verification required from an external recipient, keyed by the
        verification method. Exactly one method can be enabled.
    person:
      type: object
      properties:
        email:
          type: string
          description: >-
            The person's email address. In a record of a past event it is the
            address the person had at that time; elsewhere it is their current
            address. Null when it is not known.
          example: jane.doe@example.com
          nullable: true
        fullname:
          type: string
          description: >-
            The person's full name. Null when it is not known, or when the
            person is outside your organization and not among your contacts.
          example: Jane Doe
          nullable: true
        userId:
          type: string
          description: >-
            Identifier of the person's Circularo account, the `id` of the user.
            Treat it as an opaque value: even where it looks like an email
            address, it is not one. Null for a party without a Circularo
            account.
          example: jane.doe@example.com
          nullable: true
      required:
        - email
        - fullname
        - userId
      description: >-
        A person the resource refers to: their Circularo account, if they have
        one, their email address and their name.
    transactionReminder:
      type: object
      properties:
        intervalDays:
          type: integer
          description: How many days pass between two reminders.
          example: 3
        startAt:
          type: string
          format: date-time
          description: When the first reminder is sent.
          example: '2024-11-02T09:15:30.000Z'
      required:
        - intervalDays
        - startAt
      description: >-
        Automatic reminders sent to a recipient until they complete their
        action.
    recipientVerification:
      type: object
      properties:
        email:
          allOf:
            - $ref: '#/components/schemas/emailVerification'
          description: The recipient is verified with a one-time code sent by email.
          nullable: true
        kyc:
          allOf:
            - $ref: '#/components/schemas/kycVerification'
          description: The recipient must verify their identity through a KYC provider.
          nullable: true
        nafath:
          allOf:
            - $ref: '#/components/schemas/nafathVerification'
          description: >-
            The recipient must verify their identity through the Nafath national
            identity service.
          nullable: true
        oauth:
          allOf:
            - $ref: '#/components/schemas/oauthVerification'
          description: >-
            The recipient must verify their identity through an OAuth identity
            provider.
          nullable: true
        password:
          allOf:
            - $ref: '#/components/schemas/passwordVerification'
          description: >-
            The recipient is verified with a password. The password itself is
            never returned.
          nullable: true
        sms:
          allOf:
            - $ref: '#/components/schemas/smsVerification'
          description: The recipient is verified with a one-time code sent by SMS.
          nullable: true
      required:
        - email
        - kyc
        - nafath
        - oauth
        - password
        - sms
      description: >-
        The verification required from a recipient, keyed by the verification
        method. Enabled methods carry their configuration; disabled ones are
        null.
    emailVerificationInput:
      type: object
      properties:
        address:
          type: string
          pattern: ^[A-Za-z0-9.@_+-]+$
          maxLength: 128
          format: email
          description: >-
            Email address the one-time code is sent to. Defaults to the
            recipient's own email address.
          example: jane.doe+2024@example.com
          nullable: true
      description: >-
        Email verification — a one-time code is sent to the recipient's email
        address.
    kycVerificationInput:
      type: object
      properties:
        documentTypes:
          type: array
          items:
            type: string
            enum:
              - idCard
              - passport
              - driverLicense
              - residencePermit
            description: |-
              - `idCard`: A national identity card.
              - `passport`: A passport.
              - `driverLicense`: A driver's license.
              - `residencePermit`: A residence permit.
          uniqueItems: true
          minItems: 1
          description: >-
            Identity document types the recipient may verify with. Requires the
            `idVerification` factor. Defaults to any document type the provider
            supports.
        expectedData:
          allOf:
            - $ref: '#/components/schemas/kycExpectedDataInput'
          description: >-
            Known identity details that the verified identity document must
            match. Requires the `idVerification` factor. When updating or
            reassigning a recipient, set to `null` to keep the KYC check but
            remove the identity data match.
          nullable: true
        factors:
          type: array
          items:
            type: string
            enum:
              - idVerification
              - livenessDetection
              - selfieWithId
            description: >-
              - `idVerification`: The recipient's identity document is verified.

              - `livenessDetection`: The recipient must pass a liveness check.

              - `selfieWithId`: The recipient must provide a selfie together
              with their identity document.
          uniqueItems: true
          minItems: 1
          description: Checks the KYC provider performs on the recipient.
          example:
            - idVerification
          default:
            - idVerification
        providers:
          type: array
          items:
            type: string
            maxLength: 128
            example: identomat
          uniqueItems: true
          minItems: 1
          description: >-
            KYC providers the recipient may verify through, each one available
            to your account.
      required:
        - providers
      description: >-
        KYC verification — the recipient must verify their identity through one
        of the allowed KYC providers.
    nafathVerificationInput:
      type: object
      properties:
        personId:
          type: string
          maxLength: 64
          description: Nafath person identifier the recipient must verify with.
          example: '1234567890'
      required:
        - personId
      description: >-
        Nafath verification — the recipient must verify their identity through
        the Nafath national identity service.
    oauthVerificationInput:
      type: object
      properties:
        factors:
          type: array
          items:
            $ref: '#/components/schemas/oauthFactorInput'
          description: >-
            Identity attributes to check after the recipient verifies through
            the provider. Defaults to checking that the verified email address
            matches the recipient.
        providers:
          type: array
          items:
            type: string
            maxLength: 128
            example: uaePass
          uniqueItems: true
          minItems: 1
          description: >-
            Identity providers the recipient may verify through, as configured
            for your environment.
      required:
        - providers
      description: >-
        OAuth verification — the recipient must verify their identity through
        one of the allowed identity providers.
    passwordVerificationInput:
      type: object
      properties:
        password:
          type: string
          maxLength: 255
          description: >-
            The password the recipient must enter to access the document. Share
            it with them through a channel of your own.
          example: SecurePassword123
      required:
        - password
      description: >-
        Password verification — the recipient must enter this password to access
        the document.
    smsVerificationInput:
      type: object
      properties:
        phone:
          type: string
          pattern: ^\+?[1-9]\d{1,14}$
          description: Phone number the one-time code is sent to.
          example: '+493012345678'
          nullable: true
      required:
        - phone
      description: >-
        SMS verification — a one-time code is sent to the recipient's phone
        number.
    emailVerification:
      type: object
      properties:
        address:
          type: string
          description: Anonymized email address the one-time code is sent to.
          example: j*****e@example.com
      required:
        - address
      description: >-
        Email verification — the recipient is verified with a one-time code sent
        by email.
    kycVerification:
      type: object
      properties:
        documentTypes:
          type: array
          items:
            type: string
            enum:
              - idCard
              - passport
              - driverLicense
              - residencePermit
            description: |-
              - `idCard`: A national identity card.
              - `passport`: A passport.
              - `driverLicense`: A driver's license.
              - `residencePermit`: A residence permit.
          description: >-
            Identity document types the recipient may verify with. Empty when
            any document type the provider supports is accepted.
        factors:
          type: array
          items:
            type: string
            enum:
              - idVerification
              - livenessDetection
              - selfieWithId
            description: >-
              - `idVerification`: The recipient's identity document is verified.

              - `livenessDetection`: The recipient must pass a liveness check.

              - `selfieWithId`: The recipient must provide a selfie together
              with their identity document.
          description: Checks the KYC provider performs on the recipient.
        providers:
          type: array
          items:
            type: string
            example: identomat
          description: KYC providers the recipient may verify through.
        requiredMatches:
          type: array
          items:
            type: string
            enum:
              - dateOfBirth
              - documentNumber
              - nationality
            description: >-
              - `dateOfBirth`: The recipient's date of birth must match the
              verified identity document.

              - `documentNumber`: The recipient's identity document number must
              match the verified identity document.

              - `nationality`: The recipient's nationality must match the
              verified identity document.
          description: >-
            Identity fields the verified document must match. The expected
            values themselves are never returned.
      required:
        - documentTypes
        - factors
        - providers
        - requiredMatches
      description: >-
        KYC verification — the recipient must verify their identity through one
        of the allowed KYC providers.
    nafathVerification:
      type: object
      properties:
        personId:
          type: string
          description: Anonymized Nafath person identifier the recipient must verify with.
          example: '********890'
      required:
        - personId
      description: >-
        Nafath verification — the recipient must verify their identity through
        the Nafath national identity service.
    oauthVerification:
      type: object
      properties:
        factors:
          type: array
          items:
            $ref: '#/components/schemas/oauthFactor'
          description: >-
            Identity attributes checked after the recipient verifies through the
            provider.
        providers:
          type: array
          items:
            type: string
            example: uaePass
          description: Identity providers the recipient may verify through.
      required:
        - factors
        - providers
      description: >-
        OAuth verification — the recipient must verify their identity through
        one of the allowed identity providers.
    passwordVerification:
      type: object
      additionalProperties: false
      description: >-
        Password verification — the recipient must enter a password to access
        the document. The password itself is never returned.
    smsVerification:
      type: object
      properties:
        phone:
          type: string
          description: Anonymized phone number the one-time code is sent to.
          example: '*****78'
      required:
        - phone
      description: >-
        SMS verification — the recipient is verified with a one-time code sent
        to their phone.
    kycExpectedDataInput:
      type: object
      properties:
        dateOfBirth:
          type: string
          format: date-time
          description: >-
            The recipient's date of birth. Provide a calendar date; if a time
            component is included it must be UTC (Zulu) at midnight, otherwise
            the date is rejected to avoid a time-zone day shift. At least one of
            `dateOfBirth`, `documentNumber` and `nationality` must be provided.
          example: '1988-11-13'
        documentNumber:
          type: string
          description: >-
            The recipient's identity document number. Matched exactly, ignoring
            case and whitespace. At least one of `dateOfBirth`, `documentNumber`
            and `nationality` must be provided.
          example: X1234567
          nullable: true
        nationality:
          type: string
          description: >-
            The recipient's nationality, matched exactly (case-insensitive).
            Typically an ISO 3166-1 alpha-3 country code, as returned by the KYC
            provider. At least one of `dateOfBirth`, `documentNumber` and
            `nationality` must be provided.
          example: CZE
          nullable: true
      description: >-
        Known identity details about a recipient that the verified identity
        document must match. At least one field is required.
    oauthFactorInput:
      type: object
      properties:
        type:
          type: string
          description: >-
            Which attribute of the verified identity is checked.


            - `email`: The email address returned by the identity provider must
            match the value.

            - `phoneNumber`: The phone number returned by the identity provider
            must match the value.

            - `emiratesId`: The Emirates ID returned by the identity provider
            must match the value.
          enum:
            - email
            - phoneNumber
            - emiratesId
          example: email
        value:
          type: string
          maxLength: 255
          description: >-
            The value the attribute must match. For the `email` attribute this
            has to be the recipient's own address; any other value is rejected.
          example: jane.doe@example.com
      required:
        - type
        - value
      description: An identity attribute to check during OAuth verification.
    oauthFactor:
      type: object
      properties:
        type:
          type: string
          description: >-
            Which attribute of the verified identity is checked.


            - `email`: The email address returned by the identity provider must
            match the value.

            - `phoneNumber`: The phone number returned by the identity provider
            must match the value.

            - `emiratesId`: The Emirates ID returned by the identity provider
            must match the value.
          enum:
            - email
            - phoneNumber
            - emiratesId
            - null
          nullable: true
        value:
          type: string
          description: Anonymized value the attribute must match.
          example: j*****e@example.com
          nullable: true
      required:
        - type
        - value
      description: An identity attribute checked during OAuth verification.
  securitySchemes:
    ApiKey:
      type: http
      scheme: bearer
      description: >-
        Authorize using an API key. Send it in the `Authorization: Bearer
        <api-key>` header. Only API keys are accepted — session tokens are
        rejected. Create your first API key in the Circularo web app; further
        keys can be managed through this API.

````

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