> ## 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.

# API de Automation Enrollments

> Una Automation enrollment es el recorrido de un miembro por una automatización.

Registra la versión en la que está el miembro, el siguiente paso al que llegará y cuándo, y si sigue en curso, ha terminado o se ha cancelado.

Usa la API de Automation enrollments para listar quién está en una automatización, o en qué automatizaciones está un miembro. También puedes obtener una inscripción y cancelar una para detener los pasos restantes de ese miembro.

## Endpoints

| Endpoint | Solicitud |
| - | - |
| [Listar Automation Enrollments](https://docs.whop.com/es/api-reference/automation-enrollments/list-automation-enrollments.md) | GET `/automation_enrollments` |
| [Obtener Automation Enrollment](https://docs.whop.com/es/api-reference/automation-enrollments/retrieve-automation-enrollment.md) | GET `/automation_enrollments/{id}` |
| [Cancelar Automation Enrollment](https://docs.whop.com/es/api-reference/automation-enrollments/cancel-automation-enrollment.md) | POST `/automation_enrollments/{id}/cancel` |

## Atributos

**id** `string` *required*

ID de la inscripción en la automatización, con el prefijo `atoe_`.

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

ID de la cuenta a la que pertenece la automatización, con el prefijo `biz_`.

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

ID de la automatización, con el prefijo `ato_`.

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

Cuándo se inscribió el miembro, como marca de tiempo ISO 8601.

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

Cuándo terminó la inscripción, como marca de tiempo ISO 8601. `null` mientras está activa.

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

ID del miembro en la automatización, con el prefijo `mber_`.

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

Cuándo se ejecuta ese paso para este miembro, como marca de tiempo ISO 8601. `null` una vez que termina la inscripción.

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

ID de ese paso en la versión del miembro, con el prefijo `atos_`. `null` una vez que termina la inscripción.

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

La `key` del paso que espera el miembro, en su versión. `null` una vez que termina la inscripción.

**status** `string` *required*

`active` mientras el miembro avanza por la automatización. `completed` después de su último paso. `canceled` cuando la cuenta canceló la inscripción, o detuvo o eliminó la automatización.

Opciones disponibles: `active`, `completed`, `canceled`

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

El evento de webhook que inscribió al miembro. `null` cuando lo inscribió `POST /automations/\{id}/trigger`.

Opciones disponibles: `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 del registro al que se refería el evento desencadenante, como un pago `pay_` o una membresía `mem_`. `null` cuando lo inscribió una solicitud de activación.

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

Cuándo cambió la inscripción por última vez, como marca de tiempo ISO 8601.

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

ID del usuario del miembro, con el prefijo `user_`. `null` cuando el miembro es otro negocio.

**version** `integer` *required*

La versión de la automatización en la que está el miembro. Solo cambia cuando una publicación mueve a los miembros a la nueva versión.

```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

- [API de Automations](https://docs.whop.com/es/api-reference/automations/automation.md)
- [API de Automation Steps](https://docs.whop.com/es/api-reference/automation-steps/automation-step.md)
- [Retrieve Automation Enrollment](https://docs.whop.com/es/api-reference/automation-enrollments/retrieve-automation-enrollment.md)
