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

# Confirm a bulk adoption

> <Warning>**Under development.** This Payments PCR preview is subject to change. Endpoint descriptions distinguish current behavior from planned changes. Confirm availability with Lerian before integration.</Warning>

Second step of the bulk adoption. Creates a `BULK_ADOPTION` batch with one item per adoptable divergence of the inventory, for `productType` or for every type, and answers `202` with the batch.

<Info>**Providers:** Lerian (PCR).</Info>

**How it works**

- Call `GET /v1/collections/inventory-runs/{inventory_run_id}/bulk-adoption-preview` first. Send its `eligibleCount` as `expectedCount` and its `previewFingerprint`, with the same `productType`.
- Both values are recomputed over the adoptable group as it is now. A different count, or the same count over other divergences or accounts, is refused with `PBP-0822`.
- An inventory has one bulk adoption in progress at a time. Another is refused with `PBP-0823`.
- A `productType` outside 01 and 07 is refused with `PBP-0801`.
- The batch's divergences move to `RESOLVING`.
- A batch holds at most 5,000 items. With more adoptable divergences, it takes the 5,000 oldest. The rest wait for the next bulk adoption, after this one ends.
- Divergences of an ambiguous account or without an account are left out.
- Items are processed in the background, each by the rule of the single adoption. Follow them with `GET /v1/collections/enablement-batches/{batch_id}` and `GET /v1/collections/enablement-batches/{batch_id}/items`.
- The action is recorded in the audit trail as `BULK_ADOPT_AGREEMENT_DIVERGENCES`, with the reason.



## OpenAPI

````yaml /en/openapi/v3-current/payments-pcr.yaml post /v1/collections/inventory-runs/{inventory_run_id}/bulk-adoption
openapi: 3.1.0
info:
  title: Payments PCR preview
  version: 2026-11-23-preview
  description: >-
    Preview of Payments with boleto collections through Lerian (PCR), CNAB 240,
    electronic payers (DDA), bill payments, and shared administration. This
    reference includes current behavior and planned changes. Read each
    operation's provider information: some operations support BTG only today.
    The preview is under development and can change before release. Confirm
    availability with Lerian before integration.


    The webhooks section describes notices Payments sends to your callback URL.
    Verify the signature and timestamp before processing a notice. Use the
    eventId and X-Webhook-Id described by each notice to detect repeated
    delivery. Do not assume delivery order.
servers:
  - url: https://api.example.com
    description: >-
      Replace the example host with the URL provided during environment
      onboarding.
