Automations
List automation subscriptions
List the per-participant subscriptions of a PARTICIPANT_STATE automation.
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
Path parameters
program_idstring uuid required
The program's id.
automation_idstring uuid required
The automation's id.
Query parameters
status'ACTIVE' | 'FIRING' | 'PAUSED' | 'COMPLETED' | 'FAILED' | 'CANCELLED'
Return only subscriptions with this status
limitinteger
Return at most this many records, from 1 to 200, default 50.
cursorstring
The next_cursor from the previous response, valid only with the same endpoint and filters.
created_afterstring date-time
Return only records created after this time, RFC 3339.
created_beforestring date-time
Return only records created before this time, RFC 3339.
Response
Paginated subscriptions
Example response
{
"data": [
{
"automation_id": "6b2d4f81-0e93-4c5a-b7d6-3a8c1e5f9b13",
"created_at": "2027-01-15T10:30:00Z",
"id": "3d5f7a91-c2e4-4b68-a0d1-f3b5c7e9a215",
"last_error": "failed to enqueue event: queue unavailable",
"last_triggered_at": "2027-01-15T10:30:00Z",
"next_trigger_at": "2027-12-31T23:59:59Z",
"participant_id": "f7a8b9c0-1d2e-4f3a-b4c5-d6e7f8a9b006",
"status": "ACTIVE",
"trigger_count": 12
}
],
"pagination": {
"has_more": true,
"next_cursor": "YWJjMTIz"
}
}Changes
No recorded changes to this operation across all 1 revision of this API.