Anthropic Deployments?beta=true API

The Deployments?beta=true API from Anthropic — 1 operation(s) for deployments?beta=true.

Operations 2

POST /v1/deployments?beta=true Create Deployment #
GET /v1/deployments?beta=true List Deployments #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/anthropic-deployments-beta-true-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no email required.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

anthropic-deployments-beta-true-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Anthropic Deployments?beta=true API
servers:
- url: https://api.anthropic.com
tags:
- name: Deployments?beta=true
paths:
  /v1/deployments?beta=true:
    post:
      operationId: BetaCreateDeployment
      summary: Create Deployment
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/BetaManagedAgentsCreateDeploymentParams'
      responses:
        '200':
          description: Successful response (OK)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BetaManagedAgentsDeployment'
        '400':
          description: Invalid argument - The client specified an invalid argument
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BetaErrorResponse'
        '401':
          description: Unauthenticated - The request does not have valid authentication credentials
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BetaErrorResponse'
        '403':
          description: Permission denied - The caller does not have permission to execute the specified operation
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BetaErrorResponse'
        '404':
          description: Not found - Some requested entity was not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BetaErrorResponse'
        '408':
          description: Deadline exceeded - The deadline expired before the operation could complete
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BetaErrorResponse'
        '409':
          description: Aborted - The operation was aborted due to concurrency issue
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BetaErrorResponse'
        '412':
          description: Failed precondition - Operation was rejected because the system is not in required state
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BetaErrorResponse'
        '413':
          description: Out of range - Operation was attempted past the valid range
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BetaErrorResponse'
        '429':
          description: Resource exhausted - Some resource has been exhausted (rate limiting)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BetaErrorResponse'
        '431':
          description: Request header fields too large - Request metadata was too large
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BetaErrorResponse'
        '499':
          description: Cancelled - The operation was cancelled by the client
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BetaErrorResponse'
        '500':
          description: Internal - Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BetaErrorResponse'
        '501':
          description: Unimplemented - The operation is not implemented or supported
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BetaErrorResponse'
        '503':
          description: Unavailable - The service is currently unavailable
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BetaErrorResponse'
        '504':
          description: Deadline exceeded - Upstream service did not respond in time
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BetaErrorResponse'
      x-anthropic-beta-required:
      - managed-agents-2026-04-01
      parameters:
      - name: anthropic-version
        in: header
        required: false
        schema:
          type: string
      - name: anthropic-beta
        in: header
        required: false
        schema:
          type: string
          items:
            type: string
          x-stainless-override-schema:
            x-stainless-param: betas
            x-stainless-extend-default: true
            type: array
            description: Optional header to specify the beta version(s) you want to use.
            items:
              $ref: '#/components/schemas/AnthropicBeta'
      tags:
      - Deployments?beta=true
    get:
      operationId: BetaListDeployments
      summary: List Deployments
      parameters:
      - name: x-api-key
        in: header
        required: false
        schema:
          type: string
      - name: anthropic-version
        in: header
        required: false
        schema:
          type: string
      - name: anthropic-beta
        in: header
        required: false
        schema:
          type: string
          items:
            type: string
          x-stainless-override-schema:
            x-stainless-param: betas
            x-stainless-extend-default: true
            type: array
            description: Optional header to specify the beta version(s) you want to use.
            items:
              $ref: '#/components/schemas/AnthropicBeta'
      - name: limit
        in: query
        required: false
        schema:
          type: integer
          format: int32
        description: Maximum results per page. Default 20, maximum 100.
      - name: page
        in: query
        required: false
        schema:
          type: string
          x-stainless-pagination-property:
            purpose: next_cursor_param
        description: Opaque pagination cursor.
      - name: agent_id
        in: query
        required: false
        schema:
          type: string
        description: Filter by agent ID.
      - name: status
        in: query
        required: false
        schema:
          $ref: '#/components/schemas/BetaManagedAgentsDeploymentStatus'
        description: 'Filter by status: active or paused. Omit for both. To include archived deployments, use include_archived instead; the two cannot be combined.'
      - name: created_at[gte]
        in: query
        required: false
        schema:
          $ref: '#/components/schemas/BetaTimestamp'
        description: Return deployments created at or after this time (inclusive).
      - name: created_at[lte]
        in: query
        required: false
        schema:
          $ref: '#/components/schemas/BetaTimestamp'
        description: Return deployments created at or before this time (inclusive).
      - name: include_archived
        in: query
        required: false
        schema:
          type: boolean
        description: 'When true, includes archived deployments. Default: false (exclude archived).'
      responses:
        '200':
          description: Successful response (OK)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BetaManagedAgentsListDeploymentsData'
        '400':
          description: Invalid argument - The client specified an invalid argument
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BetaErrorResponse'
        '401':
          description: Unauthenticated - The request does not have valid authentication credentials
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BetaErrorResponse'
        '403':
          description: Permission denied - The caller does not have permission to execute the specified operation
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BetaErrorResponse'
        '404':
          description: Not found - Some requested entity was not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BetaErrorResponse'
        '408':
          description: Deadline exceeded - The deadline expired before the operation could complete
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BetaErrorResponse'
        '409':
          description: Aborted - The operation was aborted due to concurrency issue
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BetaErrorResponse'
        '412':
          description: Failed precondition - Operation was rejected because the system is not in required state
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BetaErrorResponse'
        '413':
          description: Out of range - Operation was attempted past the valid range
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BetaErrorResponse'
        '429':
          description: Resource exhausted - Some resource has been exhausted (rate limiting)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BetaErrorResponse'
        '431':
          description: Request header fields too large - Request metadata was too large
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BetaErrorResponse'
        '499':
          description: Cancelled - The operation was cancelled by the client
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BetaErrorResponse'
        '500':
          description: Internal - Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BetaErrorResponse'
        '501':
          description: Unimplemented - The operation is not implemented or supported
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BetaErrorResponse'
        '503':
          description: Unavailable - The service is currently unavailable
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BetaErrorResponse'
        '504':
          description: Deadline exceeded - Upstream service did not respond in time
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BetaErrorResponse'
      x-anthropic-beta-required:
      - managed-agents-2026-04-01
      tags:
      - Deployments?beta=true
