Automation Enrollments

Retrieve Automation Enrollment

Changed on

Retrieves a member's enrollment in an automation, with the step they're waiting on.

get/automation_enrollments/{id}

Request

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

Path parameters

id, string required

Automation enrollment ID, prefixed atoe_.

Headers

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

Pins the request to a dated API version.

Response

Automation enrollment details

AutomationEnrollment required
account_id, string required

ID of the account the automation belongs to, prefixed biz_.

automation_id, string required

ID of the automation, prefixed ato_.

created_at, string required

When the member enrolled, as an ISO 8601 timestamp.

ended_at, string nullable required

When the enrollment ended, as an ISO 8601 timestamp. null while it's active.

id, string required

Automation enrollment ID, prefixed atoe_.

member_id, string required

ID of the member in the automation, prefixed mber_.

next_run_at, string nullable required

When that step runs for this member, as an ISO 8601 timestamp. null once the enrollment ends.

next_step_id, string nullable required

ID of that step in the member's version, prefixed atos_. null once the enrollment ends.

next_step_key, integer nullable required

The key of the step the member is waiting on, in their version. null once the enrollment ends.

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

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.

trigger_event, 'payment.succeeded' | 'payment.failed' | 'membership.activated' | 'membership.trial_ending_soon' | 'membership.cancel_at_period_end_changed' | 'member.created' | 'invoice.created' | 'invoice.paid' | 'invoice.past_due' | 'refund.created' | 'dispute.created' | 'resolution_center_case.created' | 'resolution_center_case.decided' | 'course_lesson_interaction.completed' | 'null' nullable required

The webhook event that enrolled the member. null when POST /automations/{id}/trigger enrolled them.

trigger_resource_id, string nullable required

ID of the record the triggering event was about, such as a pay_ payment or mem_ membership. null when a trigger request enrolled them.

updated_at, string required

When the enrollment last changed, as an ISO 8601 timestamp.

user_id, string nullable required

ID of the member's user, prefixed user_. null when the member is another business.

version, integer required

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