uuidgen > .report-create-key. Load the same file when retrying after a restart.
Idempotency-Key and body when retrying a create. Set AUTOMATION_CREATE_KEY from your saved key when using the SDK.
Cron expressions run in the supplied IANA time zone. This schedule fires at 09:00 New York time on weekdays, including daylight saving changes. Each Automation can fire on a schedule at most once per hour. To remove its schedule, update it with schedule: null.
Passing an Agent ID pins its latest version. To move to a newer version, update the Automation’s agent.
Session inputs
resources mounts memory stores, files, artifacts, skills, and GitHub repositories in each new Session. An artifact or skill without a version uses the current one when the run starts. vault_ids and mcp_server_credentials choose the credentials for the Agent’s MCP servers. The credentials are resolved when the run starts, so rotations apply to subsequent runs.
Updates replace a resource or credential list when you supply it and retain the list when you omit it. A run that already started keeps its own Session inputs. A missing resource can cause a run to fail with resource_unavailable. Repository resources in an Automation cannot include authorization_token.
By default an Automation refuses custom tool calls. Set custom_tools: "wait" if your application will answer them. Read the Session’s session.status_idle event for stop_reason.type equal to requires_action, then send user.custom_tool_result. MCP tools that need a person’s approval are refused in Automation Sessions. Handle tool calls
Run and inspect an Automation
A manual run works while the Automation is paused and leaves its schedule as configured. You can also trigger an Automation from GitHub, Linear, Notion, Discord, or a signed webhook; see Start an automation from an incoming integration. Use a stable idempotency key to recover the same run after an uncertain response. Save a separate key for each intended run before sending it. For example, runuuidgen > .report-run-key once for a new run, then read that file for every retry. Keep the Automation ID with the key.
AUTOMATION_RUN_KEY from your saved key when using the SDK.
POST /v1/automations/{automation_id}/run returns a 201 queued receipt with its run id and reserved session_id. automationRuns.retrieve(queued.id) (GET /v1/automation_runs/{automation_run_id}) waits briefly for the Session opening to settle and returns 503 while still starting, which the SDK retries automatically.
A settled run with status: "started" has opened session_id. A failed admission has status: "failed" and an error. Inspect the Session or its events for the agent’s eventual result. Automation webhooks report scheduled run transitions.
Pause and archive
- Pause suspends scheduled runs and keeps manual runs available.
- Unpause resumes scheduling from the current time. Missed scheduled runs are skipped.
- Archive stops the Automation permanently and frees a live slot. Automation limits
pause_reason, fix the underlying issue, and unpause.