Creates a new automation in your organization. The automation is bound to a single environment, which determines the repository (or repository set) and resolved env vars / MCPs / skills used when the automation fires.
Documentation Index
Fetch the complete documentation index at: https://docs.replicas.dev/llms.txt
Use this file to discover all available pages before exploring further.
API key authentication. Obtain your API key from the Replicas dashboard under Settings > API Keys.
Request body for creating a new automation. The automation runs in a single environment specified by environment_id.
Human-readable name for the automation
One or more triggers. Duplicates are not allowed: at most one cron trigger, and at most one GitHub or Sentry trigger per event (e.g. two triggers for pull_request.opened is rejected, but pull_request.opened + pull_request.synchronize is fine).
1The instruction sent to the coding agent when the automation fires
ID of the environment this automation runs in. Required. The environment supplies the repository (or repository set) and resolved env vars / MCPs / skills.
Optional description
Whether the automation should be active (defaults to true)
Lifecycle policy for workspaces created by this automation
default, delete_when_done, delete_after_inactivity Inactivity timeout in minutes (requires delete_after_inactivity policy)
3 <= x <= 1440Automation created successfully
Response containing a single automation
An automation record