Claude Platform Docs

Despliegues

Crear despliegue
BetaManagedAgentsDeployment beta().deployments().create(params, requestOptions = RequestOptions.none())
POST/v1/deployments
Requires anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.
Listar despliegues
DeploymentListPage beta().deployments().list(params = DeploymentListParams.none(), requestOptions = RequestOptions.none())
GET/v1/deployments
Requires anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.
Obtener despliegue
BetaManagedAgentsDeployment beta().deployments().retrieve(params = DeploymentRetrieveParams.none(), requestOptions = RequestOptions.none())
GET/v1/deployments/{deployment_id}
Requires anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.
Actualizar despliegue
BetaManagedAgentsDeployment beta().deployments().update(params = DeploymentUpdateParams.none(), requestOptions = RequestOptions.none())
POST/v1/deployments/{deployment_id}
Requires anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.
Archivar despliegue
BetaManagedAgentsDeployment beta().deployments().archive(params = DeploymentArchiveParams.none(), requestOptions = RequestOptions.none())
POST/v1/deployments/{deployment_id}/archive
Requires anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.
Ejecutar despliegue ahora
BetaManagedAgentsDeploymentRun beta().deployments().run(params = DeploymentRunParams.none(), requestOptions = RequestOptions.none())
POST/v1/deployments/{deployment_id}/run
Requires anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.
Pausar despliegue
BetaManagedAgentsDeployment beta().deployments().pause(params = DeploymentPauseParams.none(), requestOptions = RequestOptions.none())
POST/v1/deployments/{deployment_id}/pause
Requires anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.
Reanudar despliegue
BetaManagedAgentsDeployment beta().deployments().unpause(params = DeploymentUnpauseParams.none(), requestOptions = RequestOptions.none())
POST/v1/deployments/{deployment_id}/unpause
Requires anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.
Models
class BetaManagedAgentsAgentArchivedDeploymentPausedReasonError { type = "agent_archived_error"; }

The deployment's agent was archived.

JsonValue type = "agent_archived_error"
class BetaManagedAgentsCronSchedule { type = "cron"; expression; timezone; /* 2 more */ }

5-field POSIX cron schedule with computed runtime timestamps.

JsonValue type = "cron"
String expression

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).

minLength1
maxLength256
String timezone

IANA timezone identifier (e.g., "America/Los_Angeles", "UTC").

minLength1
Optional<OffsetDateTime> lastRunAt

Time the most recent scheduled run actually started. Null until one completes; preserved after the deployment is archived. Manual runs do not update this.

formatdate-time
Optional<List<OffsetDateTime>> upcomingRunsAt

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.

class BetaManagedAgentsCronScheduleParams { type = "cron"; expression; timezone; }

5-field POSIX cron schedule. Literal wall-clock matching in the configured timezone.

JsonValue type = "cron"
String expression

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).

minLength1
maxLength256
String timezone

Required. IANA timezone identifier (e.g., "America/Los_Angeles", "UTC"). Validated against the IANA timezone database.