security: []
tags:
  - description: >-
      Tenant-level setup: connecting the banking provider and configuring where
      status notifications are delivered.
    name: Admin
  - description: Issuing, querying and cancelling boletos, and retrieving the rendered PDF.
    name: Boletos
  - name: CNAB Agreements
    description: >-
      CNAB agreements: the link between a Lerian-provider collections agreement
      and the CNAB 240 Lerian files of one account, with its remittance and
      return sequence numbers (NSA) and its return cut times. Every operation of
      this section answers 422 PBP-0900 to a tenant without CNAB 240 enabled.
  - name: CNAB Remittances
    description: >-
      CNAB remittances: the CNAB 240 Lerian remittance files of an organization,
      each received whole, validated and stored encrypted, its title lines
      executed afterwards. A file already received is answered with its stored
      receipt; a new one answers 422 PBP-0900 to a tenant without CNAB 240
      enabled.
  - name: CNAB Returns
    description: >-
      CNAB 240 Lerian return files, one per agreement and cut, built from the
      journal of what happened to the titles that entered by remittance, and
      their download. Every operation of this section answers 422 PBP-0900 to a
      tenant without CNAB 240 enabled.
  - description: >-
      Boleto collections agreements and their reconciliation with the
      beneficiary base of the PCR: the consumption of each beneficiary inventory
      the PCR publishes and the divergences it raises, which carry only
      agreement and situation attributes, never a document or a name. Every
      operation of this section answers 422 PBP-0830 to a tenant without
      collections enabled.
    name: Collections Agreements
  - description: >-
      Boleto collections audit trail: every operation and configuration action,
      append-only, with its author, instant, reason, evidence and the module's
      fields before and after it. Every operation of this section answers 422
      PBP-0830 to a tenant without collections enabled.
    name: Collections Audit
  - description: >-
      Boleto collections beneficiaries: the enablement of the tenant's accounts
      for collections, in batches of up to 5,000 accounts, and the progress and
      per-item outcome of the enablement and bulk adoption batches. Every
      operation of this section answers 422 PBP-0830 to a tenant without
      collections enabled.
    name: Collections Beneficiaries
  - name: Collections Credit Entries
    description: >-
      Boleto collections credit entries: what the credit of each write-off moves
      in the ledger, one entry per write-off and phase, the RELEASE to the
      available balance of the title's account and the CHARGEBACK of a write-off
      cancelled after its release, with where each entry stands with the ledger
      and, when it is not posted, why, as a closed code and never the ledger's
      own text. Every operation of this section answers 422 PBP-0830 to a tenant
      without collections enabled.
  - description: >-
      Boleto collections operation queues: each case that waits for an operator
      and already has its state in collections, with its reason, since when it
      waits and the operations that act on it, read over the states collections
      keeps rather than from a list of its own. Each queue counts the items
      whose age reached its age limit, a per-tenant operational parameter. Every
      operation of this section answers 422 PBP-0830 to a tenant without
      collections enabled.
    name: Collections Operation Queues
  - description: >-
      Boleto collections commands to the PCR: each registration, change and
      write-off sent to the PCR of the institution, with the idempotency key it
      keeps across attempts, its attempts, its next attempt and the last answer
      that did not accept it, never the body sent. Every operation of this
      section answers 422 PBP-0830 to a tenant without collections enabled.
    name: Collections PCR Commands
  - description: >-
      Boleto collections notice subscription of the tenant's connection to the
      PCR: its synchronization with the PCR, the rotation of the secret the PCR
      signs the notices with, the deliveries of notices the PCR recorded for it,
      and the redelivery of a notice whose delivery failed. Every operation of
      this section answers 422 PBP-0830 to a tenant without collections enabled.
    name: Collections PCR Connection
  - description: >-
      Boleto collections notices received from the PCR: each event the PCR of
      the institution delivered to collections, stored once per connection and
      event, with where its processing stands and what it was matched with,
      never the body received. Every operation of this section answers 422
      PBP-0830 to a tenant without collections enabled.
    name: Collections PCR Notices
  - description: >-
      Boleto collections pooled accounts: the links of accounts that issue under
      the agreement of a pooled account, whose holder stays the beneficiary
      while the account's holder is the final one. A link registers nothing at
      Núclea. Every operation of this section answers 422 PBP-0830 to a tenant
      without collections enabled.
    name: Collections Pooled Accounts
  - description: >-
      Boleto collections setup: the tenant's business settings, with the default
      agreement template, the automatic enablement and the retention periods,
      and the tenant's connection to the PCR of its institution. Every operation
      of this section answers 422 PBP-0830 to a tenant without collections
      enabled.
    name: Collections Settings
  - description: >-
      Boleto collections titles: each boleto collections issues at the PCR of
      the institution, with its four state axes (registration, situation at the
      base, credit and block), never the data of a payer or of a beneficiary.
      The barcode and the digitable line are answered only while the title is
      REGISTERED. Every operation of this section answers 422 PBP-0830 to a
      tenant without collections enabled.
    name: Collections Titles
  - name: Collections Write-offs
    description: >-
      Boleto collections write-offs: each write-off of a collections title the
      PCR of the institution notified, with its route, its settlement, the state
      of its credit, its hold and its cancellation deadline, never the data of a
      payer. Every operation of this section answers 422 PBP-0830 to a tenant
      without collections enabled.
  - description: >-
      Aggregated counts, amounts and breakdowns over a period, for boletos and
      for payments.
    name: Dashboards
  - name: Electronic payers
    description: >-
      Electronic payer (DDA): adhesion of the institution's customer to
      electronic presentment of boletos, its accounts and aggregates, and the
      outcome of each request. Under development: can change before it is
      released.
  - description: >-
      The notices Payments posts to the tenant's callback URL, one per type
      enabled in enabledEvents, each signed with the configuration's secret.
      Each item describes the body, the delivery headers, when the notice is
      sent and which providers send it. The webhook is the channel of the first
      delivery: delivery will later move to Lerian's Streaming Hub, which will
      then be the only channel, with a change of subscription and a migration
      plan communicated to the client.
    name: Notices
  - description: >-
      Paying bankslips, utility bills and DARF tax slips, and querying those
      payments.
    name: Payments
  - name: Presented boletos
    description: >-
      Boletos of other institutions presented to the electronic payer: list,
      detail, acceptance and authorized third parties. Under development: can
      change before it is released.
