POST /api/v1/cloud/deployments
Creates a new Deployment. A Deployment binds an Agent to a cron schedule (or manual-only trigger), an Environment, and an initial set of events delivered at each run. The newly created deployment is in the active status and will begin firing according to its schedule immediately.
Headers
Request body
Schedule object
Environment variables
environment_variables uses the same validation as Session creation: variable names must match [A-Za-z_][A-Za-z0-9_]*, reserved names/prefixes are rejected, duplicate keys are rejected, and the total payload is limited. The response returns a normalized string sorted by key and joined with newlines.
Example request
Example response
HTTP 200 OKResponse fields
CMA alignment
This endpoint aligns with the Anthropic CMAPOST /v1/deployments spec. Key differences:
- The
agentfield accepts both string and object forms (CMA requires object only). environment_variablesis a Qoder extension on deployments. It is stored on the deployment template and copied into sessions created by deployment runs.- Response includes
upcoming_runs_atin the schedule object (up to 5 future fire times).
Errors
See Errors for the full error envelope.
Related
List deployments
Page through all deployments under the account.
Get a deployment
Retrieve details for a single deployment.
Update a deployment
Modify name, schedule, resources, and other mutable fields.
Errors reference
All API error codes and the error envelope convention.