Create Deployment
Create Deployment through the OMA API.
?beta=true, anthropic-version: 2023-06-01, and anthropic-beta: managed-agents-2026-04-01.Authorizations
OMA workspace API key.
Query Parameters
Selects the beta API contract for this endpoint. Must be true.
true Body
Request parameters for creating a deployment.
Human-readable name for the deployment.
1 - 256Agent to deploy. Accepts the agent ID string, which pins the latest version, or an agent object with both id and version specified. The agent must exist and not be archived.
ID of the environment defining the container configuration for sessions created from this deployment.
1 - 128Events to send to each session immediately after creation. At least 1, maximum 50.
Parameters for sending a user message to the session.
- Option 1
- Option 2
- Option 3
Description of what the deployment does.
2048Vault IDs for stored credentials the agent can use during sessions created from this deployment. Maximum 50.
Resources (e.g. repositories, files) to mount into each session's container. Maximum 500.
Mount a GitHub repository into the session's container.
- Option 1
- Option 2
- Option 3
Arbitrary key-value metadata. Maximum 16 pairs, keys up to 64 chars, values up to 512 chars.
Optional recurring cron schedule. When present, the deployment fires automatically. Both expression and timezone are required when schedule is set.
Enforced spend ceiling stamped onto each session created from this deployment, copied at session-creation time. Omit to leave sessions uncapped. The deployment agent's model must have a public list price, or the request is rejected; a multiagent roster is re-validated in full when each fire copies the cap, which fails closed the same way.
Response
Successful response (OK)
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.
deployment "deployment"
Unique identifier for this deployment.
"depl_011CZkZcDH3vPqd7xnEfwTai"
Human-readable name.
"Daily order report"
Description of what the deployment does.
"Compiles yesterday's orders into a report every weekday morning."
Reference to the agent this deployment runs, resolved to a concrete version.
ID of the environment where sessions run.
"env_011CZkZ9X2dpNyB7HsEFoRfW"
Vault IDs supplying stored credentials for sessions created from this deployment.
Events sent to each session immediately after creation.
A user message sent to the session.
- Option 1
- Option 2
- Option 3
Resources attached to sessions created from this deployment. Echoes the input minus write-only credentials.
A GitHub repository mounted into each session's container. The authorization token is write-only and never returned.
- Option 1
- Option 2
- Option 3
Arbitrary key-value metadata. Maximum 16 pairs.
Recurring cron schedule. Presence enables scheduled execution; null means manual-only. Includes computed timestamps (next fire times, last run) on the cron variant.
Computed status of the deployment: active or paused. Archived deployments report active with archived_at set.
active, paused "active"
Why the deployment is paused. Non-null exactly when status is paused; null otherwise.
- Option 1
- Option 2
null
Time the deployment was created.
"2026-03-15T10:00:00Z"
Time the deployment was last updated.
"2026-03-15T10:00:00Z"
Time the deployment was archived. Null if not archived.
null
Spend ceiling stamped onto each session created from this deployment. Absent when no budget is set.