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

# Break down a root session's billed cost

> Returns a root session's billed cost split by source, charge kind and model, read in one ledger snapshot. Amounts are billed amounts only. The breakdown covers the same trees the session's costUsd counts: its own tree and the linked roots costUsd includes, which are aggregated by role (subagent; oversight, the advisor or supervisor configured under the agent's oversight settings; grader) and never identified. bookedAtGte and bookedAtLt select a half-open booking window [bookedAtGte, bookedAtLt): a window selects charges by when they were booked and corrections by when they were made, so it can hold a correction to a charge booked before it. computeEstimateUsd, the estimate for sandbox compute still running and not yet booked, is returned only without a window; then totalUsd equals the session's costUsd read at the same moment. A session id that is not a root is rejected with 400 naming its root. A 503 session_cost_unavailable means the cost could not be read whole right now; it is retryable after the Retry-After delay. Each serving process admits at most 2 breakdowns at once for one organization and 4 in all; a request waits up to 2 seconds for a slot. If the organization's slot does not free in that time it answers 429 session_cost_breakdown_limit with details.limit, so read fewer at a time; if shared capacity does not, it answers 503 session_cost_unavailable. Both carry Retry-After. A 409 session_cost_withheld means the session exists but its cost is withheld in its current state, as its costUsd is; count that session's cost as unknown, not zero. For a campaign total, list its roots with managedAgentsListSessionsV2 filtered by metadataAll and rootOnly=true, then read this operation for each root, at most 2 at a time; if any root's cost is withheld, report the total as incomplete.



## OpenAPI

````yaml /recursion/openapi.yaml get /managed-agents/v2/sessions/{sessionId}/cost
openapi: 3.1.0
info:
  title: Managed Agents API
  version: 0.18.0
  description: >-
    The Recursion Managed Agents REST API. Authenticate with a Recursion API key
    as a bearer token. An organization-scoped key acts in its own organization
    and needs nothing else; a tenant-scoped key must also send
    `x-organization-id` with an organization id or `default`. Field names follow
    each operation's published schema.
servers:
  - url: https://api.recursion.labelbox.com
security:
  - bearerAuth: []
paths:
  /managed-agents/v2/sessions/{sessionId}/cost:
    get:
      tags:
        - Sessions
      summary: Break down a root session's billed cost
      description: >-
        Returns a root session's billed cost split by source, charge kind and
        model, read in one ledger snapshot. Amounts are billed amounts only. The
        breakdown covers the same trees the session's costUsd counts: its own
        tree and the linked roots costUsd includes, which are aggregated by role
        (subagent; oversight, the advisor or supervisor configured under the
        agent's oversight settings; grader) and never identified. bookedAtGte
        and bookedAtLt select a half-open booking window [bookedAtGte,
        bookedAtLt): a window selects charges by when they were booked and
        corrections by when they were made, so it can hold a correction to a
        charge booked before it. computeEstimateUsd, the estimate for sandbox
        compute still running and not yet booked, is returned only without a
        window; then totalUsd equals the session's costUsd read at the same
        moment. A session id that is not a root is rejected with 400 naming its
        root. A 503 session_cost_unavailable means the cost could not be read
        whole right now; it is retryable after the Retry-After delay. Each
        serving process admits at most 2 breakdowns at once for one organization
        and 4 in all; a request waits up to 2 seconds for a slot. If the
        organization's slot does not free in that time it answers 429
        session_cost_breakdown_limit with details.limit, so read fewer at a
        time; if shared capacity does not, it answers 503
        session_cost_unavailable. Both carry Retry-After. A 409
        session_cost_withheld means the session exists but its cost is withheld
        in its current state, as its costUsd is; count that session's cost as
        unknown, not zero. For a campaign total, list its roots with
        managedAgentsListSessionsV2 filtered by metadataAll and rootOnly=true,
        then read this operation for each root, at most 2 at a time; if any
        root's cost is withheld, report the total as incomplete.
      operationId: managedAgentsGetSessionCostV2
      parameters:
        - description: >-
            Inclusive start of the booking window, RFC 3339. Omit for an open
            start. Charges are selected by when they were booked and corrections
            by when they were made.
          in: query
          name: bookedAtGte
          schema:
            description: >-
              Inclusive start of the booking window, RFC 3339. Omit for an open
              start. Charges are selected by when they were booked and
              corrections by when they were made.
            format: date-time
            type: string
            x-recursion-omission:
              strategy: absent
        - description: >-
            Exclusive end of the booking window, RFC 3339; must be after
            bookedAtGte. Omit for an open end.
          in: query
          name: bookedAtLt
          schema:
            description: >-
              Exclusive end of the booking window, RFC 3339; must be after
              bookedAtGte. Omit for an open end.
            format: date-time
            type: string
            x-recursion-omission:
              strategy: absent
        - description: >-
            Root session id (UUID). A session that is not a root is rejected
            with 400 naming its root.
          in: path
          name: sessionId
          required: true
          schema:
            description: >-
              Root session id (UUID). A session that is not a root is rejected
              with 400 naming its root.
            format: uuid
            type: string
        - $ref: '#/components/parameters/RecursionTenantId'
        - $ref: '#/components/parameters/RecursionOrganizationId'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SessionCostBreakdown'
          description: >-
            A root session's billed cost split by source, charge kind and model,
            over the same trees its costUsd counts, read in one ledger snapshot.
            Amounts are billed amounts. A booking window selects charges by when
            they were booked and corrections by when they were made.
          headers:
            recursion-organization-id:
              $ref: '#/components/headers/RecursionOrganizationId'
            recursion-tenant-id:
              $ref: '#/components/headers/RecursionTenantId'
        '400':
          description: Bad Request.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ManagedAgentsApiErrorInvalidRequest'
                x-recursion-error-codes:
                  - invalid_request
          headers:
            recursion-organization-id:
              $ref: '#/components/headers/RecursionOrganizationId'
            recursion-tenant-id:
              $ref: '#/components/headers/RecursionTenantId'
        '401':
          description: Unauthorized.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ManagedAgentsApiErrorUnauthorized'
                x-recursion-error-codes:
                  - unauthorized
          headers:
            recursion-organization-id:
              $ref: '#/components/headers/RecursionOrganizationId'
            recursion-tenant-id:
              $ref: '#/components/headers/RecursionTenantId'
        '403':
          description: Forbidden.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ManagedAgentsApiErrorForbidden'
                x-recursion-error-codes:
                  - forbidden
          headers:
            recursion-organization-id:
              $ref: '#/components/headers/RecursionOrganizationId'
            recursion-tenant-id:
              $ref: '#/components/headers/RecursionTenantId'
        '404':
          description: Not Found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ManagedAgentsApiErrorNotFound'
                x-recursion-error-codes:
                  - not_found
          headers:
            recursion-organization-id:
              $ref: '#/components/headers/RecursionOrganizationId'
            recursion-tenant-id:
              $ref: '#/components/headers/RecursionTenantId'
        '409':
          description: Conflict.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ManagedAgentsApiErrorSessionCostWithheld'
                x-recursion-error-codes:
                  - session_cost_withheld
          headers:
            recursion-organization-id:
              $ref: '#/components/headers/RecursionOrganizationId'
            recursion-tenant-id:
              $ref: '#/components/headers/RecursionTenantId'
        '413':
          description: Payload Too Large.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ManagedAgentsApiErrorPayloadTooLarge'
                x-recursion-error-codes:
                  - payload_too_large
          headers:
            recursion-organization-id:
              $ref: '#/components/headers/RecursionOrganizationId'
            recursion-tenant-id:
              $ref: '#/components/headers/RecursionTenantId'
        '429':
          headers:
            Retry-After:
              description: >-
                When present, delay in seconds or an HTTP-date after which the
                caller may retry; absence supplies no retry advice.
              schema:
                type: string
              style: simple
            recursion-organization-id:
              $ref: '#/components/headers/RecursionOrganizationId'
            recursion-tenant-id:
              $ref: '#/components/headers/RecursionTenantId'
          description: Too Many Requests.
          content:
            application/json:
              schema:
                oneOf:
                  - $ref: >-
                      #/components/schemas/ManagedAgentsApiErrorRateLimitExceeded
                  - $ref: >-
                      #/components/schemas/ManagedAgentsApiErrorSessionCostBreakdownLimit
                discriminator:
                  propertyName: code
                  mapping:
                    rate_limit_exceeded: >-
                      #/components/schemas/ManagedAgentsApiErrorRateLimitExceeded
                    session_cost_breakdown_limit: >-
                      #/components/schemas/ManagedAgentsApiErrorSessionCostBreakdownLimit
                x-recursion-error-codes:
                  - rate_limit_exceeded
                  - session_cost_breakdown_limit
        '500':
          description: Internal Server Error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ManagedAgentsApiErrorInternalError'
                x-recursion-error-codes:
                  - internal_error
          headers:
            recursion-organization-id:
              $ref: '#/components/headers/RecursionOrganizationId'
            recursion-tenant-id:
              $ref: '#/components/headers/RecursionTenantId'
        '502':
          description: A dependent service returned an invalid response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ManagedAgentsApiErrorDependencyFailure'
                x-recursion-error-codes:
                  - bad_gateway
          headers:
            recursion-organization-id:
              $ref: '#/components/headers/RecursionOrganizationId'
            recursion-tenant-id:
              $ref: '#/components/headers/RecursionTenantId'
        '503':
          headers:
            Retry-After:
              description: >-
                When present, delay in seconds or an HTTP-date after which the
                caller may retry; absence supplies no retry advice.
              schema:
                type: string
              style: simple
            recursion-organization-id:
              $ref: '#/components/headers/RecursionOrganizationId'
            recursion-tenant-id:
              $ref: '#/components/headers/RecursionTenantId'
          description: Service Unavailable.
          content:
            application/json:
              schema:
                oneOf:
                  - $ref: >-
                      #/components/schemas/ManagedAgentsApiErrorManagedAgentsUnavailable
                  - $ref: >-
                      #/components/schemas/ManagedAgentsApiErrorServiceUnavailable
                  - $ref: >-
                      #/components/schemas/ManagedAgentsApiErrorSessionCostUnavailable
                  - $ref: >-
                      #/components/schemas/ManagedAgentsApiErrorSessionCostUnconfigured
                discriminator:
                  propertyName: code
                  mapping:
                    managed_agents_unavailable: >-
                      #/components/schemas/ManagedAgentsApiErrorManagedAgentsUnavailable
                    service_unavailable: >-
                      #/components/schemas/ManagedAgentsApiErrorServiceUnavailable
                    session_cost_unavailable: >-
                      #/components/schemas/ManagedAgentsApiErrorSessionCostUnavailable
                    session_cost_unconfigured: >-
                      #/components/schemas/ManagedAgentsApiErrorSessionCostUnconfigured
                x-recursion-error-codes:
                  - managed_agents_unavailable
                  - service_unavailable
                  - session_cost_unavailable
                  - session_cost_unconfigured
        '504':
          headers:
            Retry-After:
              description: When to retry, as delay seconds or an HTTP date.
              schema:
                type: string
            recursion-organization-id:
              $ref: '#/components/headers/RecursionOrganizationId'
            recursion-tenant-id:
              $ref: '#/components/headers/RecursionTenantId'
          description: A dependent service timed out.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ManagedAgentsApiErrorDependencyTimeout'
                x-recursion-error-codes:
                  - gateway_timeout
components:
  parameters:
    RecursionTenantId:
      name: x-tenant-id
      in: header
      required: false
      description: >-
        Optional tenant consistency check. When present, it must name the tenant
        bound to the API key, including when x-organization-id is `default`.
      schema:
        minLength: 1
        type: string
    RecursionOrganizationId:
      name: x-organization-id
      in: header
      required: false
      description: >-
        Organization in which to act. Required for a tenant-scoped API key.
        Optional for an organization-scoped key, where it must name that same
        organization. The value may be an organization id or `default`.
      schema:
        minLength: 1
        type: string
  schemas:
    SessionCostBreakdown:
      description: >-
        A root session's billed cost split by source, charge kind and model,
        over the same trees its costUsd counts, read in one ledger snapshot.
        Amounts are billed amounts. A booking window selects charges by when
        they were booked and corrections by when they were made.
      properties:
        bookedAtGte:
          description: >-
            Start of the booking window, inclusive, as requested. Absent for an
            open start.
          format: date-time
          type: string
        bookedAtLt:
          description: >-
            End of the booking window, exclusive, as requested. Absent for an
            open end.
          format: date-time
          type: string
        bookedUsd:
          description: >-
            Sum of every item's billedUsd: charges booked in the window and
            corrections booked in it, at the billed price.
          examples:
            - '1.234567'
          type: string
        computeEstimateUsd:
          description: >-
            Billed estimate for sandbox compute still running and not yet
            booked, as costUsd includes it. Present only when the request has no
            window, because unbooked compute has no booking time.
          examples:
            - '0.12'
          type: string
        costState:
          description: >-
            The costState the session's costUsd shows: final once every included
            tree has ended and settled, so_far while the cost can still grow.
          enum:
            - final
            - so_far
          type: string
        items:
          description: >-
            Billed amounts by source, charge kind and model, for the bookings in
            the window. Items with nothing booked in the window are left out.
          items:
            $ref: '#/components/schemas/SessionCostBreakdownItem'
          type: array
        readAt:
          description: RFC 3339 timestamp of the ledger snapshot every amount was read at.
          format: date-time
          type: string
        sessionId:
          description: Root session whose cost this is (UUID).
          type: string
        totalUsd:
          description: >-
            Billed total as an exact canonical decimal USD string: bookedUsd
            plus computeEstimateUsd when the request has no window, otherwise
            bookedUsd. Without a window it equals the session's costUsd read at
            the same moment. A window that holds only corrections can be
            negative.
          examples:
            - '1.234567'
          type: string
        unsettledAttempts:
          $ref: '#/components/schemas/SessionCostUnsettledAttempts'
          description: >-
            Billable requests over the included trees whose charge is not
            settled. These count ledger requests only: running sandbox compute
            keeps accruing while they stay the same. A finished tree whose
            compute has stopped can stay so_far while indeterminate requests
            remain, because the provider may still report a charge for them.
      required:
        - sessionId
        - readAt
        - totalUsd
        - bookedUsd
        - costState
        - unsettledAttempts
        - items
      type: object
      additionalProperties: false
    ManagedAgentsApiErrorInvalidRequest:
      type: object
      properties:
        code:
          type: string
          minLength: 1
          description: Stable machine-readable error code.
          enum:
            - invalid_request
        message:
          type: string
          minLength: 1
          description: Human-readable error message.
        details:
          $ref: '#/components/schemas/ManagedAgentsApiErrorDetails'
          description: >-
            Optional structured error details. Reserved transport fields are
            typed; code-specific fields remain forward compatible.
      required:
        - code
        - message
      additionalProperties: false
      description: Standard flat error response.
    ManagedAgentsApiErrorUnauthorized:
      type: object
      properties:
        code:
          type: string
          minLength: 1
          description: Stable machine-readable error code.
          enum:
            - unauthorized
        message:
          type: string
          minLength: 1
          description: Human-readable error message.
        details:
          $ref: '#/components/schemas/ManagedAgentsApiErrorDetails'
          description: >-
            Optional structured error details. Reserved transport fields are
            typed; code-specific fields remain forward compatible.
      required:
        - code
        - message
      additionalProperties: false
      description: Standard flat error response.
    ManagedAgentsApiErrorForbidden:
      type: object
      properties:
        code:
          type: string
          minLength: 1
          description: Stable machine-readable error code.
          enum:
            - forbidden
        message:
          type: string
          minLength: 1
          description: Human-readable error message.
        details:
          $ref: '#/components/schemas/ManagedAgentsApiErrorDetails'
          description: >-
            Optional structured error details. Reserved transport fields are
            typed; code-specific fields remain forward compatible.
      required:
        - code
        - message
      additionalProperties: false
      description: Standard flat error response.
    ManagedAgentsApiErrorNotFound:
      type: object
      properties:
        code:
          type: string
          minLength: 1
          description: Stable machine-readable error code.
          enum:
            - not_found
        message:
          type: string
          minLength: 1
          description: Human-readable error message.
        details:
          $ref: '#/components/schemas/ManagedAgentsApiErrorDetails'
          description: >-
            Optional structured error details. Reserved transport fields are
            typed; code-specific fields remain forward compatible.
      required:
        - code
        - message
      additionalProperties: false
      description: Standard flat error response.
    ManagedAgentsApiErrorSessionCostWithheld:
      type: object
      properties:
        code:
          type: string
          minLength: 1
          description: Stable machine-readable error code.
          enum:
            - session_cost_withheld
        message:
          type: string
          minLength: 1
          description: Human-readable error message.
        details:
          $ref: '#/components/schemas/ManagedAgentsApiErrorDetails'
          description: >-
            Optional structured error details. Reserved transport fields are
            typed; code-specific fields remain forward compatible.
      required:
        - code
        - message
      additionalProperties: false
      description: Standard flat error response.
    ManagedAgentsApiErrorPayloadTooLarge:
      type: object
      properties:
        code:
          type: string
          minLength: 1
          description: Stable machine-readable error code.
          enum:
            - payload_too_large
        message:
          type: string
          minLength: 1
          description: Human-readable error message.
        details:
          $ref: '#/components/schemas/ManagedAgentsApiErrorDetails'
          description: >-
            Optional structured error details. Reserved transport fields are
            typed; code-specific fields remain forward compatible.
      required:
        - code
        - message
      additionalProperties: false
      description: Standard flat error response.
    ManagedAgentsApiErrorRateLimitExceeded:
      type: object
      properties:
        code:
          type: string
          minLength: 1
          description: Stable machine-readable error code.
          enum:
            - rate_limit_exceeded
        message:
          type: string
          minLength: 1
          description: Human-readable error message.
        details:
          $ref: '#/components/schemas/ManagedAgentsApiErrorDetails'
          description: >-
            Optional structured error details. Reserved transport fields are
            typed; code-specific fields remain forward compatible.
      required:
        - code
        - message
      additionalProperties: false
      description: Standard flat error response.
    ManagedAgentsApiErrorSessionCostBreakdownLimit:
      type: object
      properties:
        code:
          type: string
          minLength: 1
          description: Stable machine-readable error code.
          enum:
            - session_cost_breakdown_limit
        message:
          type: string
          minLength: 1
          description: Human-readable error message.
        details:
          $ref: '#/components/schemas/ManagedAgentsApiErrorDetails'
          description: >-
            Optional structured error details. Reserved transport fields are
            typed; code-specific fields remain forward compatible.
      required:
        - code
        - message
      additionalProperties: false
      description: Standard flat error response.
    ManagedAgentsApiErrorInternalError:
      type: object
      properties:
        code:
          type: string
          minLength: 1
          description: Stable machine-readable error code.
          enum:
            - internal_error
        message:
          type: string
          minLength: 1
          description: Human-readable error message.
        details:
          $ref: '#/components/schemas/ManagedAgentsApiErrorDetails'
          description: >-
            Optional structured error details. Reserved transport fields are
            typed; code-specific fields remain forward compatible.
      required:
        - code
        - message
      additionalProperties: false
      description: Standard flat error response.
    ManagedAgentsApiErrorDependencyFailure:
      type: object
      properties:
        code:
          type: string
          minLength: 1
          description: Stable machine-readable error code.
          enum:
            - bad_gateway
        message:
          type: string
          minLength: 1
          description: Human-readable error message.
        details:
          $ref: '#/components/schemas/ManagedAgentsApiErrorDetails'
          description: >-
            Optional structured error details. Reserved transport fields are
            typed; code-specific fields remain forward compatible.
      required:
        - code
        - message
      additionalProperties: false
      description: Standard flat error response.
    ManagedAgentsApiErrorManagedAgentsUnavailable:
      type: object
      properties:
        code:
          type: string
          minLength: 1
          description: Stable machine-readable error code.
          enum:
            - managed_agents_unavailable
        message:
          type: string
          minLength: 1
          description: Human-readable error message.
        details:
          $ref: '#/components/schemas/ManagedAgentsApiErrorDetails'
          description: >-
            Optional structured error details. Reserved transport fields are
            typed; code-specific fields remain forward compatible.
      required:
        - code
        - message
      additionalProperties: false
      description: Standard flat error response.
    ManagedAgentsApiErrorServiceUnavailable:
      type: object
      properties:
        code:
          type: string
          minLength: 1
          description: Stable machine-readable error code.
          enum:
            - service_unavailable
        message:
          type: string
          minLength: 1
          description: Human-readable error message.
        details:
          $ref: '#/components/schemas/ManagedAgentsApiErrorDetails'
          description: >-
            Optional structured error details. Reserved transport fields are
            typed; code-specific fields remain forward compatible.
      required:
        - code
        - message
      additionalProperties: false
      description: Standard flat error response.
    ManagedAgentsApiErrorSessionCostUnavailable:
      type: object
      properties:
        code:
          type: string
          minLength: 1
          description: Stable machine-readable error code.
          enum:
            - session_cost_unavailable
        message:
          type: string
          minLength: 1
          description: Human-readable error message.
        details:
          $ref: '#/components/schemas/ManagedAgentsApiErrorDetails'
          description: >-
            Optional structured error details. Reserved transport fields are
            typed; code-specific fields remain forward compatible.
      required:
        - code
        - message
      additionalProperties: false
      description: Standard flat error response.
    ManagedAgentsApiErrorSessionCostUnconfigured:
      type: object
      properties:
        code:
          type: string
          minLength: 1
          description: Stable machine-readable error code.
          enum:
            - session_cost_unconfigured
        message:
          type: string
          minLength: 1
          description: Human-readable error message.
        details:
          $ref: '#/components/schemas/ManagedAgentsApiErrorDetails'
          description: >-
            Optional structured error details. Reserved transport fields are
            typed; code-specific fields remain forward compatible.
      required:
        - code
        - message
      additionalProperties: false
      description: Standard flat error response.
    ManagedAgentsApiErrorDependencyTimeout:
      type: object
      properties:
        code:
          type: string
          minLength: 1
          description: Stable machine-readable error code.
          enum:
            - gateway_timeout
        message:
          type: string
          minLength: 1
          description: Human-readable error message.
        details:
          $ref: '#/components/schemas/ManagedAgentsApiErrorDetails'
          description: >-
            Optional structured error details. Reserved transport fields are
            typed; code-specific fields remain forward compatible.
      required:
        - code
        - message
      additionalProperties: false
      description: Standard flat error response.
    SessionCostBreakdownItem:
      properties:
        billedUsd:
          description: >-
            Billed amount booked in the window, as an exact canonical decimal
            USD string. Negative when corrections in the window exceed its
            charges.
          examples:
            - '1.234567'
          type: string
        chargeCount:
          description: Charges booked in the window.
          format: int64
          type: integer
          minimum: -9007199254740991
          maximum: 9007199254740991
        chargeKind:
          description: >-
            What was charged: model calls, provider-side tools, or sandbox
            compute.
          enum:
            - model
            - provider_tool
            - sandbox_compute
          type: string
        model:
          description: >-
            Public model id for model charges, as the model catalog lists it.
            Absent for other charge kinds.
          type: string
        source:
          description: >-
            Where the cost was spent: self for the session's own tree, or the
            role of a linked root its costUsd includes (a sub-agent; oversight,
            the advisor or supervisor configured under the agent's oversight
            settings; or an outcome grader). Linked roots are aggregated by role
            and never identified.
          enum:
            - self
            - subagent
            - oversight
            - grader
          type: string
      required:
        - source
        - chargeKind
        - billedUsd
        - chargeCount
      type: object
      additionalProperties: false
    SessionCostUnsettledAttempts:
      properties:
        indeterminate:
          description: >-
            Requests lost in flight, which the provider may or may not have
            billed. Nothing is booked for them unless the provider later reports
            a charge.
          format: int64
          type: integer
          minimum: -9007199254740991
          maximum: 9007199254740991
        pending:
          description: Requests reserved or in flight whose charge has not been booked yet.
          format: int64
          type: integer
          minimum: -9007199254740991
          maximum: 9007199254740991
      required:
        - pending
        - indeterminate
      type: object
      additionalProperties: false
    ManagedAgentsApiErrorDetails:
      type: object
      properties:
        field:
          description: >-
            Request field or header responsible for the error, when one can be
            identified.
          type: string
        issues:
          description: >-
            Boundary-validation failures as path-prefixed human-readable
            messages.
          type: array
          items:
            type: string
        requestId:
          description: Request correlation identifier for support and log lookup.
          type: string
        retryable:
          description: >-
            Server advice about failure transience. `true` means transient,
            `false` means non-transient, and absence gives no advice. Automatic
            replay is allowed only when this field is not `false` and the
            operation-specific retry and idempotency contract permits replay.
          type: boolean
      additionalProperties:
        $ref: '#/components/schemas/PlatformSafeJsonValue'
      description: >-
        Optional structured error details. Reserved transport fields are typed;
        code-specific fields remain forward compatible.
    PlatformSafeJsonValue:
      description: >-
        A JSON value whose integer members stay within the exact ECMAScript
        safe-integer range at every nesting level.
      oneOf:
        - type: 'null'
        - type: boolean
        - type: string
        - type: integer
          minimum: -9007199254740991
          maximum: 9007199254740991
        - type: number
          not:
            type: integer
        - type: array
          items:
            $ref: '#/components/schemas/PlatformSafeJsonValue'
        - additionalProperties:
            $ref: '#/components/schemas/PlatformSafeJsonValue'
          type: object
  headers:
    RecursionOrganizationId:
      description: Organization id resolved for this request.
      schema:
        minLength: 1
        type: string
    RecursionTenantId:
      description: Tenant id resolved for this request.
      schema:
        minLength: 1
        type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: A Recursion API key, created in the console under API keys.

````