minLength1
class BetaManagedAgentsDeployment { type = "deployment"; 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.

class BetaManagedAgentsDeploymentInitialEvent: union

An event sent to a session immediately after it is created. Supports user.message, user.define_outcome, and system.message.

class BetaManagedAgentsDeploymentUserMessageEvent { type = "user.message"; content; }

A user message sent to the session.

class BetaManagedAgentsDeploymentUserDefineOutcomeEvent { type = "user.define_outcome"; description; rubric; maxIterations; }

An outcome the agent should work toward. The agent begins work on receipt.

class BetaManagedAgentsDeploymentSystemMessageEvent { type = "system.message"; 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.

JsonValue type = "system.message"

System content blocks to append. Text-only.

JsonValue type = "text"
String text

The text content.

minLength1
class BetaManagedAgentsDeploymentInitialEventParams: union

An event sent to a session immediately after it is created. Supports user.message, user.define_outcome, and system.message.

class BetaManagedAgentsUserMessageEventParams { type = "user.message"; content; }

Parameters for sending a user message to the session.

class BetaManagedAgentsUserDefineOutcomeEventParams { type = "user.define_outcome"; description; rubric; maxIterations; }

Parameters for defining an outcome the agent should work toward. The agent begins work on receipt.

class BetaManagedAgentsSystemMessageEventParams { type = "system.message"; 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. At most one per request: it must be the final event and immediately follow the user.message, user.tool_result, or user.custom_tool_result it accompanies. Only supported on models that accept mid-conversation system messages.

JsonValue type = "system.message"

System content blocks to append. Text-only.

JsonValue type = "text"
String text

The text content.

minLength1
class BetaManagedAgentsDeploymentPausedReason: union

Why a deployment is paused. Non-null exactly when status is paused.

class BetaManagedAgentsManualDeploymentPausedReason { type = "manual"; }

The caller invoked the pause endpoint on the deployment.

JsonValue type = "manual"
class BetaManagedAgentsErrorDeploymentPausedReason { type = "error"; error; }

A scheduled fire recorded a failed run whose error auto-pauses the deployment.

JsonValue type = "error"
One of the following:
class BetaManagedAgentsDeploymentPausedReasonError: union

The error that triggered an auto-pause. Matches the failed run's error.type.

enum BetaManagedAgentsDeploymentStatus

Lifecycle status of a deployment.

ACTIVE("active")

The deployment is active and can run sessions. Archived deployments also report this status; check archived_at to distinguish them.

PAUSED("paused")

The deployment is paused. Autonomous triggers are suppressed; manual runs are still permitted.

class BetaManagedAgentsDeploymentSystemMessageEvent { type = "system.message"; 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.

JsonValue type = "system.message"

System content blocks to append. Text-only.

JsonValue type = "text"
String text

The text content.

minLength1
class BetaManagedAgentsDeploymentUserDefineOutcomeEvent { type = "user.define_outcome"; description; rubric; maxIterations; }

An outcome the agent should work toward. The agent begins work on receipt.

class BetaManagedAgentsDeploymentUserMessageEvent { type = "user.message"; content; }

A user message sent to the session.

class BetaManagedAgentsEnvironmentArchivedDeploymentPausedReasonError { type = "environment_archived_error"; }

The deployment's environment was archived.

JsonValue type = "environment_archived_error"
class BetaManagedAgentsEnvironmentNotFoundDeploymentPausedReasonError { type = "environment_not_found_error"; }

The deployment's environment no longer exists.

JsonValue type = "environment_not_found_error"
class BetaManagedAgentsErrorDeploymentPausedReason { type = "error"; error; }

A scheduled fire recorded a failed run whose error auto-pauses the deployment.

JsonValue type = "error"
One of the following:
class BetaManagedAgentsFileNotFoundDeploymentPausedReasonError { type = "file_not_found_error"; }

A file resource referenced by the deployment no longer exists.

JsonValue type = "file_not_found_error"
class BetaManagedAgentsFileResourceConfig { type = "file"; fileId; mountPath; }

A file mounted into each session's container.

JsonValue type = "file"
String fileId

ID of a previously uploaded file.

Optional<String> mountPath

Mount path in the container. Defaults to /mnt/session/uploads/<file_id>.

class BetaManagedAgentsGitHubRepositoryResourceConfig { type = "github_repository"; url; checkout; mountPath; }

A GitHub repository mounted into each session's container. The authorization token is write-only and never returned.

class BetaManagedAgentsManualDeploymentPausedReason { type = "manual"; }

The caller invoked the pause endpoint on the deployment.

JsonValue type = "manual"
class BetaManagedAgentsMcpEgressBlockedDeploymentPausedReasonError { type = "mcp_egress_blocked_error"; }

An MCP server host used by the deployment's agent is blocked by the environment's network policy.

JsonValue type = "mcp_egress_blocked_error"
class BetaManagedAgentsMemoryStoreArchivedDeploymentPausedReasonError { type = "memory_store_archived_error"; }

A memory store referenced by the deployment is archived.

JsonValue type = "memory_store_archived_error"
class BetaManagedAgentsMemoryStoreResourceConfig { type = "memory_store"; memoryStoreId; access; instructions; }

A memory store attached to each session created from this deployment.

JsonValue type = "memory_store"
String memoryStoreId

The memory store ID (memstore_...). Must belong to the caller's organization and workspace.

Optional<Access> access

Access mode for the mounted store. Defaults to read_write. read_only mounts the store as a read-only filesystem.

One of the following:
READ_WRITE("read_write")
READ_ONLY("read_only")
Optional<String> instructions

Per-attachment guidance for the agent on how to use this store. Rendered into the memory section of the system prompt. Max 4096 chars.

class BetaManagedAgentsOrganizationDisabledDeploymentPausedReasonError { type = "organization_disabled_error"; }

The deployment's organization is disabled.

JsonValue type = "organization_disabled_error"
class BetaManagedAgentsSchedule { type = "cron"; expression; timezone; /* 2 more */ }

A recurring schedule with computed runtime timestamps. Discriminated union — only cron is supported currently.

JsonValue type = "cron"
String expression

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).

minLength1
maxLength256
String timezone

IANA timezone identifier (e.g., "America/Los_Angeles", "UTC").

minLength1
Optional<OffsetDateTime> lastRunAt

Time the most recent scheduled run actually started. Null until one completes; preserved after the deployment is archived. Manual runs do not update this.

formatdate-time
Optional<List<OffsetDateTime>> upcomingRunsAt

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.

class BetaManagedAgentsScheduleParams { type = "cron"; expression; timezone; }

A recurring schedule. Discriminated union — only cron is supported currently.

JsonValue type = "cron"
String expression

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).

minLength1
maxLength256
String timezone

Required. IANA timezone identifier (e.g., "America/Los_Angeles", "UTC"). Validated against the IANA timezone database.

minLength1
class BetaManagedAgentsSelfHostedResourcesUnsupportedDeploymentPausedReasonError { type = "self_hosted_resources_unsupported_error"; }

The deployment configures resources, but its environment is self-hosted and cannot mount them.

JsonValue type = "self_hosted_resources_unsupported_error"
class BetaManagedAgentsSessionResourceConfig: union

A configured session resource. Echoes the input minus write-only credentials.

class BetaManagedAgentsSessionResourceNotFoundDeploymentPausedReasonError { type = "session_resource_not_found_error"; }

A referenced resource no longer exists and its kind was not reported.

JsonValue type = "session_resource_not_found_error"
class BetaManagedAgentsSkillNotFoundDeploymentPausedReasonError { type = "skill_not_found_error"; }

A skill referenced by the deployment's agent no longer exists.

JsonValue type = "skill_not_found_error"
class BetaManagedAgentsUnknownDeploymentPausedReasonError { type = "unknown_error"; }

An unrecognized error auto-paused the deployment. A fallback variant; matches a run whose error.type is unknown_error.

JsonValue type = "unknown_error"
class BetaManagedAgentsVaultArchivedDeploymentPausedReasonError { type = "vault_archived_error"; }

A vault referenced by the deployment is archived.

JsonValue type = "vault_archived_error"
class BetaManagedAgentsVaultNotFoundDeploymentPausedReasonError { type = "vault_not_found_error"; }

A vault referenced by the deployment no longer exists.

JsonValue type = "vault_not_found_error"
class BetaManagedAgentsWorkspaceArchivedDeploymentPausedReasonError { type = "workspace_archived_error"; }

The deployment's workspace was archived.

JsonValue type = "workspace_archived_error"