> ## Documentation Index
> Fetch the complete documentation index at: https://docs.scrip.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Automations

> Scheduled and triggered event generation

An automation generates events on a schedule, at a specific time, or in response to participant state changes. Automations are scoped to a program. The `trigger.type` can be `cron`, `one_time`, `immediate`, or `participant_state`.

All endpoints are under `/v1/programs/{programId}/automations`.

## Endpoints

* Create, list, get, update, and delete automations
* Trigger an automation manually outside its schedule
* Cancel a pending or scheduled automation run
* Refresh subscriptions for a `participant_state` automation (re-evaluate filters)
* List subscriptions for a `participant_state` automation

<Note>
  For usage patterns and examples, see the [Automations guide](/guides/automations).
</Note>
