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

# Create a Session

> Creates a CMA-shaped Session from an `agent` selector and an `environment_id`. The Agent selector resolves one exact Agent Version; the Environment supplies the versioned execution recipe. Optional `budget`, `initial_events`, `metadata`, `resources`, `title`, and ordered `vault_ids` match Claude Managed Agents. Resources may be repositories, files, or memory stores and are snapshotted into the Session. The authenticated API key supplies organization and Workspace authority; the request never accepts or manufactures a Principal, Deployment, Revision, sandbox profile, or client reference. Up to 50 `initial_events` may start work in the create call. Send an `Idempotency-Key` so an identical retry returns the original Session; success returns the Session resource with 201.

Checkfu support posture: alpha; hosted. Required evidence journey: session-turn. Deployment-specific readiness and the latest proven release are available from GET /v1/support/capabilities.



## OpenAPI

````yaml /openapi.json post /v1/sessions
openapi: 3.1.0
info:
  title: Checkfu API
  version: '2026-08-27'
  description: >-
    Authentication is declared per operation: API-key, runtime, or connector
    bearer; Automation signature; or credential-free pairing redemption. Every
    general Checkfu REST request requires the dated `Checkfu-Version` header
    (one of: 2026-08-27); the three MCP JSON-RPC transports use
    `MCP-Protocol-Version`, A2A uses `A2A-Version`, and the provider OAuth
    callback carries neither Checkfu header. API keys resolve one Workspace
    without a request selector; authenticated responses identify it with
    `Checkfu-Workspace-Id`.
servers:
  - url: https://api.checkfu.com
security:
  - bearerAuth: []
tags:
  - name: organizations
  - name: sourceRepositories
  - name: tenants
  - name: workspaces
  - name: principals
  - name: principalGroups
  - name: principalAccessCredentials
  - name: apiKeys
  - name: agents
  - name: harnesses
  - name: harnessRuntime
  - name: sandboxProfiles
  - name: computerProfiles
  - name: permissionAssignments
  - name: actionPolicies
  - name: files
  - name: memoryStores
  - name: dreams
  - name: modelCredentials
  - name: modelRoutingProfiles
  - name: blueprintInstallations
  - name: toolSources
  - name: skills
  - name: skillSources
  - name: agentSources
  - name: skillProposals
  - name: instructionProposals
  - name: catalog
  - name: concepts
  - name: support
  - name: connections
  - name: connectionVaults
  - name: connectionAssignments
  - name: connectedRuntimes
  - name: projects
  - name: collaboration
  - name: automationGraphs
  - name: automations
  - name: actionApprovals
  - name: standingApprovals
  - name: usage
  - name: models
  - name: outcomes
  - name: budgets
  - name: billing
  - name: sessions
  - name: audit
  - name: sessionExports
  - name: runs
  - name: runnerPools
  - name: transcripts
  - name: sessionWatches
  - name: webhookEndpoints
  - name: integrationGateway
  - name: agentDeployments
  - name: workEnvironments
  - name: computers
  - name: computerScreens
  - name: computerBrowserObservations
  - name: computerBrowserActions
  - name: environments
  - name: vaults
  - name: apiMcp
  - name: a2a
paths:
  /v1/sessions:
    post:
      tags:
        - sessions
      summary: Create a Session
      description: >-
        Creates a CMA-shaped Session from an `agent` selector and an
        `environment_id`. The Agent selector resolves one exact Agent Version;
        the Environment supplies the versioned execution recipe. Optional
        `budget`, `initial_events`, `metadata`, `resources`, `title`, and
        ordered `vault_ids` match Claude Managed Agents. Resources may be
        repositories, files, or memory stores and are snapshotted into the
        Session. The authenticated API key supplies organization and Workspace
        authority; the request never accepts or manufactures a Principal,
        Deployment, Revision, sandbox profile, or client reference. Up to 50
        `initial_events` may start work in the create call. Send an
        `Idempotency-Key` so an identical retry returns the original Session;
        success returns the Session resource with 201.


        Checkfu support posture: alpha; hosted. Required evidence journey:
        session-turn. Deployment-specific readiness and the latest proven
        release are available from GET /v1/support/capabilities.
      operationId: sessions.createSession
      parameters:
        - name: checkfu-version
          in: header
          schema:
            type: string
            enum:
              - '2026-08-27'
          required: true
        - name: checkfu-beta
          in: header
          schema:
            $ref: '#/components/schemas/ManagedAgentsBetaHeaderValue'
          required: true
        - name: idempotency-key
          in: header
          schema:
            type: string
            allOf:
              - maxLength: 255
          required: false
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SessionCreateParams'
        required: true
      responses:
        '201':
          description: BetaManagedAgentsSession
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BetaManagedAgentsSession'
          headers:
            checkfu-workspace-id:
              description: The Workspace resolved from the authenticated bearer credential.
              required: true
              schema:
                $ref: '#/components/schemas/WorkspaceId'
        '400':
          description: Typed Checkfu wire error
          content:
            application/json:
              schema:
                anyOf:
                  - $ref: '#/components/schemas/ValidationMalformedError'
                  - $ref: '#/components/schemas/SessionDriveBadRequestError'
        '401':
          description: Typed Checkfu wire error
          content:
            application/json:
              schema:
                type: object
                required:
                  - error
                properties:
                  error:
                    type: object
                    required:
                      - type
                      - message
                      - more
                    properties:
                      type:
                        type: string
                        enum:
                          - auth.invalid_key
                      message:
                        type: string
                      more:
                        type: string
                        enum:
                          - >-
                            https://docs.checkfu.com/reference/errors#auth-invalid-key
                        description: >-
                          Stable public documentation and remedy for this error
                          type.
                    additionalProperties: false
                additionalProperties: false
        '403':
          description: >-
            The organization, tenant, or workspace backing this key is
            administratively disabled. | Deployment governance or retention
            policy denied the request.
          content:
            application/json:
              schema:
                anyOf:
                  - type: object
                    required:
                      - error
                    properties:
                      error:
                        type: object
                        properties:
                          type:
                            type: string
                            enum:
                              - auth.disabled_tenancy
                          message:
                            type: string
                          more:
                            type: string
                            enum:
                              - >-
                                https://docs.checkfu.com/reference/errors#auth-disabled-tenancy
                            description: >-
                              Stable public documentation and remedy for this
                              error type.
                        required:
                          - type
                          - message
                          - more
                        additionalProperties: false
                    additionalProperties: false
                  - $ref: '#/components/schemas/PolicyDeniedError'
        '404':
          description: >-
            The requested resource does not exist in the resolved deployment
            boundary. | The requested MemoryStore or document does not exist.
          content:
            application/json:
              schema:
                anyOf:
                  - $ref: '#/components/schemas/ValidationNotFoundError'
                  - $ref: '#/components/schemas/ValidationNotFoundError'
                  - $ref: '#/components/schemas/MemoryNotFoundError'
        '409':
          description: >-
            The request conflicts with the resource's current state. | The
            MemoryStore write conflicts with the current revision. | An
            idempotent mutation conflicts with a completed or in-progress
            request for the same key. | The operation is illegal for the
            resource's current lifecycle state.
          content:
            application/json:
              schema:
                anyOf:
                  - $ref: '#/components/schemas/ValidationConflictError'
                  - $ref: '#/components/schemas/MemoryConflictError'
                  - $ref: '#/components/schemas/IdempotencyConflictError'
                  - $ref: '#/components/schemas/RuntimeInvalidTransitionError'
        '422':
          description: >-
            No model candidate satisfies the deployment's routing constraints. |
            The harness does not satisfy the required protocol or capability
            set.
          content:
            application/json:
              schema:
                anyOf:
                  - $ref: '#/components/schemas/ModelNoEligibleModelError'
                  - $ref: '#/components/schemas/ModelNoEligibleModelError'
                  - $ref: '#/components/schemas/RuntimeHarnessIncompatibleError'
        '429':
          description: Typed Checkfu wire error
          headers:
            retry-after:
              description: >-
                Delay in seconds for rate limits or deployment quotas with a
                known release or UTC reset boundary
              required: false
              schema:
                type: integer
                minimum: 1
          content:
            application/json:
              schema:
                type: object
                required:
                  - error
                properties:
                  error:
                    type: object
                    required:
                      - type
                      - message
                      - more
                    properties:
                      type:
                        type: string
                        enum:
                          - budget.exceeded
                      message:
                        type: string
                      more:
                        type: string
                        enum:
                          - >-
                            https://docs.checkfu.com/reference/errors#budget-exceeded
                        description: >-
                          Stable public documentation and remedy for this error
                          type.
                    additionalProperties: false
                additionalProperties: false
        '500':
          description: >-
            An unexpected internal failure occurred; the message contains an
            opaque incident reference.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RuntimeInternalError'
        '503':
          description: >-
            No eligible Runner can currently claim the work. | Platform-managed
            model credentials are temporarily unavailable.
          content:
            application/json:
              schema:
                anyOf:
                  - $ref: '#/components/schemas/RuntimeRunnerUnavailableError'
                  - $ref: '#/components/schemas/ModelPlatformSupplyUnavailableError'
      security:
        - bearerAuth: []
