input_template), subject to its own budget. Use deployments for recurring, unattended work.
The deployment object
Pinned agent version each run uses.
null means every fire tracks the agent’s current_version. A pin on the version an update or rollback replaces moves up to the new version; a pin on any older version stays.IANA zone the
cron is read in (default: the organization’s timezone), so 0 9 * * 1 stays 09:00 local across a daylight-saving shift.Text used as the session’s first input on each run. The input ends with the time the run was scheduled for (or, for
POST /v1/deployments/{id}/run, when it started), in the deployment’s timezone and in UTC, so a template can say “since the last run”.Per-run session budget, in micro-USD. Always set — it is required at create.
0 means none of its own: each fire runs on the agent’s budget.max_task_micro_usd.URL POSTed with the
session.idle envelope when a fire goes idle. A non-null value has a webhook endpoint behind it, listed by GET /v1/webhooks with events: ["deployment.on_idle"]; POST /v1/webhooks/{id}/rotate returns the secret these deliveries are signed with, and GET /v1/webhooks/{id}/deliveries is their log. This field is the authority: if the endpoint behind it is re-pointed elsewhere, the push is refused rather than sent to the other URL.Who let it run on its own: the person or key whose create (switched on or off), resume or
enabled: true it was; always:schedules when the company’s standing grant armed it; backfill:existing for a schedule from before the Allow, which keeps running as it stood when the clock first stamped it. null until someone allows it. Every company holds the grant by default, so an agent’s schedule is armed with always:schedules; only in a company that removed it is an agent’s schedule stored paused with none, and the clock pauses any schedule that reaches it without one.What the person allowed: a fingerprint of everything a run gets — the agent’s system prompt, tools, skills (a floating skill at its newest version), MCP servers, model and budget, and this schedule’s input, persona, timing and budget. A rename, a face or a description is not part of it.
null with no Allow.The same fingerprint for what a run would get now. A single read always carries it; a list carries it only for a schedule with no Allow, and
null for the rest. When it differs from allowed_for, the clock pauses the schedule at its next fire and takes the Allow away, and an agent may not run it, until a person resumes it again.Fires one time, at the
cron’s next match, then switches itself off (enabled: false). false repeats.Whether anything will act on it — what you get.
scheduled (a clock is watching it), paused (enabled: false), or unscheduled (enabled, but no clock runs schedules on this installation, so it will never fire on its own).Next fire time, and
null unless schedule_status is scheduled — a date nothing will honour is worse than none. An unscheduled deployment still fires on demand with POST /v1/deployments/{id}/run.The run that holds a
scheduled deployment: its newest run, while that run waits on a person (a question or an approval). Until it is answered, each fire is skipped, so next_run_at will not run. null when nothing holds it, and always null unless schedule_status is scheduled.Create a deployment
POST /v1/deployments → 201 Created.
Pin runs to a specific agent version for staged rollout or rollback. Omit to always track the agent’s
current_version. To hold a schedule back while the agent changes, pin a version older than the current one: a pin on the current version follows the next update.Cron expression (e.g.
0 9 * * 1 = Mondays at 09:00), read in timezone. A schedule may fire at most every 5 minutes: one with any two fires closer than that (* * * * *, */2 * * * *) is refused.IANA zone the
cron is read in. Defaults to the organization’s timezone, not UTC: a routine created without one runs on the company’s clock.Per-run budget in micro-USD. It must be stated.
0 runs each fire on the agent’s own task budget (budget.max_task_micro_usd), the ceiling any session of that agent has. At most the agent’s cap_micro_usd (validation_failed otherwise).URL POSTed with the
session.idle envelope each time a fire goes idle. Defaults to null, which pushes nothing. Setting it provisions the webhook endpoint the pushes are delivered through, so they inherit the signature, the retry schedule, the auto-disable and the delivery log.The persona every fire speaks as — an
idn_ id or the persona’s name, exactly as when creating a session. The agent must already hold a grant to it. It is resolved at create and stored as the id, so the response echoes idn_… even when you sent a name, and renaming the persona later cannot re-point the schedule. Defaults to null: the fire runs as no persona.Fire one time, then switch off: a one-off reminder.
0 9 23 11 * with once: true fires on the next 23 November at 09:00 and never again; without it, it fires every year. Defaults to false.validation_failed (400) for a missing or malformed field, an unparseable cron, one that fires more often than every 5 minutes, or an unknown timezone. Every invalid field is listed in message at once; param names the first. not_found (404) for an unknown agent, agent_version or identity.
Retrieve & list
Update a deployment
PATCH /v1/deployments/{id} → 200 OK. Scope agents:write. A partial update — send only the fields you are changing.
Every field of the deployment is patchable except agent_id: repointing a schedule at a different agent would silently change what the cron does while keeping its history, so create a new deployment instead.
The idle-push URL, or
null to stop pushing — null deletes the endpoint behind it and its signing secret. A new URL re-points the endpoint and re-enables it, so this is how a target that auto-disabled after repeated failures is brought back.The persona each fire speaks as, or
null to run as none. Re-validated against the agent’s grants.The schedule switch — the same state pause and resume toggle.
next_run_at and schedule_status.
Errors — validation_failed (400) for an unparseable cron, an unknown timezone, an attempt to change agent_id, or an identity the agent does not hold; not_found (404), including an identity that does not exist.
Pause & resume
POST /v1/deployments/{id}/pause and POST /v1/deployments/{id}/resume → 200 OK. Toggle the schedule without deleting the deployment.
Schedules run without asking by default. Every company holds the schedules rule in its organization’s always_allowed from the start, so a schedule an agent sets up is on as soon as it is made (allowed_by: "always:schedules") and nobody has to allow it. Removing that rule (Remove in Settings) turns asking on, and then only a person turns a schedule on: every fire is a paid session that runs the agent’s own tools, posting among them, so a schedule an agent sets up is kept paused with allowed_by: null, and a person’s resume is the Allow that arms it, on what a run gets then (allowed_for). An agent’s resume, or its PATCH with enabled: true, is forbidden (403). An agent may pause one. An agent’s other edits take the Allow away and pause the schedule until a person resumes it again. A person’s edit of a schedule they allowed keeps the Allow; their edit of one nobody allowed arms nothing.
Resume only. The
capability the person was shown. If what a run gets has changed since, the resume is refused with state_conflict (409), so a tap allows what it was shown.Resume only. Gives back the company’s standing grant for schedules, which every company holds until it removes it: the
schedules rule in the organization’s always_allowed, beside the company’s other “Always allow” rules. While it is held, a schedule an agent sets up, changes or resumes arms on its own (allowed_by: "always:schedules"), its runs post and spend without asking, and an agent’s change to what a run gets is covered too. A signed-in owner’s or admin’s only (forbidden, 403, otherwise). Removing the rule (PATCH /v1/organizations/{id} with always_allowed.remove, or Remove in Settings) pauses every schedule it armed.Response
Run once, now
POST /v1/deployments/{id}/run → 202 Accepted. Fires the deployment immediately, whatever its schedule says — including while it is paused or unscheduled. An agent may run only a schedule a person has allowed (forbidden, 403, otherwise). Every fire, scheduled or manual, is an ordinary session carrying this deployment’s deployment_id.
List runs
GET /v1/deployments/{id}/runs → 200 OK. Lists the sessions produced by this deployment, newest first. Cursor-paginated.
Response
Delete a deployment
DELETE /v1/deployments/{id} → 200 OK. Removes the schedule. Sessions it already created are retained.
Response