paths:
  /v1/collections/inventory-runs/{inventory_run_id}/bulk-adoption:
    post:
      tags:
        - Collections Agreements
      summary: Confirm a bulk adoption
      description: >-
        <Warning>**Under development.** This Payments PCR preview is subject to
        change. Endpoint descriptions distinguish current behavior from planned
        changes. Confirm availability with Lerian before integration.</Warning>


        Second step of the bulk adoption. Creates a `BULK_ADOPTION` batch with
        one item per adoptable divergence of the inventory, for `productType` or
        for every type, and answers `202` with the batch.


        <Info>**Providers:** Lerian (PCR).</Info>


        **How it works**


        - Call `GET
        /v1/collections/inventory-runs/{inventory_run_id}/bulk-adoption-preview`
        first. Send its `eligibleCount` as `expectedCount` and its
        `previewFingerprint`, with the same `productType`.

        - Both values are recomputed over the adoptable group as it is now. A
        different count, or the same count over other divergences or accounts,
        is refused with `PBP-0822`.

        - An inventory has one bulk adoption in progress at a time. Another is
        refused with `PBP-0823`.

        - A `productType` outside 01 and 07 is refused with `PBP-0801`.

        - The batch's divergences move to `RESOLVING`.

        - A batch holds at most 5,000 items. With more adoptable divergences, it
        takes the 5,000 oldest. The rest wait for the next bulk adoption, after
        this one ends.

        - Divergences of an ambiguous account or without an account are left
        out.

        - Items are processed in the background, each by the rule of the single
        adoption. Follow them with `GET
        /v1/collections/enablement-batches/{batch_id}` and `GET
        /v1/collections/enablement-batches/{batch_id}/items`.

        - The action is recorded in the audit trail as
        `BULK_ADOPT_AGREEMENT_DIVERGENCES`, with the reason.
      operationId: bulkAdoptInventoryRunDivergences
      parameters:
        - description: Identifier of the inventory consumption.
          in: path
          name: inventory_run_id
          required: true
          schema:
            description: Identifier of the inventory consumption.
            examples:
              - 0192a3b4-5c6d-7e8f-9a0b-1c2d3e4f5a20
            format: uuid
            type: string
        - description: >-
            Client-supplied idempotency key, a UUID. Required: a request without
            it, with a value that is not a UUID, or with the nil UUID
            (00000000-0000-0000-0000-000000000000) is refused with 400 PBP-0012.
          in: header
          name: Idempotency-Key
          required: true
          schema:
            description: >-
              Client-supplied idempotency key, a UUID. Required: a request
              without it, with a value that is not a UUID, or with the nil UUID
              (00000000-0000-0000-0000-000000000000) is refused with 400
              PBP-0012.
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/BulkAdoptionRequest'
        required: true
      responses:
        '202':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EnablementBatch'
          description: >-
            Accepted. The batch is created, and its items are processed in the
            background. Follow it with `GET
            /v1/collections/enablement-batches/{batch_id}`.
        '400':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Detail'
              examples:
                PBP-0001:
                  summary: 'PBP-0001: Body missing or invalid'
                  value:
                    type: https://errors.lerian.studio/v1/PBP-0001
                    title: Bad Request
                    status: 400
                    detail: the body is missing or is not valid JSON
                    code: PBP-0001
                PBP-0012:
                  summary: 'PBP-0012: Idempotency-Key missing'
                  value:
                    type: https://errors.lerian.studio/v1/PBP-0012
                    title: Idempotency Key Required
                    status: 400
                    detail: The Idempotency-Key header is required for this endpoint.
                    code: PBP-0012
          description: >-
            Bad Request.


            - `PBP-0001`: the body is missing or is not valid JSON.

            - `PBP-0012`: `Idempotency-Key` is missing, is not a UUID, or is the
            nil UUID.


            See the [error
            list](/en/reference/interfaces/payments-btg/payments-error-list) for
            every code.
        '401':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Detail'
              examples:
                PBP-0003:
                  summary: 'PBP-0003: Invalid credential'
                  value:
                    type: https://errors.lerian.studio/v1/PBP-0003
                    title: Unauthorized
                    status: 401
                    detail: Authentication is required to access this resource.
                    code: PBP-0003
          description: >-
            Unauthorized.


            - `PBP-0003`: the credential is missing or invalid, or does not
            identify a tenant. Get a valid bearer token.
        '403':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Detail'
              examples:
                PBP-0004:
                  summary: 'PBP-0004: No permission'
                  value:
                    type: https://errors.lerian.studio/v1/PBP-0004
                    title: Forbidden
                    status: 403
                    detail: You do not have permission to access this resource.
                    code: PBP-0004
          description: >-
            Forbidden.


            - `PBP-0004`: the credential does not have permission for this
            operation.
        '404':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Detail'
              examples:
                PBP-0005:
                  summary: 'PBP-0005: Consumption not found'
                  value:
                    type: https://errors.lerian.studio/v1/PBP-0005
                    title: Not Found
                    status: 404
                    detail: Not Found
                    code: PBP-0005
          description: |-
            Not Found.

            - `PBP-0005`: the tenant has no inventory consumption with this id.
        '409':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Detail'
              examples:
                PBP-0822:
                  summary: 'PBP-0822: Preview no longer holds'
                  value:
                    type: https://errors.lerian.studio/v1/PBP-0822
                    title: Bulk Adoption Preview Stale
                    status: 409
                    detail: Bulk Adoption Preview Stale
                    code: PBP-0822
                    details:
                      eligibleCount: 1287
                PBP-0823:
                  summary: 'PBP-0823: Bulk adoption in progress'
                  value:
                    type: https://errors.lerian.studio/v1/PBP-0823
                    title: Bulk Adoption In Progress
                    status: 409
                    detail: Bulk Adoption In Progress
                    code: PBP-0823
                    details:
                      batchId: 0196a3c2-8f4e-7b1a-9c2d-3e4f5a6b7c8d
                PBP-0007:
                  summary: 'PBP-0007: Same key still running'
                  value:
                    type: https://errors.lerian.studio/v1/PBP-0007
                    title: Request In Progress
                    status: 409
                    detail: >-
                      A request with this idempotency key is already being
                      processed.
                    code: PBP-0007
          description: >-
            Conflict.


            - `PBP-0822`: the preview no longer holds: the adoptable group has
            another count, or other divergences or accounts.
            `details.eligibleCount` has the count eligible now. Preview again
            and confirm under a new `Idempotency-Key`.

            - `PBP-0823`: the inventory has a bulk adoption in progress.
            `details.batchId` names its batch. Follow it with `GET
            /v1/collections/enablement-batches/{batch_id}`.

            - `PBP-0007`: an earlier request under the same `Idempotency-Key` is
            still running. Retry under the same key after a few seconds. The key
            answers this code for at most 5 minutes after the earlier request
            arrived. After that, the same key returns the stored answer, 500
            `PBP-0002` if it cannot be replayed, or runs the request if no
            answer was kept. Do not switch keys: the earlier request can still
            take effect.


            See the [error
            list](/en/reference/interfaces/payments-btg/payments-error-list) for
            every code.
        '413':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Detail'
              examples:
                PBP-0010:
                  summary: 'PBP-0010: Body too large'
                  value:
                    type: https://errors.lerian.studio/v1/PBP-0010
                    title: Request Entity Too Large
                    status: 413
                    detail: The request payload is too large.
                    code: PBP-0010
          description: |-
            Payload Too Large.

            - `PBP-0010`: the body is larger than the size limit.
        '422':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Detail'
              examples:
                PBP-0006:
                  summary: 'PBP-0006: Reason too short'
                  value:
                    type: https://errors.lerian.studio/v1/PBP-0006
                    title: Unprocessable Entity
                    status: 422
                    detail: >-
                      reason must have 10 to 500 characters of UTF-8 text,
                      without control characters other than tab and line breaks
                    code: PBP-0006
                PBP-0802:
                  summary: 'PBP-0802: Consumption not completed'
                  value:
                    type: https://errors.lerian.studio/v1/PBP-0802
                    title: Action Not Allowed In State
                    status: 422
                    detail: Action Not Allowed In State
                    code: PBP-0802
                    details:
                      currentState: PROCESSING
                PBP-0801:
                  summary: 'PBP-0801: Product type not offered'
                  value:
                    type: https://errors.lerian.studio/v1/PBP-0801
                    title: Capability Not Supported
                    status: 422
                    detail: product type other than 01 and 07
                    code: PBP-0801
                PBP-0830:
                  summary: 'PBP-0830: Collections not enabled'
                  value:
                    type: https://errors.lerian.studio/v1/PBP-0830
                    title: Collections Not Enabled
                    status: 422
                    detail: Collections Not Enabled
                    code: PBP-0830
                PBP-0013:
                  summary: 'PBP-0013: Key used with another body'
                  value:
                    type: https://errors.lerian.studio/v1/PBP-0013
                    title: Idempotency Key Conflict
                    status: 422
                    detail: >-
                      The request body does not match the original request for
                      this idempotency key.
                    code: PBP-0013
          description: >-
            Unprocessable Entity. Refused, and no batch was created.


            - `PBP-0006`: the body or `inventory_run_id` does not match the
            schema, or the reason has fewer than 10 characters once trimmed.

            - `PBP-0802`: the inventory consumption is not `COMPLETED`
            (`details.currentState` has its state), or a later consumption
            completed after it. Only the latest `COMPLETED` consumption can be
            adopted in bulk.

            - `PBP-0801`: `productType` is outside 01 and 07.

            - `PBP-0830`: collections is not enabled for the tenant. Retrying
            does not change the answer. Ask Lerian to add the collections module
            to the tenant.

            - `PBP-0013`: the same `Idempotency-Key` was sent with another body.
            Send a new request under a new key.


            See the [error
            list](/en/reference/interfaces/payments-btg/payments-error-list) for
            every code.
        '500':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Detail'
              examples:
                PBP-0002:
                  summary: 'PBP-0002: Unexpected failure'
                  value:
                    type: https://errors.lerian.studio/v1/PBP-0002
                    title: Internal Server Error
                    status: 500
                    detail: internal error
                    code: PBP-0002
          description: >-
            Internal Server Error.


            - `PBP-0002`: an unexpected failure, or the stored answer of this
            key cannot be replayed. Contact support. Do not resend under a new
            key: the earlier request may have taken effect.
        '503':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Detail'
              examples:
                PBP-0008:
                  summary: 'PBP-0008: Dependency unavailable'
                  value:
                    type: https://errors.lerian.studio/v1/PBP-0008
                    title: Service Unavailable
                    status: 503
                    detail: internal error
                    code: PBP-0008
          description: >-
            Service Unavailable.


            - `PBP-0008`: a dependency the request needs, authentication or the
            tenant's storage, is temporarily unavailable. The request was not
            processed. Retry under the same `Idempotency-Key`.
      security:
        - BearerAuth: []
