Retrieve Automation Enrollment
Changed onRetrieves a member's enrollment in an automation, with the step they're waiting on.
Request
- Base URLhttps://api.whop.com/api/v1
- AuthHTTP bearer
Path parameters
Automation enrollment ID, prefixed atoe_.
Headers
Pins the request to a dated API version.
Response
Automation enrollment details
ID of the account the automation belongs to, prefixed biz_.
ID of the automation, prefixed ato_.
When the member enrolled, as an ISO 8601 timestamp.
When the enrollment ended, as an ISO 8601 timestamp. null while it's active.
Automation enrollment ID, prefixed atoe_.
ID of the member in the automation, prefixed mber_.
When that step runs for this member, as an ISO 8601 timestamp. null once the enrollment ends.
ID of that step in the member's version, prefixed atos_. null once the enrollment ends.
The key of the step the member is waiting on, in their version. null once the enrollment ends.
active while the member moves through the automation. completed after its last step. canceled when the account canceled the enrollment, or stopped or deleted the automation.
The webhook event that enrolled the member. null when POST /automations/{id}/trigger enrolled them.
ID of the record the triggering event was about, such as a pay_ payment or mem_ membership. null when a trigger request enrolled them.
When the enrollment last changed, as an ISO 8601 timestamp.
ID of the member's user, prefixed user_. null when the member is another business.
The automation version the member is on. It changes only when a publish moves members to the new version.
Example response
{
"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
}Changes
- warning
added the new
membership.cancel_at_period_end_changedenum value to thetrigger_eventresponse property for the response status
- warning
- info
endpoint added
- info