---
title: "List automation subscriptions"
method: GET
path: "/v1/programs/{program_id}/automations/{automation_id}/subscriptions"
tags: ["Automations"]
---

# List automation subscriptions

`GET /v1/programs/{program_id}/automations/{automation_id}/subscriptions`

## Request

- Base URL: `https://api.scrip.dev`
- URL: `https://api.scrip.dev/v1/programs/{program_id}/automations/{automation_id}/subscriptions`
- Auth: HTTP bearer

List the per-participant subscriptions of a PARTICIPANT_STATE automation.

## Path parameters

- `program_id` string, uuid, required
- `automation_id` string, uuid, required

## Query parameters

- `status` 'ACTIVE' | 'FIRING' | 'PAUSED' | 'COMPLETED' | 'FAILED' | 'CANCELLED'
- `limit` integer
- `cursor` string
- `created_after` string, date-time
- `created_before` string, date-time

## Response `200`

Paginated subscriptions

- AutomationSubscriptionListResponse: One page of automation subscriptions, with the pagination details for the next page.
  - `data` AutomationSubscriptionResponse[]: The automation subscriptions on this page.
    - `automation_id` string, uuid: The automation this subscription belongs to
    - `created_at` string, date-time: When this subscription was created
    - `id` string, uuid: Unique identifier for this subscription
    - `last_error` string: Error message from the most recent failed trigger, if any
    - `last_triggered_at` string, date-time: When this participant last received an event from this automation
    - `next_trigger_at` string, date-time: When this participant's next event will fire (RFC 3339)
    - `participant_id` string, uuid: The enrolled participant
    - `retry_count` integer: Number of consecutive failed trigger attempts
    - `status` 'ACTIVE' | 'FIRING' | 'PAUSED' | 'COMPLETED' | 'FAILED' | 'CANCELLED': Whether this participant's subscription is waiting (ACTIVE), sending an event (FIRING), paused, finished, failed, or cancelled.
    - `trigger_count` integer: Number of times this subscription has fired
  - `pagination` PaginationResponse: Cursor details for a list. `has_more` says whether another page exists, and `next_cursor` is the value to send to get it.
    - `has_more` boolean, required: Whether more results are available beyond this page
    - `next_cursor` string, nullable, required: Cursor to fetch the next page. Null on the last page

## Other responses

- `400`: Invalid subscription status (code: validation_error)
- `401`: The API key is missing or not valid. See [Authentication](https://docs.scrip.dev/authentication).
- `404`: Automation or program not found (code: automation_not_found | program_not_found)
- `429`: Too many requests. Wait the number of seconds in the `Retry-After` header, then retry. See [Limits and durations](https://docs.scrip.dev/limits#rate-limits).
- `500`: Something failed on Scrip's side. Retry the request, and quote `request_id` if it keeps failing. [Errors](https://docs.scrip.dev/errors) lists every code, and the [API introduction](https://docs.scrip.dev/api-reference/introduction) describes the error format.

---

[API](https://skmtc.dev/scrip/apis/scrip-api.md) · [All operations](https://skmtc.dev/scrip/apis/scrip-api/llms.txt) · [OpenAPI document](https://skmtc.dev/scrip/apis/scrip-api/revisions/c52d35da8d97?raw)
