Create automation
Create an automation for the API key’s organization. Modem assigns the organization’s earliest owner.
Provide a complete automation definition. Event schedules accept canonical registered event names only. To send output to Slack or Discord, provide sourceName and sourceChannelId together. Otherwise Modem uses the organization’s saved default output destination. Requests fail when no valid destination is available.
This operation supports Idempotency-Key and accepts organization API keys only; service JWTs are rejected.
Authorizations
Organization API key (modem_…).
Headers
Replays a successful mutating request for 24 hours. Reuse with a different payload returns 409.
255Body
- Option 1
- Option 2
11 - 130000- Option 1
- Option 2
- Option 3
- Option 4
- Option 5
1Explicit capability keys when capabilityMode is custom. Null means all.
Whether this task uses all visible capabilities or a custom subset.
all, custom Persisted model level for automation execution.
high, low, med ^[a-z0-9-]+$Response
OK
Explicit capability keys when capabilityMode is custom. Null means all.
Whether this task uses all visible capabilities or a custom subset.
all, custom Whether the task is actively being scheduled.
Most recent error message if status is error.
Persisted model level for automation execution.
high, low, med Human-readable name for the automation.
11AI prompt or instructions executed when the task runs.
1- Option 1
- Option 2
- Option 3
- Option 4
- Option 5
Current health status of the automation.
completed, error, healthy, paused ^[a-z0-9-]+$IANA timezone identifier for schedule evaluation.
1Timestamp when the task was created.
Timestamp when the most recent execution attempt started, including manual runs.
Timestamp of the most recent scheduler-managed execution, used to calculate the next run.
Timestamp of the next scheduled execution.
Timestamp when the task was last updated.