components:
  schemas:
    BetaManagedAgentsScheduleParams:
      description: A recurring schedule. Discriminated union — only cron is supported currently.
      type: object
      discriminator:
        propertyName: type
        mapping:
          cron: '#/components/schemas/BetaManagedAgentsCronScheduleParams'
      oneOf:
      - $ref: '#/components/schemas/BetaManagedAgentsCronScheduleParams'
    BetaManagedAgentsDeploymentPausedReason:
      description: Why a deployment is paused. Non-null exactly when `status` is `paused`.
      type: object
      discriminator:
        propertyName: type
        mapping:
          manual: '#/components/schemas/BetaManagedAgentsManualDeploymentPausedReason'
          error: '#/components/schemas/BetaManagedAgentsErrorDeploymentPausedReason'
      oneOf:
      - $ref: '#/components/schemas/BetaManagedAgentsManualDeploymentPausedReason'
      - $ref: '#/components/schemas/BetaManagedAgentsErrorDeploymentPausedReason'
    BetaManagedAgentsSessionResourceConfig:
      description: A configured session resource. Echoes the input minus write-only credentials.
      type: object
      discriminator:
        propertyName: type
        mapping:
          github_repository: '#/components/schemas/BetaManagedAgentsGitHubRepositoryResourceConfig'
          file: '#/components/schemas/BetaManagedAgentsFileResourceConfig'
          memory_store: '#/components/schemas/BetaManagedAgentsMemoryStoreResourceConfig'
      oneOf:
      - $ref: '#/components/schemas/BetaManagedAgentsGitHubRepositoryResourceConfig'
      - $ref: '#/components/schemas/BetaManagedAgentsFileResourceConfig'
      - $ref: '#/components/schemas/BetaManagedAgentsMemoryStoreResourceConfig'
    BetaManagedAgentsErrorDeploymentPausedReason:
      description: A scheduled fire recorded a failed run whose error auto-pauses the deployment.
      type: object
      additionalProperties: false
      required:
      - type
      - error
      properties:
        type:
          type: string
          enum:
          - error
        error:
          description: The failed run's error.
          allOf:
          - $ref: '#/components/schemas/BetaManagedAgentsDeploymentPausedReasonError'
    BetaManagedAgentsDeploymentPausedReasonError:
      description: The error that triggered an auto-pause. Matches the failed run's `error.type`.
      type: object
      discriminator:
        propertyName: type
        mapping:
          environment_archived_error: '#/components/schemas/BetaManagedAgentsEnvironmentArchivedDeploymentPausedReasonError'
          agent_archived_error: '#/components/schemas/BetaManagedAgentsAgentArchivedDeploymentPausedReasonError'
          environment_not_found_error: '#/components/schemas/BetaManagedAgentsEnvironmentNotFoundDeploymentPausedReasonError'
          vault_not_found_error: '#/components/schemas/BetaManagedAgentsVaultNotFoundDeploymentPausedReasonError'
          file_not_found_error: '#/components/schemas/BetaManagedAgentsFileNotFoundDeploymentPausedReasonError'
          session_resource_not_found_error: '#/components/schemas/BetaManagedAgentsSessionResourceNotFoundDeploymentPausedReasonError'
          workspace_archived_error: '#/components/schemas/BetaManagedAgentsWorkspaceArchivedDeploymentPausedReasonError'
          organization_disabled_error: '#/components/schemas/BetaManagedAgentsOrganizationDisabledDeploymentPausedReasonError'
          memory_store_archived_error: '#/components/schemas/BetaManagedAgentsMemoryStoreArchivedDeploymentPausedReasonError'
          skill_not_found_error: '#/components/schemas/BetaManagedAgentsSkillNotFoundDeploymentPausedReasonError'
          vault_archived_error: '#/components/schemas/BetaManagedAgentsVaultArchivedDeploymentPausedReasonError'
          unknown_error: '#/components/schemas/BetaManagedAgentsUnknownDeploymentPausedReasonError'
          self_hosted_resources_unsupported_error: '#/components/schemas/BetaManagedAgentsSelfHostedResourcesUnsupportedDeploymentPausedReasonError'
          mcp_egress_blocked_error: '#/components/schemas/BetaManagedAgentsMcpEgressBlockedDeploymentPausedReasonError'
      oneOf:
      - $ref: '#/components/schemas/BetaManagedAgentsEnvironmentArchivedDeploymentPausedReasonError'
      - $ref: '#/components/schemas/BetaManagedAgentsAgentArchivedDeploymentPausedReasonError'
      - $ref: '#/components/schemas/BetaManagedAgentsEnvironmentNotFoundDeploymentPausedReasonError'
      - $ref: '#/components/schemas/BetaManagedAgentsVaultNotFoundDeploymentPausedReasonError'
      - $ref: '#/components/schemas/BetaManagedAgentsFileNotFoundDeploymentPausedReasonError'
      - $ref: '#/components/schemas/BetaManagedAgentsSessionResourceNotFoundDeploymentPausedReasonError'
      - $ref: '#/components/schemas/BetaManagedAgentsWorkspaceArchivedDeploymentPausedReasonError'
      - $ref: '#/components/schemas/BetaManagedAgentsOrganizationDisabledDeploymentPausedReasonError'
      - $ref: '#/components/schemas/BetaManagedAgentsMemoryStoreArchivedDeploymentPausedReasonError'
      - $ref: '#/components/schemas/BetaManagedAgentsSkillNotFoundDeploymentPausedReasonError'
      - $ref: '#/components/schemas/BetaManagedAgentsVaultArchivedDeploymentPausedReasonError'
      - $ref: '#/components/schemas/BetaManagedAgentsUnknownDeploymentPausedReasonError'
      - $ref: '#/components/schemas/BetaManagedAgentsSelfHostedResourcesUnsupportedDeploymentPausedReasonError'
      - $ref: '#/components/schemas/BetaManagedAgentsMcpEgressBlockedDeploymentPausedReasonError'
    BetaManagedAgentsAgentReference:
      description: A resolved agent reference with a concrete version.
      type: object
      additionalProperties: false
      required:
      - type
      - id
      - version
      properties:
        type:
          type: string
          enum:
          - agent
          examples:
          - agent
        id:
          type: string
          examples:
          - agent_011CZkYqphY8vELVzwCUpqiQ
        version:
          type: integer
          format: int32
          examples:
          - 1
      example:
        type: agent
        id: agent_011CZkYqphY8vELVzwCUpqiQ
        version: 1
    BetaManagedAgentsRubric:
      description: Rubric for grading the quality of an outcome.
      discriminator:
        propertyName: type
        mapping:
          file: '#/components/schemas/BetaManagedAgentsFileRubric'
          text: '#/components/schemas/BetaManagedAgentsTextRubric'
      oneOf:
      - $ref: '#/components/schemas/BetaManagedAgentsFileRubric'
      - $ref: '#/components/schemas/BetaManagedAgentsTextRubric'
    BetaManagedAgentsUserMessageEventParams:
      description: Parameters for sending a user message to the session.
      type: object
      additionalProperties: false
      required:
      - type
      - content
      properties:
        type:
          type: string
          enum:
          - user.message
          examples:
          - user.message
        content:
          description: Array of content blocks for the user message.
          type: array
          items:
            $ref: '#/components/schemas/BetaManagedAgentsUserContentBlock'
          examples:
          - - type: text
              text: 'Where is my order #1234?'
      example:
        type: user.message
        content:
        - type: text
          text: 'Where is my order #1234?'
    BetaManagedAgentsEnvironmentArchivedDeploymentPausedReasonError:
      description: The deployment's environment was archived.
      type: object
      additionalProperties: false
      required:
      - type
      properties:
        type:
          type: string
          enum:
          - environment_archived_error
    BetaManagedAgentsDocumentBlock:
      description: Document content, either specified directly as base64 data, as text, or as a reference via a URL.
      type: object
      additionalProperties: false
      required:
      - type
      - source
      properties:
        type:
          type: string
          enum:
          - document
        source:
          description: The source of the document data.
          allOf:
          - $ref: '#/components/schemas/BetaManagedAgentsDocumentSource'
        title:
          description: The title of the document.
          anyOf:
          - type: string
          - type: 'null'
        context:
          description: Additional context about the document for the model.
          anyOf:
          - type: string
          - type: 'null'
    BetaManagedAgentsSelfHostedResourcesUnsupportedDeploymentPausedReasonError:
      description: The deployment configures resources, but its environment is self-hosted and cannot mount them.
      type: object
      additionalProperties: false
      required:
      - type
      properties:
        type:
          type: string
          enum:
          - self_hosted_resources_unsupported_error
    BetaManagedAgentsURLImageSource:
      description: Image referenced by URL.
      type: object
      additionalProperties: false
      required:
      - type
      - url
      properties:
        type:
          type: string
          enum:
          - url
        url:
          description: URL of the image to fetch.
          type: string
          minLength: 1
    BetaManagedAgentsBudget:
      description: An enforced spend ceiling on a session. Discriminated on `type`; `limit` is the only kind currently supported.
      type: object
      discriminator:
        propertyName: type
        mapping:
          limit: '#/components/schemas/BetaManagedAgentsBudgetLimit'
      oneOf:
      - $ref: '#/components/schemas/BetaManagedAgentsBudgetLimit'
    BetaManagedAgentsManualDeploymentPausedReason:
      description: The caller invoked the pause endpoint on the deployment.
      type: object
      additionalProperties: false
      required:
      - type
      properties:
        type:
          type: string
          enum:
          - manual
    BetaManagedAgentsVaultNotFoundDeploymentPausedReasonError:
      description: A vault referenced by the deployment no longer exists.
      type: object
      additionalProperties: false
      required:
      - type
      properties:
        type:
          type: string
          enum:
          - vault_not_found_error
    BetaManagedAgentsAgentArchivedDeploymentPausedReasonError:
      description: The deployment's agent was archived.
      type: object
      additionalProperties: false
      required:
      - type
      properties:
        type:
          type: string
          enum:
          - agent_archived_error
    BetaManagedAgentsCronSchedule:
      description: 5-field POSIX cron schedule with computed runtime timestamps.
      type: object
      additionalProperties: false
      required:
      - type
      - expression
      - timezone
      properties:
        type:
          type: string
          enum:
          - cron
          examples:
          - cron
        expression:
          description: '5-field POSIX cron expression: minute hour day-of-month month day-of-week (e.g., "0 9 * * 1-5" for weekdays at 9am). Day-of-week is 0-7 where 0 and 7 both mean Sunday. Extended cron syntax - seconds or year fields, and the special characters L, W, #, and ? - is not supported, nor are predefined shortcuts (@daily).'
          type: string
          minLength: 1
          maxLength: 256
          examples:
          - 0 9 * * 1-5
        timezone:
          description: IANA timezone identifier (e.g., "America/Los_Angeles", "UTC").
          type: string
          minLength: 1
          examples:
          - America/Los_Angeles
        last_run_at:
          description: Time the most recent scheduled run actually started. Null until one completes; preserved after the deployment is archived. Manual runs do not update this.
          anyOf:
          - $ref: '#/components/schemas/BetaTimestamp'
          - type: 'null'
          examples:
          - '2026-03-16T16:00:09Z'
        upcoming_runs_at:
          description: Up to 5 timestamps of upcoming cron occurrences. Non-empty for active and paused deployments (reflects what the schedule would do if unpaused); empty once the deployment is archived (`archived_at` set). Each fire is offset by a small per-schedule jitter, so a run will actually start at or shortly after its listed time.
          type: array
          items:
            $ref: '#/components/schemas/BetaTimestamp'
          examples:
          - - '2026-03-17T16:00:00Z'
            - '2026-03-18T16:00:00Z'
      example:
        type: cron
        expression: 0 9 * * 1-5
        timezone: America/Los_Angeles
        last_run_at: '2026-03-16T16:00:09Z'
        upcoming_runs_at:
        - '2026-03-17T16:00:00Z'
        - '2026-03-18T16:00:00Z'
    BetaManagedAgentsDeploymentInitialEvent:
      description: An event sent to a session immediately after it is created. Supports `user.message`, `user.define_outcome`, and `system.message`.
      type: object
      discriminator:
        propertyName: type
        mapping:
          user.message: '#/components/schemas/BetaManagedAgentsDeploymentUserMessageEvent'
          user.define_outcome: '#/components/schemas/BetaManagedAgentsDeploymentUserDefineOutcomeEvent'
          system.message: '#/components/schemas/BetaManagedAgentsDeploymentSystemMessageEvent'
      oneOf:
      - $ref: '#/components/schemas/BetaManagedAgentsDeploymentUserMessageEvent'
      - $ref: '#/components/schemas/BetaManagedAgentsDeploymentUserDefineOutcomeEvent'
      - $ref: '#/components/schemas/BetaManagedAgentsDeploymentSystemMessageEvent'
    BetaManagedAgentsFileNotFoundDeploymentPausedReasonError:
      description: A file resource referenced by the deployment no longer exists.
      type: object
      additionalProperties: false
      required:
      - type
      properties:
        type:
          type: string
          enum:
          - file_not_found_error
    BetaManagedAgentsOrganizationDisabledDeploymentPausedReasonError:
      description: The deployment's organization is disabled.
      type: object
      additionalProperties: false
      required:
      - type
      properties:
        type:
          type: string
          enum:
          - organization_disabled_error
    BetaManagedAgentsFileDocumentSource:
      description: Document referenced by file ID.
      type: object
      additionalProperties: false
      required:
      - type
      - file_id
      properties:
        type:
          type: string
          enum:
          - file
        file_id:
          description: ID of a previously uploaded file.
          type: string
          minLength: 1
    BetaManagedAgentsFileRubricParams:
      description: Rubric referenced by a file uploaded via the Files API.
      type: object
      additionalProperties: false
      required:
      - type
      - file_id
      properties:
        type:
          type: string
          enum:
          - file
          examples:
          - file
        file_id:
          description: ID of the rubric file.
          type: string
          examples:
          - file_011CNha8iCJcU1wXNR6q4V8w
      example:
        type: file
        file_id: file_011CNha8iCJcU1wXNR6q4V8w
    BetaManagedAgentsCronScheduleParams:
      description: 5-field POSIX cron schedule. Literal wall-clock matching in the configured timezone.
      type: object
      additionalProperties: false
      required:
      - type
      - expression
      - timezone
      properties:
        type:
          type: string
          enum:
          - cron
          examples:
          - cron
        expression:
          description: '5-field POSIX cron expression: minute hour day-of-month month day-of-week (e.g., "0 9 * * 1-5" for weekdays at 9am). Day-of-week is 0-7 where 0 and 7 both mean Sunday. Extended cron syntax - seconds or year fields, and the special characters L, W, #, and ? - is not supported, nor are predefined shortcuts (@daily).'
          type: string
          minLength: 1
          maxLength: 256
          examples:
          - 0 9 * * 1-5
        timezone:
          description: Required. IANA timezone identifier (e.g., "America/Los_Angeles", "UTC"). Validated against the IANA timezone database.
          type: string
          minLength: 1
          examples:
          - America/Los_Angeles
      example:
        type: cron
        expression: 0 9 * * 1-5
        timezone: America/Los_Angeles
    BetaManagedAgentsUserContentBlock:
      description: Content block in a user message. Can be `text`, `image`, or `document`.
      type: object
      discriminator:
        propertyName: type
        mapping:
          text: '#/components/schemas/BetaManagedAgentsTextBlock'
          image: '#/components/schemas/BetaManagedAgentsImageBlock'
          document: '#/components/schemas/BetaManagedAgentsDocumentBlock'
          redacted: '#/components/schemas/BetaManagedAgentsRedactedBlock'
      oneOf:
      - $ref: '#/components/schemas/BetaManagedAgentsTextBlock'
      - $ref: '#/components/schemas/BetaManagedAgentsImageBlock'
      - $ref: '#/components/schemas/BetaManagedAgentsDocumentBlock'
      - $ref: '#/components/schemas/BetaManagedAgentsRedactedBlock'
    BetaGatewayTimeoutError:
      properties:
        message:
          default: Request timeout
          title: Message
          type: string
        type:
          const: timeout_error
          default: timeout_error
          title: Type
          type: string
      required:
      - message
      - type
      title: GatewayTimeoutError
      type: object
    BetaManagedAgentsFileResourceConfig:
      description: A file mounted into each session's container.
      type: object
      additionalProperties: false
      required:
      - type
      - file_id
      properties:
        type:
          type: string
          enum:
          - file
        file_id:
          description: ID of a previously uploaded file.
          type: string
        mount_path:
          description: Mount path in the container. Defaults to `/mnt/session/uploads/<file_id>`.
          anyOf:
          - type: string
          - type: 'null'
    BetaManagedAgentsVaultArchivedDeploymentPausedReasonError:
      description: A vault referenced by the deployment is archived.
      type: object
      additionalProperties: false
      required:
      - type
      properties:
        type:
          type: string
          enum:
          - vault_archived_error
    BetaManagedAgentsDeploymentUserMessageEvent:
      description: A user message sent to the session.
      type: object
      additionalProperties: false
      required:
      - type
      - content
      properties:
        type:
          type: string
          enum:
          - user.message
        content:
          description: Array of content blocks for the user message.
          type: array
          items:
            $ref: '#/components/schemas/BetaManagedAgentsUserContentBlock'
    BetaManagedAgentsMemoryStoreArchivedDeploymentPausedReasonError:
      description: A memory store referenced by the deployment is archived.
      type: object
      additionalProperties: false
      required:
      - type
      properties:
        type:
          type: string
          enum:
          - memory_store_archived_error
    BetaManagedAgentsCreateDeploymentParams:
      description: Request parameters for creating a `deployment`.
      type: object
      additionalProperties: false
      required:
      - name
      - agent
      - environment_id
      - initial_events
      properties:
        name:
          description: Human-readable name for the deployment.
          type: string
          minLength: 1
          maxLength: 256
        description:
          description: Description of what the deployment does.
          anyOf:
          - type: string
            maxLength: 2048
          - type: 'null'
        agent:
          description: Agent to deploy. Accepts the `agent` ID string, which pins the latest version, or an `agent` object with both id and version specified. The agent must exist and not be archived.
          allOf:
          - $ref: '#/components/schemas/BetaManagedAgentsAgentUnionParams'
        environment_id:
          description: ID of the `environment` defining the container configuration for sessions created from this deployment.
          type: string
          minLength: 1
          maxLength: 128
        vault_ids:
          description: Vault IDs for stored credentials the agent can use during sessions created from this deployment. Maximum 50.
          type: array
          items:
            type: string
        initial_events:
          description: Events to send to each session immediately after creation. At least 1, maximum 50.
          type: array
          items:
            $ref: '#/components/schemas/BetaManagedAgentsDeploymentInitialEventParams'
        resources:
          description: Resources (e.g. repositories, files) to mount into each session's container. Maximum 500.
          type: array
          items:
            $ref: '#/components/schemas/BetaManagedAgentsSessionResourceParams'
        metadata:
          description: Arbitrary key-value metadata. Maximum 16 pairs, keys up to 64 chars, values up to 512 chars.
          type: object
          additionalProperties:
            type: string
        schedule:
          description: Optional recurring cron schedule. When present, the deployment fires automatically. Both expression and timezone are required when schedule is set.
          anyOf:
          - $ref: '#/components/schemas/Be

# --- truncated at 32 KB (72 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/anthropic/refs/heads/main/openapi/anthropic-deployments-beta-true-api-openapi.yml