Automation Enrollments

List Automation Enrollments

Changed on

Lists members' enrollments in automations, newest first.

get/automation_enrollments

Request

  • Base URL
    https://api.whop.com/api/v1
  • Auth
    HTTP bearer

Query parameters

account_id, string

Only this account's enrollments, prefixed biz_. Defaults to the credential's account, or every account a user can read.

automation_id, string

Only this automation's enrollments, prefixed ato_.

member_id, string

Only this member's enrollments, prefixed mber_.

status, 'active' | 'completed' | 'canceled'

Only enrollments with this status.

version, integer

Only members on this automation version.

order, 'created_at'

Field to sort by.

direction, 'asc' | 'desc'

Sort direction.

first, integer

Number of results to return from the start of the range.

after, string

Return results after this cursor. Use page_info.end_cursor from the previous response to fetch the next page.

last, integer

Number of results to return from the end of the range.

before, string

Return results before this cursor. Use page_info.start_cursor from the previous response to fetch the previous page.

Headers

Api-Version-Date, string
Example:2026-11-30

Pins the request to a dated API version.

Response

Automation enrollment list

object required
data, AutomationEnrollment[] required
page_info, object required

Example response

{
  "data": [
    {
      "account_id": "biz_xxxxxxxxxxxxxx",
      "automation_id": "ato_xxxxxxxxxxxxxx",
      "created_at": "2026-01-01T12:00:00.000Z",
      "ended_at": "2026-01-01T12:00:00.000Z",
      "id": "atoe_xxxxxxxxxxxxxx",
      "member_id": "mber_xxxxxxxxxxxxxx",
      "next_run_at": "2026-01-01T12:00:00.000Z",
      "next_step_id": "atos_xxxxxxxxxxxxxx",
      "next_step_key": 1,
      "status": "active",
      "trigger_event": "payment.succeeded",
      "trigger_resource_id": "mber_xxxxxxxxxxxxxx",
      "updated_at": "2026-01-01T12:00:00.000Z",
      "user_id": "user_xxxxxxxxxxxxxx",
      "version": 1
    }
  ],
  "page_info": {
    "start_cursor": "WyJjdXJzb3IiLDFd"
  }
}

Changes