components:
  schemas:
    ManagedAgentsBetaHeaderValue:
      type: string
    SessionCreateParams:
      type: object
      properties:
        agent:
          $ref: '#/components/schemas/BetaManagedAgentsSessionAgentParams'
        environment_id:
          $ref: '#/components/schemas/EnvironmentId'
        budget:
          $ref: '#/components/schemas/BetaManagedAgentsBudgetLimit'
        initial_events:
          $ref: '#/components/schemas/BetaManagedAgentsInitialEvents'
        metadata:
          $ref: '#/components/schemas/ResourceMetadata'
        resources:
          $ref: '#/components/schemas/BetaManagedAgentsSessionResources'
        title:
          anyOf:
            - type: string
            - type: 'null'
        vault_ids:
          type: array
          items:
            $ref: '#/components/schemas/VaultId'
      required:
        - agent
        - environment_id
      additionalProperties: false
    BetaManagedAgentsSession:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/SessionId'
        agent:
          $ref: '#/components/schemas/BetaManagedAgentsSessionAgent'
        archived_at:
          $ref: '#/components/schemas/Union_290'
        budget:
          $ref: '#/components/schemas/Union_291'
        created_at:
          $ref: '#/components/schemas/CurrentTimestamp'
        environment_id:
          $ref: '#/components/schemas/EnvironmentId'
        metadata:
          $ref: '#/components/schemas/ResourceMetadata'
        outcome_evaluations:
          $ref: '#/components/schemas/Arrays_45'
        resources:
          $ref: '#/components/schemas/Arrays_46'
        stats:
          $ref: '#/components/schemas/BetaManagedAgentsSessionStats'
        status:
          $ref: '#/components/schemas/Union_292'
        title:
          $ref: '#/components/schemas/Union_293'
        type:
          type: string
          enum:
            - session
        updated_at:
          $ref: '#/components/schemas/CurrentTimestamp'
        usage:
          $ref: '#/components/schemas/BetaManagedAgentsSessionUsage'
        vault_ids:
          $ref: '#/components/schemas/Arrays_47'
        automation_id:
          anyOf:
            - $ref: '#/components/schemas/AutomationId'
            - type: 'null'
      required:
        - id
        - agent
        - archived_at
        - budget
        - created_at
        - environment_id
        - metadata
        - outcome_evaluations
        - resources
        - stats
        - status
        - title
        - type
        - updated_at
        - usage
        - vault_ids
      additionalProperties: false
    WorkspaceId:
      type: string
      allOf:
        - pattern: ^wrkspc_[0-9a-f]{32}$
    ValidationMalformedError:
      type: object
      properties:
        error:
          type: object
          properties:
            type:
              type: string
              enum:
                - validation.malformed
            message:
              type: string
            more:
              type: string
              enum:
                - https://docs.checkfu.com/reference/errors#validation-malformed
              description: Stable public documentation and remedy for this error type.
          required:
            - type
            - message
            - more
          additionalProperties: false
      required:
        - error
      additionalProperties: false
      description: >-
        The request could not be decoded or violated a declared input
        constraint.
    SessionDriveBadRequestError:
      anyOf:
        - $ref: '#/components/schemas/ValidationMalformedError'
        - $ref: '#/components/schemas/ValidationPromptIntegrityReviewRequiredError'
      description: >-
        A Session drive request was malformed or requires explicit
        prompt-integrity review.
    PolicyDeniedError:
      type: object
      properties:
        error:
          type: object
          properties:
            type:
              type: string
              enum:
                - policy.denied
            message:
              type: string
            more:
              type: string
              enum:
                - https://docs.checkfu.com/reference/errors#policy-denied
              description: Stable public documentation and remedy for this error type.
          required:
            - type
            - message
            - more
          additionalProperties: false
      required:
        - error
      additionalProperties: false
      description: Deployment governance or retention policy denied the request.
    ValidationNotFoundError:
      type: object
      properties:
        error:
          type: object
          properties:
            type:
              type: string
              enum:
                - validation.not_found
            message:
              type: string
            more:
              type: string
              enum:
                - https://docs.checkfu.com/reference/errors#validation-not-found
              description: Stable public documentation and remedy for this error type.
          required:
            - type
            - message
            - more
          additionalProperties: false
      required:
        - error
      additionalProperties: false
      description: >-
        The requested resource does not exist in the resolved deployment
        boundary.
    MemoryNotFoundError:
      type: object
      properties:
        error:
          type: object
          properties:
            type:
              type: string
              enum:
                - memory.not_found
            message:
              type: string
            more:
              type: string
              enum:
                - https://docs.checkfu.com/reference/errors#memory-not-found
              description: Stable public documentation and remedy for this error type.
          required:
            - type
            - message
            - more
          additionalProperties: false
      required:
        - error
      additionalProperties: false
      description: The requested MemoryStore or document does not exist.
    ValidationConflictError:
      type: object
      properties:
        error:
          type: object
          properties:
            type:
              type: string
              enum:
                - validation.conflict
            message:
              type: string
            more:
              type: string
              enum:
                - https://docs.checkfu.com/reference/errors#validation-conflict
              description: Stable public documentation and remedy for this error type.
          required:
            - type
            - message
            - more
          additionalProperties: false
      required:
        - error
      additionalProperties: false
      description: The request conflicts with the resource's current state.
    MemoryConflictError:
      type: object
      properties:
        error:
          type: object
          properties:
            type:
              type: string
              enum:
                - memory.conflict
            message:
              type: string
            more:
              type: string
              enum:
                - https://docs.checkfu.com/reference/errors#memory-conflict
              description: Stable public documentation and remedy for this error type.
          required:
            - type
            - message
            - more
          additionalProperties: false
      required:
        - error
      additionalProperties: false
      description: The MemoryStore write conflicts with the current revision.
    IdempotencyConflictError:
      anyOf:
        - $ref: '#/components/schemas/ValidationIdempotencyConflictError'
        - $ref: '#/components/schemas/ValidationIdempotencyInProgressError'
      description: >-
        An idempotent mutation conflicts with a completed or in-progress request
        for the same key.
    RuntimeInvalidTransitionError:
      type: object
      properties:
        error:
          type: object
          properties:
            type:
              type: string
              enum:
                - runtime.invalid_transition
            message:
              type: string
            more:
              type: string
              enum:
                - >-
                  https://docs.checkfu.com/reference/errors#runtime-invalid-transition
              description: Stable public documentation and remedy for this error type.
          required:
            - type
            - message
            - more
          additionalProperties: false
      required:
        - error
      additionalProperties: false
      description: The operation is illegal for the resource's current lifecycle state.
    ModelNoEligibleModelError:
      type: object
      properties:
        error:
          type: object
          properties:
            type:
              type: string
              enum:
                - model.no_eligible_model
            message:
              type: string
            more:
              type: string
              enum:
                - >-
                  https://docs.checkfu.com/reference/errors#model-no-eligible-model
              description: Stable public documentation and remedy for this error type.
          required:
            - type
            - message
            - more
          additionalProperties: false
      required:
        - error
      additionalProperties: false
      description: No model candidate satisfies the deployment's routing constraints.
    RuntimeHarnessIncompatibleError:
      type: object
      properties:
        error:
          type: object
          properties:
            type:
              type: string
              enum:
                - runtime.harness_incompatible
            message:
              type: string
            more:
              type: string
              enum:
                - >-
                  https://docs.checkfu.com/reference/errors#runtime-harness-incompatible
              description: Stable public documentation and remedy for this error type.
          required:
            - type
            - message
            - more
          additionalProperties: false
      required:
        - error
      additionalProperties: false
      description: The harness does not satisfy the required protocol or capability set.
    RuntimeInternalError:
      type: object
      properties:
        error:
          type: object
          properties:
            type:
              type: string
              enum:
                - runtime.internal
            message:
              type: string
            more:
              type: string
              enum:
                - https://docs.checkfu.com/reference/errors#runtime-internal
              description: Stable public documentation and remedy for this error type.
          required:
            - type
            - message
            - more
          additionalProperties: false
      required:
        - error
      additionalProperties: false
      description: >-
        An unexpected internal failure occurred; the message contains an opaque
        incident reference.
    RuntimeRunnerUnavailableError:
      type: object
      properties:
        error:
          type: object
          properties:
            type:
              type: string
              enum:
                - runtime.runner_unavailable
            message:
              type: string
            more:
              type: string
              enum:
                - >-
                  https://docs.checkfu.com/reference/errors#runtime-runner-unavailable
              description: Stable public documentation and remedy for this error type.
          required:
            - type
            - message
            - more
          additionalProperties: false
      required:
        - error
      additionalProperties: false
      description: No eligible Runner can currently claim the work.
    ModelPlatformSupplyUnavailableError:
      type: object
      properties:
        error:
          type: object
          properties:
            type:
              type: string
              enum:
                - model.platform_supply_unavailable
            message:
              type: string
            more:
              type: string
              enum:
                - >-
                  https://docs.checkfu.com/reference/errors#model-platform-supply-unavailable
              description: Stable public documentation and remedy for this error type.
          required:
            - type
            - message
            - more
          additionalProperties: false
      required:
        - error
      additionalProperties: false
      description: Platform-managed model credentials are temporarily unavailable.
    BetaManagedAgentsSessionAgentParams:
      anyOf:
        - $ref: '#/components/schemas/AgentId'
        - $ref: '#/components/schemas/BetaManagedAgentsAgentParams'
        - $ref: '#/components/schemas/BetaManagedAgentsAgentWithOverridesParams'
    EnvironmentId:
      type: string
      allOf:
        - pattern: ^env_[0-9a-f]{32}$
    BetaManagedAgentsBudgetLimit:
      type: object
      properties:
        type:
          type: string
          enum:
            - limit
        max_list_cost:
          type: object
          properties:
            amount:
              type: string
              allOf:
                - pattern: ^[1-9][0-9]*$
            currency:
              type: string
              enum:
                - USD
          required:
            - amount
            - currency
          additionalProperties: false
      required:
        - type
        - max_list_cost
      additionalProperties: false
    BetaManagedAgentsInitialEvents:
      type: array
      items:
        anyOf:
          - $ref: '#/components/schemas/BetaManagedAgentsUserMessageEventParams'
          - $ref: '#/components/schemas/BetaManagedAgentsUserDefineOutcomeEventParams'
      allOf:
        - maxItems: 50
    ResourceMetadata:
      type: object
      additionalProperties:
        type: string
        allOf:
          - maxLength: 512
      allOf:
        - propertyNames:
            type: string
            allOf:
              - minLength: 1
              - maxLength: 64
        - maxProperties: 16
          description: at most 16 correlation pairs with keys of 1 to 64 characters
    BetaManagedAgentsSessionResources:
      type: array
      items:
        $ref: '#/components/schemas/BetaManagedAgentsSessionResourceParams'
    VaultId:
      type: string
      allOf:
        - pattern: ^vlt_[0-9a-f]{32}$
    SessionId:
      type: string
      allOf:
        - pattern: ^sess_[0-9a-f]{32}$
    BetaManagedAgentsSessionAgent:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/AgentId'
        description:
          $ref: '#/components/schemas/Union_31'
        mcp_servers:
          $ref: '#/components/schemas/Arrays_5'
        model:
          $ref: '#/components/schemas/BetaManagedAgentsModelConfig'
        name:
          type: string
          allOf:
            - minLength: 1
            - maxLength: 255
        skills:
          $ref: '#/components/schemas/Arrays_6'
        system:
          $ref: '#/components/schemas/Union_33'
        tools:
          $ref: '#/components/schemas/Arrays_7'
        multiagent:
          anyOf:
            - $ref: >-
                #/components/schemas/BetaManagedAgentsSessionMultiagentCoordinator
            - type: 'null'
        type:
          type: string
          enum:
            - agent
        version:
          type: integer
          allOf:
            - exclusiveMinimum: 0
      required:
        - id
        - description
        - mcp_servers
        - model
        - name
        - skills
        - system
        - tools
        - multiagent
        - type
        - version
      additionalProperties: false
    Union_290:
      anyOf:
        - $ref: '#/components/schemas/CurrentTimestamp'
        - type: 'null'
    Union_291:
      anyOf:
        - $ref: '#/components/schemas/BetaManagedAgentsBudgetLimit'
        - type: 'null'
    CurrentTimestamp:
      type: string
      allOf:
        - maxLength: 24
        - pattern: ^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$
          description: A canonical UTC ISO-8601 timestamp with millisecond precision.
    Arrays_45:
      type: array
      items:
        $ref: '#/components/schemas/BetaManagedAgentsOutcomeEvaluationResource'
    Arrays_46:
      type: array
      items:
        $ref: '#/components/schemas/BetaManagedAgentsSessionResource'
    BetaManagedAgentsSessionStats:
      type: object
      properties:
        active_seconds:
          type: number
          allOf:
            - minimum: 0
        duration_seconds:
          type: number
          allOf:
            - minimum: 0
      additionalProperties: false
    Union_292:
      type: string
      enum:
        - rescheduling
        - running
        - idle
        - terminated
    Union_293:
      anyOf:
        - type: string
        - type: 'null'
    BetaManagedAgentsSessionUsage:
      type: object
      properties:
        active_seconds:
          type: number
          allOf:
            - minimum: 0
        cache_creation:
          $ref: '#/components/schemas/BetaManagedAgentsCacheCreationUsage'
        cache_read_input_tokens:
          type: integer
          allOf:
            - minimum: 0
        input_tokens:
          type: integer
          allOf:
            - minimum: 0
        list_cost:
          anyOf:
            - $ref: '#/components/schemas/BetaMonetaryAmount'
            - type: 'null'
        output_tokens:
          type: integer
          allOf:
            - minimum: 0
        server_tool_use:
          anyOf:
            - $ref: '#/components/schemas/BetaManagedAgentsServerToolUsage'
            - type: 'null'
      additionalProperties: false
    Arrays_47:
      type: array
      items:
        $ref: '#/components/schemas/VaultId'
    AutomationId:
      type: string
      allOf:
        - pattern: ^auto_[0-9a-f]{32}$
    ValidationPromptIntegrityReviewRequiredError:
      type: object
      properties:
        error:
          type: object
          properties:
            type:
              type: string
              enum:
                - validation.prompt_integrity_review_required
            message:
              type: string
            more:
              type: string
              enum:
                - >-
                  https://docs.checkfu.com/reference/errors#validation-prompt-integrity-review-required
              description: Stable public documentation and remedy for this error type.
            review:
              type: object
              properties:
                analyzer_version:
                  type: string
                  enum:
                    - unicode-17.0.0-uts39-r32-checkfu-1
                normalized:
                  type: string
                findings:
                  type: array
                  items:
                    $ref: '#/components/schemas/Union_200'
                  allOf:
                    - minItems: 1
                    - maxItems: 256
              required:
                - analyzer_version
                - normalized
                - findings
              additionalProperties: false
          required:
            - type
            - message
            - more
            - review
          additionalProperties: false
      required:
        - error
      additionalProperties: false
      description: The request contains deceptive Unicode and requires an explicit review.
    ValidationIdempotencyConflictError:
      type: object
      properties:
        error:
          type: object
          properties:
            type:
              type: string
              enum:
                - validation.idempotency_conflict
            message:
              type: string
            more:
              type: string
              enum:
                - >-
                  https://docs.checkfu.com/reference/errors#validation-idempotency-conflict
              description: Stable public documentation and remedy for this error type.
          required:
            - type
            - message
            - more
          additionalProperties: false
      required:
        - error
      additionalProperties: false
      description: The Idempotency-Key is already bound to a different request.
    ValidationIdempotencyInProgressError:
      type: object
      properties:
        error:
          type: object
          properties:
            type:
              type: string
              enum:
                - validation.idempotency_in_progress
            message:
              type: string
            more:
              type: string
              enum:
                - >-
                  https://docs.checkfu.com/reference/errors#validation-idempotency-in-progress
              description: Stable public documentation and remedy for this error type.
          required:
            - type
            - message
            - more
          additionalProperties: false
      required:
        - error
      additionalProperties: false
      description: >-
        An identical idempotent request is still in progress and may be retried
        later.
    AgentId:
      type: string
      allOf:
        - pattern: ^agent_[0-9a-f]{32}$
    BetaManagedAgentsAgentParams:
      type: object
      properties:
        type:
          type: string
          enum:
            - agent
        id:
          $ref: '#/components/schemas/AgentId'
        version:
          type: integer
          allOf:
            - exclusiveMinimum: 0
      required:
        - type
        - id
      additionalProperties: false
    BetaManagedAgentsAgentWithOverridesParams:
      type: object
      properties:
        type:
          type: string
          enum:
            - agent_with_overrides
        id:
          $ref: '#/components/schemas/AgentId'
        version:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        mcp_servers:
          $ref: '#/components/schemas/Arrays_2'
        model:
          $ref: '#/components/schemas/BetaManagedAgentsModelConfigParams'
        skills:
          type: array
          items:
            $ref: '#/components/schemas/Union_28'
        system:
          anyOf:
            - $ref: '#/components/schemas/BetaManagedAgentsSessionSystem'
            - type: 'null'
        tools:
          $ref: '#/components/schemas/Arrays_3'
      required:
        - type
        - id
      additionalProperties: false
    BetaManagedAgentsUserMessageEventParams:
      type: object
      properties:
        type:
          type: string
          enum:
            - user.message
        content:
          type: array
          items:
            $ref: '#/components/schemas/BetaManagedAgentsContentBlock'
      required:
        - type
        - content
      additionalProperties: false
    BetaManagedAgentsUserDefineOutcomeEventParams:
      type: object
      properties:
        type:
          type: string
          enum:
            - user.define_outcome
        description:
          type: string
        rubric:
          $ref: '#/components/schemas/BetaManagedAgentsOutcomeRubricParams'
        max_iterations:
          anyOf:
            - type: integer
              allOf:
                - minimum: 1
                  maximum: 20
            - type: 'null'
      required:
        - type
        - description
        - rubric
      additionalProperties: false
    BetaManagedAgentsSessionResourceParams:
      anyOf:
        - $ref: '#/components/schemas/BetaManagedAgentsGitHubRepositoryResourceParams'
        - $ref: '#/components/schemas/BetaManagedAgentsFileResourceParams'
        - $ref: '#/components/schemas/BetaManagedAgentsMemoryStoreResourceParam'
    Union_31:
      anyOf:
        - type: string
        - type: 'null'
    Arrays_5:
      type: array
      items:
        $ref: '#/components/schemas/Objects_12'
    BetaManagedAgentsModelConfig:
      type: object
      properties:
        id:
          type: string
        effort:
          anyOf:
            - type: object
              properties:
                type:
                  type: string
                  enum:
                    - low
              required:
                - type
              additionalProperties: false
            - type: object
              properties:
                type:
                  type: string
                  enum:
                    - medium
              required:
                - type
              additionalProperties: false
            - type: object
              properties:
                type:
                  type: string
                  enum:
                    - high
              required:
                - type
              additionalProperties: false
            - type: object
              properties:
                type:
                  type: string
                  enum:
                    - xhigh
              required:
                - type
              additionalProperties: false
            - type: object
              properties:
                type:
                  type: string
                  enum:
                    - max
              required:
                - type
              additionalProperties: false
        inference_geo:
          type: string
          enum:
            - global
            - us
        speed:
          type: string
          enum:
            - standard
            - fast
      required:
        - id
      additionalProperties: false
    Arrays_6:
      type: array
      items:
        anyOf:
          - type: object
            properties:
              type:
                type: string
                enum:
                  - anthropic
              skill_id:
                type: string
              version:
                type: string
            required:
              - type
              - skill_id
              - version
            additionalProperties: false
          - type: object
            properties:
              type:
                type: string
                enum:
                  - custom
              skill_id:
                type: string
              version:
                type: string
            required:
              - type
              - skill_id
              - version
            additionalProperties: false
    Union_33:
      anyOf:
        - type: string
        - type: 'null'
    Arrays_7:
      type: array
      items:
        $ref: '#/components/schemas/BetaManagedAgentsTool'
    BetaManagedAgentsSessionMultiagentCoordinator:
      type: object
      properties:
        agents:
          type: array
          items:
            anyOf:
              - $ref: '#/components/schemas/BetaManagedAgentsSessionThreadAgent'
              - $ref: '#/components/schemas/BetaManagedAgentsAdvisor'
        type:
          type: string
          enum:
            - coordinator
      required:
        - agents
        - type
      additionalProperties: false
    BetaManagedAgentsOutcomeEvaluationResource:
      type: object
      properties:
        completed_at:
          anyOf:
            - $ref: '#/components/schemas/CurrentTimestamp'
            - type: 'null'
        description:
          type: string
        explanation:
          anyOf:
            - type: string
            - type: 'null'
        iteration:
          type: integer
          allOf:
            - minimum: 0
        outcome_id:
          $ref: '#/components/schemas/OutcomeId'
        result:
          type: string
        type:
          type: string
          enum:
            - outcome_evaluation
      required:
        - completed_at
        - description
        - explanation
        - iteration
        - outcome_id
        - result
        - type
      additionalProperties: false
    BetaManagedAgentsSessionResource:
      anyOf:
        - $ref: '#/components/schemas/BetaManagedAgentsGitHubRepositoryResource'
        - $ref: '#/components/schemas/BetaManagedAgentsFileResource'
        - $ref: '#/components/schemas/BetaManagedAgentsMemoryStoreResource'
    BetaManagedAgentsCacheCreationUsage:
      type: object
      properties:
        ephemeral_1h_input_tokens:
          type: integer
          allOf:
            - minimum: 0
        ephemeral_5m_input_tokens:
          type: integer
          allOf:
            - minimum: 0
      additionalProperties: false
    BetaMonetaryAmount:
      type: object
      properties:
        amount:
          type: string
          allOf:
            - pattern: ^(0|[1-9][0-9]*)$
        currency:
          type: string
          enum:
            - USD
      required:
        - amount
        - currency
      additionalProperties: false
    BetaManagedAgentsServerToolUsage:
      type: object
      properties:
        web_fetch_requests:
          type: integer
          allOf:
            - minimum: 0
        web_search_requests:
          type: integer
          allOf:
            - minimum: 0
      additionalProperties: false
    Union_200:
      anyOf:
        - type: object
          properties:
            kind:
              type: string
              enum:
                - mixed_script_confusable
            utf16_offset:
              type: integer
              allOf:
                - minimum: 0
            code_point:
              type: string
              allOf:
                - pattern: ^U\+[0-9A-F]{4,6}$
            replacement:
              type: string
              allOf:
                - maxLength: 5
            answer_id:
              type: string
            value_index:
              type: integer
              allOf:
                - minimum: 0
          required:
            - kind
            - utf16_offset
            - code_point
            - replacement
          additionalProperties: false
        - type: object
          properties:
            kind:
              type: string
              enum:
                - bidirectional_control
            utf16_offset:
              type: integer
              allOf:
                - minimum: 0
            code_point:
              type: string
              allOf:
                - pattern: ^U\+[0-9A-F]{4,6}$
            answer_id:
              type: string
            value_index:
              type: integer
              allOf:
                - minimum: 0
          required:
            - kind
            - utf16_offset
            - code_point
          additionalProperties: false
    Arrays_2:
      type: array
      items:
        $ref: '#/components/schemas/Objects_12'
      allOf:
        - maxItems: 20
    BetaManagedAgentsModelConfigParams:
      anyOf:
        - type: string
        - type: object
          properties:
            id:
              type: string
            effort:
              anyOf:
                - anyOf:
                    - type: string
                      enum:
                        - low
                        - medium
                        - high
                        - xhigh
                        - max
                    - $ref: '#/components/schemas/Union_24'
                - type: 'null'
            inference_geo:
              anyOf:
                - $ref: '#/components/schemas/Union_11'
                - type: 'null'
            speed:
              anyOf:
                - type: string
                  enum:
                    - standard
                    - fast
                - type: 'null'
          required:
            - id
          additionalProperties: false
    Union_28:
      anyOf:
        - type: object
          properties:
            type:
              type: string
              enum:
                - anthropic
            skill_id:
              type: string
            version:
              anyOf:
                - type: string
                - type: 'null'
          required:
            - type
            - skill_id
          additionalProperties: false
        - type: object
          properties:
            type:
              type: string
              enum:
                - custom
            skill_id:
              type: string
            version:
              anyOf:
                - type: string
                - type: 'null'
          required:
            - type
            - skill_id
          additionalProperties: false
    BetaManagedAgentsSessionSystem:
      type: string
    Arrays_3:
      type: array
      items:
        $ref: '#/components/schemas/BetaManagedAgentsToolParams'
      allOf:
        - maxItems: 128
    BetaManagedAgentsContentBlock:
      anyOf:
        - type: object
          properties:
            type:
              type: string
              enum:
                - text
            text:
              type: string
          required:
            - type
            - text
          additionalProperties: false
        - type: object
          properties:
            type:
              type: string
              enum:
                - image
            source:
              anyOf:
                - type: object
                  properties:
                    type:
                      type: string
                      enum:
                        - base64
                    data:
                      type: string
                    media_type:
                      type: string
                  required:
                    - type
                    - data
                    - media_type
                  additionalProperties: false
                - type: object
                  properties:
                    type:
                      type: string
                      enum:
                        - url
                    url:
                      type: string
                  required:
                    - type
                    - url
                  additionalProperties: false
                - type: object
                  properties:
                    type:
                      type: string
                      enum:
                        - file
                    file_id:
                      $ref: '#/components/schemas/FileId'
                  required:
                    - type
                    - file_id
                  additionalProperties: false
          required:
            - type
            - source
          additionalProperties: false
        - type: object
          properties:
            type:
              type: string
              enum:
                - document
            source:
              anyOf:
                - type: object
                  properties:
                    type:
                      type: string
                      enum:
                        - base64
                    data:
                      type: string
                    media_type:
                      type: string
                  required:
                    - type
                    - data
                    - media_type
                  additionalProperties: false
                - type: object
                  properties:
                    type:
                      type: string
                      enum:
                        - text
                    data:
                      type: string
                    media_type:
                      type: string
                      enum:
                        - text/plain
                  required:
                    - type
                    - data
                    - media_type
                  additionalProperties: false
                - type: object
                  properties:
                    type:
                      type: string
                      enum:
                        - url
                    url:
                      type: string
                  required:
                    - type
                    - url
                  additionalProperties: false
                - type: object
                  properties:
                    type:
                      type: string
                      enum:
                        - file
                    file_id:
                      $ref: '#/components/schemas/FileId'
                  required:
                    - type
                    - file_id
                  additionalProperties: false
            context:
              anyOf:
                - type: string
                - type: 'null'
            title:
              anyOf:
                - type: string
                - type: 'null'
          required:
            - type
            - source
          additionalProperties: false
        - type: object
          properties:
            type:
              type: string
              enum:
                - redacted
          required:
            - type
          additionalProperties: false
    BetaManagedAgentsOutcomeRubricParams:
      anyOf:
        - type: object
          properties:
            type:
              type: string
              enum:
                - file
            file_id:
              $ref: '#/components/schemas/FileId'
          required:
            - type
            - file_id
          additionalProperties: false
        - type: object
          properties:
            type:
              type: string
              enum:
                - text
            content:
              type: string
              allOf:
                - maxLength: 262144
          required:
            - type
            - content
          additionalProperties: false
    BetaManagedAgentsGitHubRepositoryResourceParams:
      type: object
      properties:
        authorization_token:
          type: string
        type:
          type: string
          enum:
            - github_repository
        url:
          $ref: '#/components/schemas/BetaManagedAgentsGitHubRepositoryUrl'
        checkout:
          anyOf:
            - $ref: '#/components/schemas/BetaManagedAgentsRepositoryCheckout'
            - type: 'null'
        mount_path:
          anyOf:
            - $ref: '#/components/schemas/BetaManagedAgentsGitHubRepositoryMountPath'
            - type: 'null'
      required:
        - authorization_token
        - type
        - url
      additionalProperties: false
    BetaManagedAgentsFileResourceParams:
      type: object
      properties:
        file_id:
          $ref: '#/components/schemas/FileId'
        type:
          type: string
          enum:
            - file
        mount_path:
          anyOf:
            - $ref: '#/components/schemas/BetaManagedAgentsFileResourceMountPath'
            - type: 'null'
      required:
        - file_id
        - type
      additionalProperties: false
    BetaManagedAgentsMemoryStoreResourceParam:
      type: object
      properties:
        memory_store_id:
          $ref: '#/components/schemas/MemoryStoreId'
        type:
          type: string
          enum:
            - memory_store
        access:
          anyOf:
            - type: string
              enum:
                - read_write
                - read_only
            - type: 'null'
        instructions:
          anyOf:
            - type: string
              allOf:
                - minLength: 1
                - maxLength: 4096
            - type: 'null'
      required:
        - memory_store_id
        - type
      additionalProperties: false
    Objects_12:
      type: object
      properties:
        type:
          type: string
          enum:
            - url
        name:
          type: string
          allOf:
            - minLength: 1
            - maxLength: 255
        url:
          type: string
          allOf:
            - minLength: 1
            - maxLength: 2048
      required:
        - type
        - name
        - url
      additionalProperties: false
    BetaManagedAgentsTool:
      anyOf:
        - type: object
          properties:
            type:
              type: string
              enum:
                - agent_toolset_20260401
            configs:
              type: array
              items:
                anyOf:
                  - type: object
                    properties:
                      name:
                        type: string
                        enum:
                          - bash
                      type:
                        type: string
                        enum:
                          - bash
                      enabled:
                        type: boolean
                      permission_policy:
                        $ref: '#/components/schemas/BetaManagedAgentsPermissionPolicy'
                    required:
                      - name
                      - type
                      - enabled
                      - permission_policy
                    additionalProperties: false
                  - type: object
                    properties:
                      name:
                        type: string
                        enum:
                          - edit
                      type:
                        type: string
                        enum:
                          - edit
                      enabled:
                        type: boolean
                      permission_policy:
                        $ref: '#/components/schemas/BetaManagedAgentsPermissionPolicy'
                    required:
                      - name
                      - type
                      - enabled
                      - permission_policy
                    additionalProperties: false
                  - type: object
                    properties:
                      name:
                        type: string
                        enum:
                          - glob
                      type:
                        type: string
                        enum:
                          - glob
                      enabled:
                        type: boolean
                      permission_policy:
                        $ref: '#/components/schemas/BetaManagedAgentsPermissionPolicy'
                    required:
                      - name
                      - type
                      - enabled
                      - permission_policy
                    additionalProperties: false
                  - type: object
                    properties:
                      name:
                        type: string
                        enum:
                          - grep
                      type:
                        type: string
                        enum:
                          - grep
                      enabled:
                        type: boolean
                      permission_policy:
                        $ref: '#/components/schemas/BetaManagedAgentsPermissionPolicy'
                    required:
                      - name
                      - type
                      - enabled
                      - permission_policy
                    additionalProperties: false
                  - type: object
                    properties:
                      name:
                        type: string
                        enum:
                          - read
                      type:
                        type: string
                        enum:
                          - read
                      enabled:
                        type: boolean
                      permission_policy:
                        $ref: '#/components/schemas/BetaManagedAgentsPermissionPolicy'
                    required:
                      - name
                      - type
                      - enabled
                      - permission_policy
                    additionalProperties: false
                  - type: object
                    properties:
                      name:
                        type: string
                        enum:
                          - web_fetch
                      type:
                        type: string
                        enum:
                          - web_fetch
                      enabled:
                        type: boolean
                      permission_policy:
                        $ref: '#/components/schemas/BetaManagedAgentsPermissionPolicy'
                      allowed_domains:
                        $ref: '#/components/schemas/Arrays_4'
                      blocked_domains:
                        $ref: '#/components/schemas/Arrays_4'
                      max_content_tokens:
                        anyOf:
                          - type: integer
                            allOf:
                              - exclusiveMinimum: 0
                          - type: 'null'
                    required:
                      - name
                      - type
                      - enabled
                      - permission_policy
                    additionalProperties: false
                  - type: object
                    properties:
                      name:
                        type: string
                        enum:
                          - web_search
                      type:
                        type: string
                        enum:
                          - web_search
                      enabled:
                        type: boolean
                      permission_policy:
                        $ref: '#/components/schemas/BetaManagedAgentsPermissionPolicy'
                      allowed_domains:
                        $ref: '#/components/schemas/Arrays_4'
                      blocked_domains:
                        $ref: '#/components/schemas/Arrays_4'
                      user_location:
                        anyOf:
                          - $ref: '#/components/schemas/Objects_15'
                          - type: 'null'
                    required:
                      - name
                      - type
                      - enabled
                      - permission_policy
                    additionalProperties: false
                  - type: object
                    properties:
                      name:
                        type: string
                        enum:
                          - write
                      type:
                        type: string
                        enum:
                          - write
                      enabled:
                        type: boolean
                      permission_policy:
                        $ref: '#/components/schemas/BetaManagedAgentsPermissionPolicy'
                    required:
                      - name
                      - type
                      - enabled
                      - permission_policy
                    additionalProperties: false
            default_config:
              $ref: '#/components/schemas/Objects_18'
          required:
            - type
            - configs
            - default_config
          additionalProperties: false
        - type: object
          properties:
            type:
              type: string
              enum:
                - mcp_toolset
            mcp_server_name:
              type: string
              allOf:
                - minLength: 1
                - maxLength: 255
            configs:
              type: array
              items:
                type: object
                properties:
                  name:
                    type: string
                  enabled:
                    type: boolean
                  permission_policy:
                    $ref: '#/components/schemas/BetaManagedAgentsPermissionPolicy'
                required:
                  - name
                  - enabled
                  - permission_policy
                additionalProperties: false
            default_config:
              $ref: '#/components/schemas/Objects_18'
          required:
            - type
            - mcp_server_name
            - configs
            - default_config
          additionalProperties: false
        - $ref: '#/components/schemas/Objects_17'
    BetaManagedAgentsSessionThreadAgent:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/AgentId'
        description:
          $ref: '#/components/schemas/Union_31'
        mcp_servers:
          $ref: '#/components/schemas/Arrays_5'
        model:
          $ref: '#/components/schemas/BetaManagedAgentsModelConfig'
        name:
          type: string
          allOf:
            - minLength: 1
            - maxLength: 255
        skills:
          $ref: '#/components/schemas/Arrays_6'
        system:
          $ref: '#/components/schemas/Union_33'
        tools:
          $ref: '#/components/schemas/Arrays_7'
        type:
          type: string
          enum:
            - agent
        version:
          type: integer
          allOf:
            - exclusiveMinimum: 0
      required:
        - id
        - description
        - mcp_servers
        - model
        - name
        - skills
        - system
        - tools
        - type
        - version
      additionalProperties: false
    BetaManagedAgentsAdvisor:
      type: object
      properties:
        model:
          type: string
        type:
          type: string
          enum:
            - advisor
      required:
        - model
        - type
      additionalProperties: false
    OutcomeId:
      type: string
      allOf:
        - pattern: ^outc_[0-9a-f]{32}$
    BetaManagedAgentsGitHubRepositoryResource:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/SessionResourceId'
        created_at:
          $ref: '#/components/schemas/CurrentTimestamp'
        updated_at:
          $ref: '#/components/schemas/CurrentTimestamp'
        mount_path:
          $ref: '#/components/schemas/CurrentMountPath'
        type:
          type: string
          enum:
            - github_repository
        url:
          $ref: '#/components/schemas/BetaManagedAgentsGitHubRepositoryUrl'
        checkout:
          anyOf:
            - $ref: '#/components/schemas/BetaManagedAgentsRepositoryCheckout'
            - type: 'null'
      required:
        - id
        - created_at
        - updated_at
        - mount_path
        - type
        - url
      additionalProperties: false
    BetaManagedAgentsFileResource:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/SessionResourceId'
        created_at:
          $ref: '#/components/schemas/CurrentTimestamp'
        updated_at:
          $ref: '#/components/schemas/CurrentTimestamp'
        file_id:
          $ref: '#/components/schemas/FileId'
        mount_path:
          $ref: '#/components/schemas/CurrentMountPath'
        type:
          type: string
          enum:
            - file
      required:
        - id
        - created_at
        - updated_at
        - file_id
        - mount_path
        - type
      additionalProperties: false
    BetaManagedAgentsMemoryStoreResource:
      type: object
      properties:
        memory_store_id:
          $ref: '#/components/schemas/MemoryStoreId'
        type:
          type: string
          enum:
            - memory_store
        access:
          anyOf:
            - type: string
              enum:
                - read_write
                - read_only
            - type: 'null'
        description:
          type: string
        instructions:
          anyOf:
            - type: string
              allOf:
                - minLength: 1
                - maxLength: 4096
            - type: 'null'
        mount_path:
          anyOf:
            - $ref: '#/components/schemas/CurrentMountPath'
            - type: 'null'
        name:
          anyOf:
            - type: string
            - type: 'null'
      required:
        - memory_store_id
        - type
      additionalProperties: false
    Union_24:
      anyOf:
        - type: object
          properties:
            type:
              type: string
              enum:
                - low
          required:
            - type
          additionalProperties: false
        - type: object
          properties:
            type:
              type: string
              enum:
                - medium
          required:
            - type
          additionalProperties: false
        - type: object
          properties:
            type:
              type: string
              enum:
                - high
          required:
            - type
          additionalProperties: false
        - type: object
          properties:
            type:
              type: string
              enum:
                - xhigh
          required:
            - type
          additionalProperties: false
        - type: object
          properties:
            type:
              type: string
              enum:
                - max
          required:
            - type
          additionalProperties: false
    Union_11:
      type: string
      enum:
        - global
        - us
    BetaManagedAgentsToolParams:
      anyOf:
        - type: object
          properties:
            type:
              type: string
              enum:
                - agent_toolset_20260401
            configs:
              type: array
              items:
                $ref: '#/components/schemas/BetaManagedAgentsAgentToolConfigParams'
            default_config:
              anyOf:
                - $ref: '#/components/schemas/Objects_16'
                - type: 'null'
          required:
            - type
          additionalProperties: false
        - type: object
          properties:
            type:
              type: string
              enum:
                - mcp_toolset
            mcp_server_name:
              type: string
              allOf:
                - minLength: 1
                - maxLength: 255
            configs:
              type: array
              items:
                type: object
                properties:
                  name:
                    type: string
                    allOf:
                      - minLength: 1
                      - maxLength: 128
                  enabled:
                    type: boolean
                  permission_policy:
                    $ref: '#/components/schemas/BetaManagedAgentsPermissionPolicy'
                required:
                  - name
                additionalProperties: false
            default_config:
              anyOf:
                - $ref: '#/components/schemas/Objects_16'
                - type: 'null'
          required:
            - type
            - mcp_server_name
          additionalProperties: false
        - $ref: '#/components/schemas/Objects_17'
    FileId:
      type: string
      allOf:
        - pattern: ^file_[0-9a-f]{32}$
    BetaManagedAgentsGitHubRepositoryUrl:
      type: string
    BetaManagedAgentsRepositoryCheckout:
      anyOf:
        - type: object
          properties:
            type:
              type: string
              enum:
                - branch
            name:
              type: string
              allOf:
                - minLength: 1
          required:
            - type
            - name
          additionalProperties: false
        - type: object
          properties:
            type:
              type: string
              enum:
                - commit
            sha:
              type: string
              allOf:
                - pattern: ^[0-9a-f]{40}$
          required:
            - type
            - sha
          additionalProperties: false
    BetaManagedAgentsGitHubRepositoryMountPath:
      type: string
      allOf:
        - minLength: 2
        - maxLength: 1024
    BetaManagedAgentsFileResourceMountPath:
      type: string
      allOf:
        - minLength: 2
        - maxLength: 1024
    MemoryStoreId:
      type: string
      allOf:
        - pattern: ^memstore_[0-9a-f]{32}$
    BetaManagedAgentsPermissionPolicy:
      anyOf:
        - type: object
          properties:
            type:
              type: string
              enum:
                - always_allow
          required:
            - type
          additionalProperties: false
        - type: object
          properties:
            type:
              type: string
              enum:
                - always_ask
          required:
            - type
          additionalProperties: false
    Arrays_4:
      type: array
      items:
        type: string
        allOf:
          - minLength: 1
          - maxLength: 255
      allOf:
        - minItems: 1
        - maxItems: 64
    Objects_15:
      type: object
      properties:
        type:
          type: string
          enum:
            - approximate
        city:
          anyOf:
            - type: string
            - type: 'null'
        country:
          anyOf:
            - $ref: '#/components/schemas/BetaManagedAgentsIsoCountryCode'
            - type: 'null'
        region:
          anyOf:
            - type: string
            - type: 'null'
        timezone:
          anyOf:
            - $ref: '#/components/schemas/BetaManagedAgentsIanaTimeZone'
            - type: 'null'
      required:
        - type
      additionalProperties: false
    Objects_18:
      type: object
      properties:
        enabled:
          type: boolean
        permission_policy:
          $ref: '#/components/schemas/BetaManagedAgentsPermissionPolicy'
      required:
        - enabled
        - permission_policy
      additionalProperties: false
    Objects_17:
      type: object
      properties:
        type:
          type: string
          enum:
            - custom
        name:
          type: string
          allOf:
            - minLength: 1
            - maxLength: 128
            - pattern: ^[A-Za-z0-9_-]+$
        description:
          type: string
          allOf:
            - minLength: 1
        input_schema:
          $ref: '#/components/schemas/BetaManagedAgentsCustomToolInputSchema'
      required:
        - type
        - name
        - description
        - input_schema
      additionalProperties: false
    SessionResourceId:
      type: string
      allOf:
        - pattern: ^sesrsc_[0-9a-f]{32}$
    CurrentMountPath:
      type: string
      allOf:
        - minLength: 2
        - maxLength: 1024
    BetaManagedAgentsAgentToolConfigParams:
      anyOf:
        - type: object
          properties:
            name:
              type: string
              enum:
                - bash
            type:
              type: string
              enum:
                - bash
            enabled:
              anyOf:
                - type: boolean
                - type: 'null'
            permission_policy:
              anyOf:
                - $ref: '#/components/schemas/BetaManagedAgentsPermissionPolicy'
                - type: 'null'
          required:
            - name
          additionalProperties: false
        - type: object
          properties:
            name:
              type: string
              enum:
                - edit
            type:
              type: string
              enum:
                - edit
            enabled:
              anyOf:
                - type: boolean
                - type: 'null'
            permission_policy:
              anyOf:
                - $ref: '#/components/schemas/BetaManagedAgentsPermissionPolicy'
                - type: 'null'
          required:
            - name
          additionalProperties: false
        - type: object
          properties:
            name:
              type: string
              enum:
                - glob
            type:
              type: string
              enum:
                - glob
            enabled:
              anyOf:
                - type: boolean
                - type: 'null'
            permission_policy:
              anyOf:
                - $ref: '#/components/schemas/BetaManagedAgentsPermissionPolicy'
                - type: 'null'
          required:
            - name
          additionalProperties: false
        - type: object
          properties:
            name:
              type: string
              enum:
                - grep
            type:
              type: string
              enum:
                - grep
            enabled:
              anyOf:
                - type: boolean
                - type: 'null'
            permission_policy:
              anyOf:
                - $ref: '#/components/schemas/BetaManagedAgentsPermissionPolicy'
                - type: 'null'
          required:
            - name
          additionalProperties: false
        - type: object
          properties:
            name:
              type: string
              enum:
                - read
            type:
              type: string
              enum:
                - read
            enabled:
              anyOf:
                - type: boolean
                - type: 'null'
            permission_policy:
              anyOf:
                - $ref: '#/components/schemas/BetaManagedAgentsPermissionPolicy'
                - type: 'null'
          required:
            - name
          additionalProperties: false
        - type: object
          properties:
            name:
              type: string
              enum:
                - web_fetch
            type:
              type: string
              enum:
                - web_fetch
            enabled:
              anyOf:
                - type: boolean
                - type: 'null'
            permission_policy:
              anyOf:
                - $ref: '#/components/schemas/BetaManagedAgentsPermissionPolicy'
                - type: 'null'
            allowed_domains:
              $ref: '#/components/schemas/Arrays_4'
            blocked_domains:
              $ref: '#/components/schemas/Arrays_4'
            max_content_tokens:
              anyOf:
                - type: integer
                  allOf:
                    - exclusiveMinimum: 0
                - type: 'null'
          required:
            - name
          additionalProperties: false
        - type: object
          properties:
            name:
              type: string
              enum:
                - web_search
            type:
              type: string
              enum:
                - web_search
            enabled:
              anyOf:
                - type: boolean
                - type: 'null'
            permission_policy:
              anyOf:
                - $ref: '#/components/schemas/BetaManagedAgentsPermissionPolicy'
                - type: 'null'
            allowed_domains:
              $ref: '#/components/schemas/Arrays_4'
            blocked_domains:
              $ref: '#/components/schemas/Arrays_4'
            user_location:
              anyOf:
                - $ref: '#/components/schemas/Objects_15'
                - type: 'null'
          required:
            - name
          additionalProperties: false
        - type: object
          properties:
            name:
              type: string
              enum:
                - write
            type:
              type: string
              enum:
                - write
            enabled:
              anyOf:
                - type: boolean
                - type: 'null'
            permission_policy:
              anyOf:
                - $ref: '#/components/schemas/BetaManagedAgentsPermissionPolicy'
                - type: 'null'
          required:
            - name
          additionalProperties: false
    Objects_16:
      type: object
      properties:
        enabled:
          anyOf:
            - type: boolean
            - type: 'null'
        permission_policy:
          anyOf:
            - $ref: '#/components/schemas/BetaManagedAgentsPermissionPolicy'
            - type: 'null'
      additionalProperties: false
    BetaManagedAgentsIsoCountryCode:
      type: string
      allOf:
        - pattern: ^[A-Z]{2}$
    BetaManagedAgentsIanaTimeZone:
      type: string
      allOf:
        - minLength: 1
        - maxLength: 255
    BetaManagedAgentsCustomToolInputSchema:
      type: object
      properties:
        type:
          type: string
          enum:
            - object
        properties:
          anyOf:
            - type: object
              additionalProperties:
                $ref: '#/components/schemas/JsonValue'
            - type: 'null'
        required:
          anyOf:
            - type: array
              items:
                type: string
            - type: 'null'
      required:
        - type
      additionalProperties:
        $ref: '#/components/schemas/JsonValue'
      description: JSON Schema for custom tool input parameters.
    JsonValue:
      description: >-
        A value in the JSON data model: null, boolean, finite number, string,
        array, or object.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````