Skip to main content
POST
Run Deployment Now
Every request requires ?beta=true, anthropic-version: 2023-06-01, and anthropic-beta: managed-agents-2026-04-01.

Authorizations

X-Api-Key
string
header
default:sk-ant-local-default
required

OMA workspace API key.

Headers

anthropic-version
string
required
anthropic-beta
string
required

Path Parameters

deployment_id
string
required

Path parameter deployment_id

Query Parameters

beta
enum<boolean>
required

Selects the beta API contract for this endpoint. Must be true.

Available options:
true

Response

Successful response (OK)

A persistent, append-only record of a single deployment execution. Records session creation success or failure — no session lifecycle tracking.

type
enum<string>
required
Available options:
deployment_run
id
string
required

Unique identifier for this run (drun_...).

deployment_id
string
required

ID of the deployment that produced this run.

trigger_context
object
required

What triggered this run and trigger-specific metadata.

session_id
string | null
required

Populated on success. Null on creation failure. Exactly one of session_id or error is non-null.

error
object
required

Populated on creation failure. Null on success. Exactly one of session_id or error is non-null.

agent
object
required

Snapshot of the agent at fire time. Always fully resolved — deployments pin agent + version.

Example:
created_at
string<date-time>
required

Time this run record was persisted.