--- url: "https://platform.claude.com/docs/en/api/beta/deployments" titulek: "Deployments - Claude API Reference" h1: "Deployments" popis: "API reference for Deployments endpoints" jazyk: "en" kanonicka: "https://platform.claude.com/docs/en/api/beta/deployments" drobecky: ["mount_path: optional string or null", "mount_path", "optional", "string", "or null", "or", "null"] zdroj: "live" wayback_snapshot: "" stazeno: "2026-09-15 03:17:44" znaku: 13213 slov: 1257 kodovani: "iso-8859-2" sha256: "49de2d4acbe139af8f34eb679c032fe1fbb188b416971c326282f8378f86bc54" --- # Deployments ##### [Create Deployment](/docs/en/api/http/beta/deployments/create) POST /v1/deployments ##### [List Deployments](/docs/en/api/http/beta/deployments/list) GET /v1/deployments ##### [Get Deployment](/docs/en/api/http/beta/deployments/retrieve) GET /v1/deployments/{deployment_id} ##### [Update Deployment](/docs/en/api/http/beta/deployments/update) POST /v1/deployments/{deployment_id} ##### [Archive Deployment](/docs/en/api/http/beta/deployments/archive) POST /v1/deployments/{deployment_id}/archive ##### [Run Deployment Now](/docs/en/api/http/beta/deployments/run) POST /v1/deployments/{deployment_id}/run ##### [Pause Deployment](/docs/en/api/http/beta/deployments/pause) POST /v1/deployments/{deployment_id}/pause ##### [Unpause Deployment](/docs/en/api/http/beta/deployments/unpause) POST /v1/deployments/{deployment_id}/unpause ##### Models BetaManagedAgentsAgentArchivedDeploymentPausedReasonError object{ type }The deployment's agent was archived.type: "agent_archived_error" BetaManagedAgentsCronSchedule object{ type, expression, timezone, 2 more }5-field POSIX cron schedule with computed runtime timestamps.type: "cron"expression: string5-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).minLength1maxLength256timezone: stringIANA timezone identifier (e.g., "America/Los_Angeles", "UTC").minLength1last_run_at: optional string or nullA timestamp in RFC 3339 formatformatdate-timeupcoming_runs_at: optional array of stringUp 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. BetaManagedAgentsCronScheduleParams object{ type, expression, timezone }5-field POSIX cron schedule. Literal wall-clock matching in the configured timezone.type: "cron"expression: string5-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).minLength1maxLength256timezone: stringRequired. IANA timezone identifier (e.g., "America/Los_Angeles", "UTC"). Validated against the IANA timezone database.minLength1 BetaManagedAgentsDeployment object{ type, id, agent, 14 more }A deployment is a configured instance of an agent — it binds the agent to everything needed to run it autonomously: an environment, credentials, initial events, and an optional schedule. BetaManagedAgentsDeploymentInitialEvent = [BetaManagedAgentsDeploymentUserMessageEvent](/docs/en/api/http/beta/deployments#beta_managed_agents_deployment_user_message_event) { type, content } or [BetaManagedAgentsDeploymentUserDefineOutcomeEvent](/docs/en/api/http/beta/deployments#beta_managed_agents_deployment_user_define_outcome_event) { type, description, rubric, max_iterations } or [BetaManagedAgentsDeploymentSystemMessageEvent](/docs/en/api/http/beta/deployments#beta_managed_agents_deployment_system_message_event) { type, content }An event sent to a session immediately after it is created. Supports `user.message`, `user.define_outcome`, and `system.message`.One of the following: BetaManagedAgentsDeploymentInitialEventParams = [BetaManagedAgentsUserMessageEventParams](/docs/en/api/http/beta/sessions/events#beta_managed_agents_user_message_event_params) { type, content } or [BetaManagedAgentsUserDefineOutcomeEventParams](/docs/en/api/http/beta/sessions/events#beta_managed_agents_user_define_outcome_event_params) { type, description, rubric, max_iterations } or [BetaManagedAgentsSystemMessageEventParams](/docs/en/api/http/beta/sessions/events#beta_managed_agents_system_message_event_params) { type, content }An event sent to a session immediately after it is created. Supports `user.message`, `user.define_outcome`, and `system.message`.One of the following: BetaManagedAgentsDeploymentPausedReason = [BetaManagedAgentsManualDeploymentPausedReason](/docs/en/api/http/beta/deployments#beta_managed_agents_manual_deployment_paused_reason) { type } or [BetaManagedAgentsErrorDeploymentPausedReason](/docs/en/api/http/beta/deployments#beta_managed_agents_error_deployment_paused_reason) { type, error }Why a deployment is paused. Non-null exactly when `status` is `paused`.One of the following:BetaManagedAgentsManualDeploymentPausedReason object{ type }The caller invoked the pause endpoint on the deployment.type: "manual"BetaManagedAgentsErrorDeploymentPausedReason object{ type, error }A scheduled fire recorded a failed run whose error auto-pauses the deployment.type: "error"error: [BetaManagedAgentsDeploymentPausedReasonError](/docs/en/api/http/beta/deployments#beta_managed_agents_deployment_paused_reason_error)The error that triggered an auto-pause. Matches the failed run's `error.type`.One of the following: BetaManagedAgentsDeploymentPausedReasonError = [BetaManagedAgentsEnvironmentArchivedDeploymentPausedReasonError](/docs/en/api/http/beta/deployments#beta_managed_agents_environment_archived_deployment_paused_reason_error) { type } or [BetaManagedAgentsAgentArchivedDeploymentPausedReasonError](/docs/en/api/http/beta/deployments#beta_managed_agents_agent_archived_deployment_paused_reason_error) { type } or [BetaManagedAgentsEnvironmentNotFoundDeploymentPausedReasonError](/docs/en/api/http/beta/deployments#beta_managed_agents_environment_not_found_deployment_paused_reason_error) { type } or 11 moreThe error that triggered an auto-pause. Matches the failed run's `error.type`.One of the following: BetaManagedAgentsDeploymentStatus = "active" or "paused"Lifecycle status of a deployment.One of the following:"active""paused" BetaManagedAgentsDeploymentSystemMessageEvent object{ type, content }Privileged context for the accompanying turn and all subsequent turns, appended to the session's system context as a `role: "system"` turn rather than replacing the top-level system prompt.type: "system.message"content: array of [BetaManagedAgentsSystemContentBlock](/docs/en/api/http/beta/sessions#beta_managed_agents_system_content_block) { type, text }System content blocks to append. Text-only.type: "text"text: stringThe text content.minLength1 BetaManagedAgentsDeploymentUserDefineOutcomeEvent object{ type, description, rubric, max_iterations }An outcome the agent should work toward. The agent begins work on receipt. BetaManagedAgentsDeploymentUserMessageEvent object{ type, content }A user message sent to the session. BetaManagedAgentsEnvironmentArchivedDeploymentPausedReasonError object{ type }The deployment's environment was archived.type: "environment_archived_error" BetaManagedAgentsEnvironmentNotFoundDeploymentPausedReasonError object{ type }The deployment's environment no longer exists.type: "environment_not_found_error" BetaManagedAgentsErrorDeploymentPausedReason object{ type, error }A scheduled fire recorded a failed run whose error auto-pauses the deployment.type: "error"error: [BetaManagedAgentsDeploymentPausedReasonError](/docs/en/api/http/beta/deployments#beta_managed_agents_deployment_paused_reason_error)The error that triggered an auto-pause. Matches the failed run's `error.type`.One of the following: BetaManagedAgentsFileNotFoundDeploymentPausedReasonError object{ type }A file resource referenced by the deployment no longer exists.type: "file_not_found_error" BetaManagedAgentsFileResourceConfig object{ type, file_id, mount_path }A file mounted into each session's container.type: "file"file_id: stringID of a previously uploaded file.mount_path: optional string or nullMount path in the container. Defaults to `/mnt/session/uploads/`. BetaManagedAgentsGitHubRepositoryResourceConfig object{ type, url, checkout, mount_path }A GitHub repository mounted into each session's container. The authorization token is write-only and never returned. BetaManagedAgentsManualDeploymentPausedReason object{ type }The caller invoked the pause endpoint on the deployment.type: "manual" BetaManagedAgentsMCPEgressBlockedDeploymentPausedReasonError object{ type }An MCP server host used by the deployment's agent is blocked by the environment's network policy.type: "mcp_egress_blocked_error" BetaManagedAgentsMemoryStoreArchivedDeploymentPausedReasonError object{ type }A memory store referenced by the deployment is archived.type: "memory_store_archived_error" BetaManagedAgentsMemoryStoreResourceConfig object{ type, memory_store_id, access, instructions }A memory store attached to each session created from this deployment.type: "memory_store"memory_store_id: stringThe memory store ID (memstore_...). Must belong to the caller's organization and workspace.access: optional "read_write" or "read_only" or nullAccess mode for an attached memory store.One of the following:"read_write""read_only"instructions: optional string or nullPer-attachment guidance for the agent on how to use this store. Rendered into the memory section of the system prompt. Max 4096 chars. BetaManagedAgentsOrganizationDisabledDeploymentPausedReasonError object{ type }The deployment's organization is disabled.type: "organization_disabled_error" BetaManagedAgentsSchedule object{ type, expression, timezone, 2 more }5-field POSIX cron schedule with computed runtime timestamps.type: "cron"expression: string5-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).minLength1maxLength256timezone: stringIANA timezone identifier (e.g., "America/Los_Angeles", "UTC").minLength1last_run_at: optional string or nullA timestamp in RFC 3339 formatformatdate-timeupcoming_runs_at: optional array of stringUp 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. BetaManagedAgentsScheduleParams object{ type, expression, timezone }5-field POSIX cron schedule. Literal wall-clock matching in the configured timezone.type: "cron"expression: string5-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).minLength1maxLength256timezone: stringRequired. IANA timezone identifier (e.g., "America/Los_Angeles", "UTC"). Validated against the IANA timezone database.minLength1 BetaManagedAgentsSelfHostedResourcesUnsupportedDeploymentPausedReasonError object{ type }The deployment configures resources, but its environment is self-hosted and cannot mount them.type: "self_hosted_resources_unsupported_error" BetaManagedAgentsSessionResourceConfig = [BetaManagedAgentsGitHubRepositoryResourceConfig](/docs/en/api/http/beta/deployments#beta_managed_agents_github_repository_resource_config) { type, url, checkout, mount_path } or [BetaManagedAgentsFileResourceConfig](/docs/en/api/http/beta/deployments#beta_managed_agents_file_resource_config) { type, file_id, mount_path } or [BetaManagedAgentsMemoryStoreResourceConfig](/docs/en/api/http/beta/deployments#beta_managed_agents_memory_store_resource_config) { type, memory_store_id, access, instructions }A configured session resource. Echoes the input minus write-only credentials.One of the following: BetaManagedAgentsSessionResourceNotFoundDeploymentPausedReasonError object{ type }A referenced resource no longer exists and its kind was not reported.type: "session_resource_not_found_error" BetaManagedAgentsSkillNotFoundDeploymentPausedReasonError object{ type }A skill referenced by the deployment's agent no longer exists.type: "skill_not_found_error" BetaManagedAgentsUnknownDeploymentPausedReasonError object{ type }An unrecognized error auto-paused the deployment. A fallback variant; matches a run whose `error.type` is `unknown_error`.type: "unknown_error" BetaManagedAgentsVaultArchivedDeploymentPausedReasonError object{ type }A vault referenced by the deployment is archived.type: "vault_archived_error" BetaManagedAgentsVaultNotFoundDeploymentPausedReasonError object{ type }A vault referenced by the deployment no longer exists.type: "vault_not_found_error" BetaManagedAgentsWorkspaceArchivedDeploymentPausedReasonError object{ type }The deployment's workspace was archived.type: "workspace_archived_error"