components:
  schemas:
    BulkAdoptionRequest:
      additionalProperties: false
      properties:
        expectedCount:
          description: >-
            The preview's eligibleCount with the same filter: every adoptable
            divergence, even above 5,000. Another count than the current one is
            refused with 409 PBP-0822.
          examples:
            - 1840
          format: int64
          minimum: 1
          type: integer
        previewFingerprint:
          description: >-
            The preview's previewFingerprint with the same filter, recomputed
            over the adoptable group now; another one is refused with 409
            PBP-0822.
          examples:
            - 9f2c4e1a7b3d5f60812a4c6e8b0d2f4a6c8e0a2b4d6f8091a3c5e7f9b1d3f5a7
          pattern: ^[0-9a-f]{64}$
          type: string
        productType:
          description: >-
            Product type filter of the preview confirmed; left out for every
            type. Only 01 and 07 are adopted; any other is refused with 422
            PBP-0801.
          examples:
            - '01'
          pattern: ^[0-9]{2}$
          type: string
        reason:
          description: >-
            Reason for the bulk adoption, recorded in the audit trail. Must not
            carry personal data.
          examples:
            - Initial load reviewed with the treasury.
          maxLength: 500
          minLength: 10
          type: string
      required:
        - expectedCount
        - previewFingerprint
        - reason
      type: object
    EnablementBatch:
      additionalProperties: false
      properties:
        adopted:
          description: >-
            Items whose registration change was accepted and whose agreement
            became ACTIVE (BULK_ADOPTION; 0 in an enablement).
          examples:
            - 0
          format: int64
          minimum: 0
          type: integer
        completedAt:
          description: >-
            When the last item ended, RFC 3339 in UTC; null while the batch is
            PROCESSING.
          examples:
            - '2026-11-11T10:30:00Z'
          format: date-time
          type:
            - string
            - 'null'
        createdAt:
          description: When the batch was accepted, RFC 3339 in UTC.
          examples:
            - '2026-11-11T10:00:00Z'
          format: date-time
          type: string
        enabled:
          description: Items whose holder was accepted (ENABLEMENT; 0 in a bulk adoption).
          examples:
            - 4900
          format: int64
          minimum: 0
          type: integer
        failed:
          description: Items that ended with an error.
          examples:
            - 20
          format: int64
          minimum: 0
          type: integer
        id:
          description: Identifier of the batch.
          examples:
            - 0192a3b4-5c6d-7e8f-9a0b-1c2d3e4f5a21
          format: uuid
          type: string
        inventoryRunId:
          description: Inventory the bulk adoption adopts from; null for an enablement.
          examples:
            - 0192a3b4-5c6d-7e8f-9a0b-1c2d3e4f5a31
          format: uuid
          type:
            - string
            - 'null'
        kind:
          description: >-
            ENABLEMENT: an enablement of accounts (createEnablementBatch).
            BULK_ADOPTION: a bulk adoption of the MISSING_LOCALLY divergences of
            an inventory.
          enum:
            - ENABLEMENT
            - BULK_ADOPTION
          examples:
            - ENABLEMENT
          type: string
        pending:
          description: >-
            Items still in progress, including those HELD_BY_ALERT and the
            adoptions waiting for the Núclea to accept the registration change
            (DDA0502).
          examples:
            - 80
          format: int64
          minimum: 0
          type: integer
        productTypeFilter:
          description: >-
            Product type the bulk adoption is limited to; null for every product
            type, and for an enablement.
          examples:
            - '01'
          pattern: ^[0-9]{2}$
          type:
            - string
            - 'null'
        state:
          description: >-
            PROCESSING while an item is in progress; then COMPLETED when every
            item succeeded, or COMPLETED_WITH_ERRORS when some item failed.
          enum:
            - PROCESSING
            - COMPLETED
            - COMPLETED_WITH_ERRORS
          examples:
            - PROCESSING
          type: string
        totalItems:
          description: Items of the batch.
          examples:
            - 5000
          format: int64
          maximum: 5000
          minimum: 1
          type: integer
      required:
        - id
        - kind
        - state
        - totalItems
        - enabled
        - adopted
        - pending
        - failed
        - createdAt
      type: object
    Detail:
      additionalProperties: true
      properties:
        code:
          description: >-
            Stable, machine-readable domain error code scoped to the emitting
            service (format: <SERVICE>-NNNN).
          type: string
        detail:
          description: >-
            A human-readable explanation specific to this occurrence of the
            problem.
          examples:
            - Property foo is required but is missing.
          type: string
        errors:
          description: Optional list of individual error details
          items:
            $ref: '#/components/schemas/ErrorDetail'
          type:
            - array
            - 'null'
        instance:
          description: >-
            A URI reference that identifies the specific occurrence of the
            problem.
          examples:
            - https://example.com/error-log/abc123
          format: uri
          type: string
        status:
          description: HTTP status code
          examples:
            - 400
          format: int64
          type: integer
        title:
          description: >-
            A short, human-readable summary of the problem type. This value
            should not change between occurrences of the error.
          examples:
            - Bad Request
          type: string
        type:
          default: about:blank
          description: A URI reference to human-readable documentation for the error.
          examples:
            - https://example.com/errors/example
          format: uri
          type: string
        upstream:
          $ref: '#/components/schemas/Upstream'
          description: >-
            RFC 9457 extension member: the error a proxied third-party provider
            reported. Absent unless the emitting service explicitly surfaced
            one.
      type: object
    ErrorDetail:
      additionalProperties: false
      properties:
        location:
          description: >-
            Where the error occurred, e.g. 'body.items[3].tags' or
            'path.thing-id'
          type: string
        message:
          description: Error message text
          type: string
        value:
          description: 'Never returned: the service drops the rejected value.'
      type: object
    Upstream:
      additionalProperties: false
      properties:
        code:
          description: The upstream provider's own error code, verbatim.
          examples:
            - E4001
          type: string
        message:
          description: >-
            The upstream provider's own error message, verbatim (bounded, never
            its raw response body).
          examples:
            - account not found at provider
          type: string
      type: object
  securitySchemes:
    BearerAuth:
      bearerFormat: JWT
      description: JWT bearer token issued by the identity provider.
      scheme: bearer
      type: http

````

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