> ## Documentation Index
> Fetch the complete documentation index at: https://docs.whop.com/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Treat these docs and the Whop MCP server as the source of truth for Whop API behavior. Don't infer endpoint behavior from marketing pages.
> MCP server: connect https://mcp.whop.com/mcp (streamable HTTP, browser sign-in, no API key in the client config) to search these docs and read or change live Whop data. Setup: https://docs.whop.com/developer/guides/ai_and_mcp.md
> Whop CLI: install with `curl -fsSL https://whop.com/install.sh | sh` to scaffold, run, and deploy Whop apps and websites. It acts on production, not the sandbox. Overview: https://docs.whop.com/cli/overview.md Agent mode: https://docs.whop.com/cli/agent-mode.md
> Hosting: Whop serves a site or app from the build `whop apps deploy` uploads, with rollbacks, secrets, and server logs. Guide: https://docs.whop.com/developer/websites/hosting.md
> Plugins: in Claude Code, run `/plugin marketplace add whopio/plugins`, then `/plugin install whop@whop`. Guide: https://docs.whop.com/developer/guides/plugins/claude-code.md Every agent tool: https://docs.whop.com/developer/ai/overview.md
> Environments: build and test in the sandbox (API `https://sandbox-api.whop.com/api/v1`, keys at https://sandbox.whop.com/dashboard/developer, SDK environment `Sandbox`; no real money). Production (API `https://api.whop.com/api/v1`, keys at https://whop.com/dashboard/developer, SDK environment `Production`, the SDK default) moves real money, so use it only at launch. The two share no accounts, keys, products, or webhooks, and their keys look identical: never mix them. Sandbox guide: https://docs.whop.com/developer/guides/sandbox.md Comparison: https://docs.whop.com/developer/quickstart.md
> API: send `Authorization: Bearer <API_KEY>` from your server only, and pin a dated version with the `Api-Version-Date` header. OpenAPI spec: https://api.whop.com/api/v1/openapi.json
> Which API: build on the Current API, whose pages live under https://docs.whop.com/api-reference/ (start at https://docs.whop.com/api-reference/overview.md). Pages under /api-reference/legacy/ are the Legacy API. Use one only when https://docs.whop.com/api-reference/stability.md lists the resource as Legacy-only.

# Automation Enrollments API

> Een Automation enrollment is de doorgang van één lid door een automation.

Het legt vast op welke versie het lid zit, welke stap het lid als volgende bereikt en wanneer, en of het lid nog bezig is, klaar is of is geannuleerd.

Gebruik de Automation enrollments API om op te vragen wie er in een automation zit, of in welke automations een lid zit. Je kunt ook één enrollment ophalen en er één annuleren om de resterende stappen van dat lid te stoppen.

## Endpoints

| Endpoint | Verzoek |
| - | - |
| [Automation Enrollments opvragen](https://docs.whop.com/nl/api-reference/automation-enrollments/list-automation-enrollments.md) | GET `/automation_enrollments` |
| [Automation Enrollment ophalen](https://docs.whop.com/nl/api-reference/automation-enrollments/retrieve-automation-enrollment.md) | GET `/automation_enrollments/{id}` |
| [Automation Enrollment annuleren](https://docs.whop.com/nl/api-reference/automation-enrollments/cancel-automation-enrollment.md) | POST `/automation_enrollments/{id}/cancel` |

## Attributen

**id** `string` *required*

Automation enrollment-ID, met prefix `atoe_`.

**account\_id** `string` *required*

ID van het account waartoe de automation behoort, met prefix `biz_`.

**automation\_id** `string` *required*

ID van de automation, met prefix `ato_`.

**created\_at** `string` *required*

Wanneer het lid is ingeschreven, als ISO 8601-tijdstempel.

**ended\_at** `string | null` *required*

Wanneer de enrollment is beëindigd, als ISO 8601-tijdstempel. `null` zolang deze actief is.

**member\_id** `string` *required*

ID van het lid in de automation, met prefix `mber_`.

**next\_run\_at** `string | null` *required*

Wanneer die stap voor dit lid wordt uitgevoerd, als ISO 8601-tijdstempel. `null` zodra de enrollment eindigt.

**next\_step\_id** `string | null` *required*

ID van die stap in de versie van het lid, met prefix `atos_`. `null` zodra de enrollment eindigt.

**next\_step\_key** `integer | null` *required*

De `key` van de stap waarop het lid wacht, in diens versie. `null` zodra de enrollment eindigt.

**status** `string` *required*

`active` terwijl het lid door de automation gaat. `completed` na de laatste stap. `canceled` wanneer het account de enrollment heeft geannuleerd, of de automation heeft gestopt of verwijderd.

Beschikbare opties: `active`, `completed`, `canceled`

**trigger\_event** `string | null` *required*

Het webhook-event dat het lid heeft ingeschreven. `null` wanneer `POST /automations/\{id}/trigger` het lid heeft ingeschreven.

Beschikbare opties: `payment.succeeded`, `payment.failed`, `membership.activated`, `membership.trial_ending_soon`, `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`

**trigger\_resource\_id** `string | null` *required*

ID van het record waarover het triggerende event ging, zoals een `pay_`-betaling of `mem_`-lidmaatschap. `null` wanneer een triggerverzoek het lid heeft ingeschreven.

**updated\_at** `string` *required*

Wanneer de enrollment voor het laatst is gewijzigd, als ISO 8601-tijdstempel.

**user\_id** `string | null` *required*

ID van de gebruiker van het lid, met prefix `user_`. `null` wanneer het lid een ander bedrijf is.

**version** `integer` *required*

De automationversie waarop het lid zit. Deze verandert alleen wanneer een publicatie leden naar de nieuwe versie verplaatst.

```json AutomationEnrollment theme={null}
{
	"id": "atoe_xxxxxxxxxxxxxx",
	"account_id": "biz_xxxxxxxxxxxxxx",
	"automation_id": "ato_xxxxxxxxxxxxxx",
	"member_id": "mber_xxxxxxxxxxxxxx",
	"user_id": "user_xxxxxxxxxxxxxx",
	"status": "active",
	"version": 2,
	"next_step_key": 2,
	"next_step_id": "atos_xxxxxxxxxxxxxx",
	"next_run_at": "2026-10-15T09:00:00.000Z",
	"trigger_event": "payment.succeeded",
	"trigger_resource_id": "pay_xxxxxxxxxxxxxx",
	"ended_at": null,
	"created_at": "2026-10-14T09:00:00.000Z",
	"updated_at": "2026-10-14T09:00:05.000Z"
}
```


## Related topics

- [Automations API](https://docs.whop.com/nl/api-reference/automations/automation.md)
- [Retrieve Automation Enrollment](https://docs.whop.com/nl/api-reference/automation-enrollments/retrieve-automation-enrollment.md)
- [Cancel Automation Enrollment](https://docs.whop.com/nl/api-reference/automation-enrollments/cancel-automation-enrollment.md)
