Claude Platform Docs

배포

배포 생성
BetaManagedAgentsDeployment beta().deployments().create(params, requestOptions = RequestOptions.none())
POST/v1/deployments
배포 나열
DeploymentListPage beta().deployments().list(params = DeploymentListParams.none(), requestOptions = RequestOptions.none())
GET/v1/deployments
배포 가져오기
BetaManagedAgentsDeployment beta().deployments().retrieve(params = DeploymentRetrieveParams.none(), requestOptions = RequestOptions.none())
GET/v1/deployments/{deployment_id}
배포 업데이트
BetaManagedAgentsDeployment beta().deployments().update(params = DeploymentUpdateParams.none(), requestOptions = RequestOptions.none())
POST/v1/deployments/{deployment_id}
배포 보관
BetaManagedAgentsDeployment beta().deployments().archive(params = DeploymentArchiveParams.none(), requestOptions = RequestOptions.none())
POST/v1/deployments/{deployment_id}/archive
지금 배포 실행
BetaManagedAgentsDeploymentRun beta().deployments().run(params = DeploymentRunParams.none(), requestOptions = RequestOptions.none())
POST/v1/deployments/{deployment_id}/run
배포 일시 중지
BetaManagedAgentsDeployment beta().deployments().pause(params = DeploymentPauseParams.none(), requestOptions = RequestOptions.none())
POST/v1/deployments/{deployment_id}/pause
배포 일시 중지 해제
BetaManagedAgentsDeployment beta().deployments().unpause(params = DeploymentUnpauseParams.none(), requestOptions = RequestOptions.none())
POST/v1/deployments/{deployment_id}/unpause
Models
class BetaManagedAgentsAgentArchivedDeploymentPausedReasonError { type; }

The deployment's agent was archived.

Type type
class BetaManagedAgentsCronSchedule { type; expression; timezone; /* 2 more */ }

5-field POSIX cron schedule with computed runtime timestamps.

Type type
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<LocalDateTime> 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<LocalDateTime>> 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; expression; timezone; }

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

Type type
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; 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 BetaManagedAgentsDeploymentInitialEventParams: union

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

class BetaManagedAgentsDeploymentPausedReason: union

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

class BetaManagedAgentsManualDeploymentPausedReason { type; }

The caller invoked the pause endpoint on the deployment.

Type type
class BetaManagedAgentsErrorDeploymentPausedReason { type; error; }

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

Type type

The failed run's 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; 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 type

System content blocks to append. Text-only.

Type type
String text

The text content.

minLength1
class BetaManagedAgentsDeploymentUserDefineOutcomeEvent { type; description; rubric; maxIterations; }

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

Type type
String description

What the agent should produce. This is the task specification.

Rubric rubric

How to grade the outcome. Text or file reference.

One of the following:
class BetaManagedAgentsFileRubric { type; fileId; }

Rubric referenced by a file uploaded via the Files API.

Type type
String fileId

ID of the rubric file.

class BetaManagedAgentsTextRubric { type; content; }

Rubric content provided inline as text.

Type type
String content

Rubric content. Plain text or markdown — the grader treats it as freeform text.

Optional<Long> maxIterations

Eval→revision cycles before giving up. Default 3, max 20.

formatint32
class BetaManagedAgentsDeploymentUserMessageEvent { type; content; }

A user message sent to the session.

Type type
List<Content> content

Array of content blocks for the user message.

One of the following:
class BetaManagedAgentsTextBlock { type; text; }

Regular text content.

Type type
String text

The text content.

minLength1
class BetaManagedAgentsImageBlock { type; source; }

Image content specified directly as base64 data or as a reference via a URL.

class BetaManagedAgentsDocumentBlock { type; source; context; title; }

Document content, either specified directly as base64 data, as text, or as a reference via a URL.

class BetaManagedAgentsRedactedBlock { type; }

Placeholder for content withheld by Anthropic model policy.

Type type
class BetaManagedAgentsEnvironmentArchivedDeploymentPausedReasonError { type; }

The deployment's environment was archived.

Type type
class BetaManagedAgentsEnvironmentNotFoundDeploymentPausedReasonError { type; }

The deployment's environment no longer exists.

Type type
class BetaManagedAgentsErrorDeploymentPausedReason { type; error; }

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

Type type

The failed run's error.

One of the following:
class BetaManagedAgentsFileNotFoundDeploymentPausedReasonError { type; }

A file resource referenced by the deployment no longer exists.

Type type
class BetaManagedAgentsFileResourceConfig { type; fileId; mountPath; }

A file mounted into each session's container.

Type type
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; url; checkout; mountPath; }

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

Type type
String url

Github URL of the repository

Optional<Checkout> checkout

Branch or commit to check out. Defaults to the repository's default branch.

One of the following:
class BetaManagedAgentsBranchCheckout { type; name; }
Type type
String name

Branch name to check out.

minLength1
maxLength255
class BetaManagedAgentsCommitCheckout { type; sha; }
Type type
String sha

Full commit SHA to check out.

minLength7
maxLength64
Optional<String> mountPath

Mount path in the container. Defaults to /workspace/<repo-name>.

class BetaManagedAgentsManualDeploymentPausedReason { type; }

The caller invoked the pause endpoint on the deployment.

Type type
class BetaManagedAgentsMcpEgressBlockedDeploymentPausedReasonError { type; }

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

Type type
class BetaManagedAgentsMemoryStoreArchivedDeploymentPausedReasonError { type; }

A memory store referenced by the deployment is archived.

Type type
class BetaManagedAgentsMemoryStoreResourceConfig { type; memoryStoreId; access; instructions; }

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

Type type
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; }

The deployment's organization is disabled.

Type type
class BetaManagedAgentsSchedule { type; expression; timezone; /* 2 more */ }

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

Type type
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<LocalDateTime> 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<LocalDateTime>> 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; expression; timezone; }

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

Type type
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; }

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

Type type
class BetaManagedAgentsSessionResourceConfig: union

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

class BetaManagedAgentsSessionResourceNotFoundDeploymentPausedReasonError { type; }

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

Type type
class BetaManagedAgentsSkillNotFoundDeploymentPausedReasonError { type; }

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

Type type
class BetaManagedAgentsUnknownDeploymentPausedReasonError { type; }

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

Type type
class BetaManagedAgentsVaultArchivedDeploymentPausedReasonError { type; }

A vault referenced by the deployment is archived.

Type type
class BetaManagedAgentsVaultNotFoundDeploymentPausedReasonError { type; }

A vault referenced by the deployment no longer exists.

Type type
class BetaManagedAgentsWorkspaceArchivedDeploymentPausedReasonError { type; }

The deployment's workspace was archived.

Type type