List Deployment Runs
api/beta/deployment_runs/list
Nearest release: v2.1.245, published an hour after this site recorded the change. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.
api/beta/deployment_runs/list Changed · +44 / -73 lines
# List Deployment Runs ## Query parameters ## Headers ## Returns ## Example ### Response (200) ## List Deployment Runs ### Query Parameters ### Header Parameters ### Returns ### Example #### Response
---- -title: List Deployment Runs -url: https://platform.claude.com/docs/en/api/beta/deployment_runs/list ---- +# List Deployment Runs -## List Deployment Runs +**GET** `/v1/deployment_runs` -**get** `/v1/deployment_runs` - List Deployment Runs -### Query Parameters +## Query parameters - `"created_at[gt]": optional string` Return runs created strictly after this time (exclusive). + format: date-time + - `"created_at[gte]": optional string` Return runs created at or after this time (inclusive). + format: date-time + - `"created_at[lt]": optional string` Return runs created strictly before this time (exclusive). + format: date-time + - `"created_at[lte]": optional string` Return runs created at or before this time (inclusive). + format: date-time + - `deployment_id: optional string` Filter to a specific deployment. Omit to list across all deployments in the workspace. Filtering by a non-existent deployment_id returns 200 with empty data.
Maximum results per page. Default 20, maximum 1000. + format: int32 + - `page: optional string` Opaque pagination cursor. Pass next_page from the previous response. Invalid or expired cursors return 400.
- `"manual"` -### Header Parameters +## Headers - `"anthropic-beta": optional array of AnthropicBeta`
- `"mid-conversation-tool-changes-2026-07-01"` -### Returns +## Returns - `data: array of BetaManagedAgentsDeploymentRun`
- `type: "agent"` - - `"agent"` - - `version: number` + format: int32 + - `created_at: string` A timestamp in RFC 3339 format + format: date-time + - `deployment_id: string` ID of the deployment that produced this run.
Why the run failed to create a session. The type identifies the failure; message is human-readable detail. - - `BetaManagedAgentsEnvironmentArchivedRunError object { message, type }` + - `BetaManagedAgentsEnvironmentArchivedRunError object` The deployment's environment was archived.
- `type: "environment_archived_error"` - - `"environment_archived_error"` + - `BetaManagedAgentsAgentArchivedRunError object` - - `BetaManagedAgentsAgentArchivedRunError object { message, type }` - The deployment's agent was archived. - `message: string`
- `type: "agent_archived_error"` - - `"agent_archived_error"` + - `BetaManagedAgentsEnvironmentNotFoundRunError object` - - `BetaManagedAgentsEnvironmentNotFoundRunError object { message, type }` - The deployment's environment no longer exists. - `message: string`
- `type: "environment_not_found_error"` - - `"environment_not_found_error"` + - `BetaManagedAgentsVaultNotFoundRunError object` - - `BetaManagedAgentsVaultNotFoundRunError object { message, type }` - A vault referenced by the deployment no longer exists. - `message: string`
- `type: "vault_not_found_error"` - - `"vault_not_found_error"` + - `BetaManagedAgentsVaultArchivedRunError object` - - `BetaManagedAgentsVaultArchivedRunError object { message, type }` - A vault referenced by the deployment is archived. - `message: string`
- `type: "vault_archived_error"` - - `"vault_archived_error"` + - `BetaManagedAgentsFileNotFoundRunError object` - - `BetaManagedAgentsFileNotFoundRunError object { message, type }` - A file resource referenced by the deployment no longer exists. - `message: string`
- `type: "file_not_found_error"` - - `"file_not_found_error"` + - `BetaManagedAgentsMemoryStoreArchivedRunError object` - - `BetaManagedAgentsMemoryStoreArchivedRunError object { message, type }` - A memory store referenced by the deployment is archived. - `message: string`
- `type: "memory_store_archived_error"` - - `"memory_store_archived_error"` + - `BetaManagedAgentsSkillNotFoundRunError object` - - `BetaManagedAgentsSkillNotFoundRunError object { message, type }` - A skill referenced by the deployment's agent no longer exists. - `message: string`
- `type: "skill_not_found_error"` - - `"skill_not_found_error"` + - `BetaManagedAgentsSessionResourceNotFoundRunError object` - - `BetaManagedAgentsSessionResourceNotFoundRunError object { message, type }` - A referenced resource no longer exists and its kind was not reported. - `message: string`
- `type: "session_resource_not_found_error"` - - `"session_resource_not_found_error"` + - `BetaManagedAgentsWorkspaceArchivedRunError object` - - `BetaManagedAgentsWorkspaceArchivedRunError object { message, type }` - The deployment's workspace was archived. - `message: string`
- `type: "workspace_archived_error"` - - `"workspace_archived_error"` + - `BetaManagedAgentsOrganizationDisabledRunError object` - - `BetaManagedAgentsOrganizationDisabledRunError object { message, type }` - The deployment's organization is disabled. - `message: string`
- `type: "organization_disabled_error"` - - `"organization_disabled_error"` + - `BetaManagedAgentsSessionRateLimitedRunError object` - - `BetaManagedAgentsSessionRateLimitedRunError object { message, type }` - Session creation was rejected due to rate limiting. The schedule keeps firing; subsequent runs may succeed. - `message: string`
- `type: "session_rate_limited_error"` - - `"session_rate_limited_error"` + - `BetaManagedAgentsSessionCreationRejectedRunError object` - - `BetaManagedAgentsSessionCreationRejectedRunError object { message, type }` - The session create request was rejected with a non-retryable validation error. - `message: string`
- `type: "session_creation_rejected_error"` - - `"session_creation_rejected_error"` + - `BetaManagedAgentsUnknownRunError object` - - `BetaManagedAgentsUnknownRunError object { message, type }` - An unknown or unexpected error caused the run to fail. A fallback variant; clients that do not recognize a new error type can match on message alone. - `message: string`
- `type: "unknown_error"` - - `"unknown_error"` + - `BetaManagedAgentsSelfHostedResourcesUnsupportedRunError object` - - `BetaManagedAgentsSelfHostedResourcesUnsupportedRunError object { message, type }` - The deployment configures resources, but its environment is self-hosted and cannot mount them. - `message: string`
- `type: "self_hosted_resources_unsupported_error"` - - `"self_hosted_resources_unsupported_error"` + - `BetaManagedAgentsMCPEgressBlockedRunError object` - - `BetaManagedAgentsMCPEgressBlockedRunError object { message, type }` - An MCP server host used by the deployment's agent is blocked by the environment's network policy. - `message: string`
- `type: "mcp_egress_blocked_error"` - - `"mcp_egress_blocked_error"` - - `session_id: string or null` Populated on success. Null on creation failure. Exactly one of session_id or error is non-null.
Describes what triggered a deployment run, with trigger-specific metadata. - - `BetaManagedAgentsScheduleTriggerContext object { scheduled_at, type }` + - `BetaManagedAgentsScheduleTriggerContext object` The run was fired by the deployment's cron schedule.
A timestamp in RFC 3339 format + format: date-time + - `type: "schedule"` - - `"schedule"` + - `BetaManagedAgentsManualTriggerContext object` - - `BetaManagedAgentsManualTriggerContext object { type }` - The run was started manually by creating a session directly against the deployment. - `type: "manual"` - - `"manual"` - - `type: "deployment_run"` - - `"deployment_run"` - - `next_page: optional string or null` Opaque cursor for the next page. Null when no more results. -### Example +## Example -```http +```bash curl https://api.anthropic.com/v1/deployment_runs \ -H 'anthropic-version: 2023-06-01' \ -H 'anthropic-beta: managed-agents-2026-04-01' \
-H "X-Api-Key: $ANTHROPIC_API_KEY" ``` -#### Response +### Response (200) ```json {