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

> Un Webhook es un endpoint de tu servidor al que Whop envía solicitudes HTTP POST firmadas cuando ocurren eventos, como un pago exitoso o la activación de una membresía.

Un webhook está vinculado a una cuenta o a una app y se suscribe a los eventos que elijas.

Usa la API de Webhooks para crear y actualizar endpoints, enviar un evento de prueba, inspeccionar el registro de entregas y reenviar las entregas que tu servidor no recibió. Consulta [Webhooks y eventos](https://docs.whop.com/es/developer/guides/webhooks.md) para verificar firmas y gestionar reintentos.

## Endpoints

| Endpoint | Solicitud |
| - | - |
| [Listar Webhooks](https://docs.whop.com/es/api-reference/webhooks/list-webhooks.md) | GET `/webhooks` |
| [Obtener Webhook](https://docs.whop.com/es/api-reference/webhooks/retrieve-webhook.md) | GET `/webhooks/{id}` |
| [Listar entregas](https://docs.whop.com/es/api-reference/webhooks/list-deliveries.md) | GET `/webhooks/{id}/deliveries` |
| [Crear Webhook](https://docs.whop.com/es/api-reference/webhooks/create-webhook.md) | POST `/webhooks` |
| [Reenviar entrega](https://docs.whop.com/es/api-reference/webhooks/replay-delivery.md) | POST `/webhooks/{id}/deliveries/{delivery_id}/replay` |
| [Reenviar entregas en un rango](https://docs.whop.com/es/api-reference/webhooks/replay-deliveries-in-a-range.md) | POST `/webhooks/{id}/replay` |
| [Enviar evento de prueba](https://docs.whop.com/es/api-reference/webhooks/send-test-event.md) | POST `/webhooks/{id}/test` |
| [Actualizar Webhook](https://docs.whop.com/es/api-reference/webhooks/update-webhook.md) | PATCH `/webhooks/{id}` |
| [Eliminar Webhook](https://docs.whop.com/es/api-reference/webhooks/delete-webhook.md) | DELETE `/webhooks/{id}` |

## Atributos

**id** `string` *required*

ID del webhook, con el prefijo `hook_`.

**api\_version** `string` *required*

La versión de la API usada para dar formato a los payloads enviados a este endpoint de webhook.

Opciones disponibles: `v1`, `v2`, `v5`

**api\_version\_date** `string | null` *required*

La versión fechada de la API (Api-Version-Date) a la que están fijados los payloads v1 de este endpoint: los eventos se serializan exactamente como una lectura REST en esta versión (con el serializador nativo cuando el recurso tiene uno). Null cuando no está fijada: webhooks legacy (v2/v5) y webhooks v1 con la forma de payload legacy.

**child\_resource\_events** `boolean` *required*

Si se envían eventos de recursos secundarios. Por ejemplo, si el webhook está en una cuenta, habilitar esto envía eventos solo de sus subcuentas.

**consecutive\_failures** `integer` *required*

Número de entregas consecutivas cuyo primer intento a este endpoint falló desde la última vez que aceptó una. Los reintentos posteriores de la misma entrega no lo incrementan. Se restablece a `0` cuando una entrega tiene éxito o se vuelve a habilitar el webhook.

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

Cuándo se creó el webhook, como marca de tiempo ISO 8601.

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

Cuándo deshabilitó Whop automáticamente este webhook, como marca de tiempo ISO 8601. `null` a menos que Whop haya deshabilitado el webhook; un webhook que deshabilitaste tú mismo tiene `enabled: false` y un `disabled_at` `null`.

**disabled\_reason** `string | null` *required*

Por qué Whop deshabilitó este webhook. `delivery_failures` significa que todas las entregas fallaron durante 3 días seguidos. `null` cuando `disabled_at` es `null`.

Opciones disponibles: `delivery_failures`

**enabled** `boolean` *required*

Si este endpoint de webhook está activo actualmente y recibe eventos.

**events** `string[]` *required*

Tipos de eventos a los que está suscrito este webhook, en formato con puntos (por ejemplo, `payment.succeeded`).

Opciones disponibles: `account.updated`, `account.financing_approved`, `account.financing_denied`, `account.financing_disabled`, `invoice.created`, `invoice.marked_uncollectible`, `invoice.paid`, `invoice.past_due`, `invoice.voided`, `membership.activated`, `membership.deactivated`, `membership.trial_ending_soon`, `membership.updated`, `entry.created`, `entry.approved`, `entry.denied`, `entry.deleted`, `export.completed`, `export.failed`, `setup_intent.requires_action`, `setup_intent.succeeded`, `setup_intent.canceled`, `ledger_account.funds_available`, `swap.completed`, `deposit.succeeded`, `financial_activity.funds_available`, `transfer.created`, `transfer.completed`, `transfer.failed`, `withdrawal.created`, `withdrawal.updated`, `withdrawal.reversed`, `payout.created`, `payout.updated`, `payout.reversed`, `card_transaction.created`, `card_transaction.updated`, `card_transaction.completed`, `card_transaction.declined`, `card_transaction.reversed`, `card.created`, `card.updated`, `card.frozen`, `card.canceled`, `card_application.created`, `card_application.updated`, `card_application.approved`, `card_application.denied`, `course_lesson_interaction.completed`, `domain.created`, `domain.updated`, `domain.deleted`, `capital.created`, `capital.updated`, `payout_method.created`, `verification.succeeded`, `identity_profile.approved`, `identity_profile.rejected`, `identity_profile.needs_action`, `identity_profile.updated`, `payout_account.status_updated`, `payment.authorized`, `payment.canceled`, `resolution_center_case.created`, `resolution_center_case.updated`, `resolution_center_case.decided`, `product.created`, `product.updated`, `product.deleted`, `product.published`, `product.unpublished`, `plan.created`, `plan.updated`, `plan.deleted`, `shipment.created`, `shipment.updated`, `member.created`, `member.updated`, `ad_campaign.created`, `ad_campaign.payment_failed`, `ad_campaign.updated`, `ad_campaign.events`, `ad_campaign.deleted`, `ad_group.created`, `ad_group.updated`, `ad_group.deleted`, `ad.created`, `ad.updated`, `ad.deleted`, `app_installation.created`, `app_installation.deleted`, `events.created`, `chat.message.created`, `chat.reaction.created`, `payment.created`, `payment.succeeded`, `payment.failed`, `payment.pending`, `payment.requires_action`, `dispute.created`, `dispute.updated`, `refund.created`, `refund.updated`, `dispute_alert.created`, `membership.cancel_at_period_end_changed`, `membership.went_valid`, `membership.went_invalid`, `membership.metadata_updated`, `resolution.created`, `resolution.updated`, `resolution.decided`, `payment.affiliate_reward_created`, `membership.experience_claimed`, `app_membership.went_valid`, `app_membership.went_invalid`, `app_payment.created`, `app_payment.succeeded`, `app_payment.failed`, `app_payment.pending`, `app_payment.requires_action`, `app_membership.cancel_at_period_end_changed`, `shipping_address.changed`

**failing\_since** `string | null` *required*

Cuándo comenzó la racha de fallos actual, como marca de tiempo ISO 8601. A diferencia de `last_failure_at`, se establece en el primer intento fallido de la racha, por lo que muestra un endpoint que está fallando en este momento. `null` cuando el endpoint funciona correctamente.

**last\_failure\_at** `string | null` *required*

Cuándo falló por última vez una entrega a este endpoint tras agotar los reintentos, como marca de tiempo ISO 8601. `null` si nunca ha fallado ninguna entrega.

**resource\_id** `string` *required*

ID del recurso (cuenta o app) al que está vinculado este webhook.

**testable\_events** `string[]` *required*

El subconjunto de tipos de eventos suscritos que admiten el envío de payloads de prueba, en formato con puntos.

Opciones disponibles: `account.updated`, `account.financing_approved`, `account.financing_denied`, `account.financing_disabled`, `invoice.created`, `invoice.marked_uncollectible`, `invoice.paid`, `invoice.past_due`, `invoice.voided`, `membership.activated`, `membership.deactivated`, `membership.trial_ending_soon`, `membership.updated`, `entry.created`, `entry.approved`, `entry.denied`, `entry.deleted`, `export.completed`, `export.failed`, `setup_intent.requires_action`, `setup_intent.succeeded`, `setup_intent.canceled`, `ledger_account.funds_available`, `swap.completed`, `deposit.succeeded`, `financial_activity.funds_available`, `transfer.created`, `transfer.completed`, `transfer.failed`, `withdrawal.created`, `withdrawal.updated`, `withdrawal.reversed`, `payout.created`, `payout.updated`, `payout.reversed`, `card_transaction.created`, `card_transaction.updated`, `card_transaction.completed`, `card_transaction.declined`, `card_transaction.reversed`, `card.created`, `card.updated`, `card.frozen`, `card.canceled`, `card_application.created`, `card_application.updated`, `card_application.approved`, `card_application.denied`, `course_lesson_interaction.completed`, `domain.created`, `domain.updated`, `domain.deleted`, `capital.created`, `capital.updated`, `payout_method.created`, `verification.succeeded`, `identity_profile.approved`, `identity_profile.rejected`, `identity_profile.needs_action`, `identity_profile.updated`, `payout_account.status_updated`, `payment.authorized`, `payment.canceled`, `resolution_center_case.created`, `resolution_center_case.updated`, `resolution_center_case.decided`, `product.created`, `product.updated`, `product.deleted`, `product.published`, `product.unpublished`, `plan.created`, `plan.updated`, `plan.deleted`, `shipment.created`, `shipment.updated`, `member.created`, `member.updated`, `ad_campaign.created`, `ad_campaign.payment_failed`, `ad_campaign.updated`, `ad_campaign.events`, `ad_campaign.deleted`, `ad_group.created`, `ad_group.updated`, `ad_group.deleted`, `ad.created`, `ad.updated`, `ad.deleted`, `app_installation.created`, `app_installation.deleted`, `events.created`, `chat.message.created`, `chat.reaction.created`, `payment.created`, `payment.succeeded`, `payment.failed`, `payment.pending`, `payment.requires_action`, `dispute.created`, `dispute.updated`, `refund.created`, `refund.updated`, `dispute_alert.created`, `membership.cancel_at_period_end_changed`, `membership.went_valid`, `membership.went_invalid`, `membership.metadata_updated`, `resolution.created`, `resolution.updated`, `resolution.decided`, `payment.affiliate_reward_created`, `membership.experience_claimed`, `app_membership.went_valid`, `app_membership.went_invalid`, `app_payment.created`, `app_payment.succeeded`, `app_payment.failed`, `app_payment.pending`, `app_payment.requires_action`, `app_membership.cancel_at_period_end_changed`, `shipping_address.changed`

**title** `string | null` *required*

Una etiqueta para este endpoint de webhook, como `Production`, que se muestra en el panel. `null` si no se ha establecido ningún título.

**url** `string` *required*

URL de destino donde se entregan los payloads del webhook mediante HTTP POST.

**webhook\_secret** `string | null` *required*

Clave secreta usada para firmar los payloads del webhook. Úsala para verificar la firma HMAC de cada entrega. Se devuelve en la respuesta de creación. `null` en lecturas posteriores mediante API keys y apps OAuth.

```json Webhook theme={null}
{
	"id": "hook_xxxxxxxxxxxxxx",
	"resource_id": "biz_xxxxxxxxxxxxxx",
	"title": "Production",
	"url": "https://example.com/webhooks/whop",
	"enabled": true,
	"api_version": "v1",
	"api_version_date": "2026-09-01",
	"events": ["payment.succeeded", "membership.activated"],
	"child_resource_events": false,
	"testable_events": ["payment.succeeded", "membership.activated"],
	"consecutive_failures": 0,
	"failing_since": null,
	"last_failure_at": "2026-08-28T03:12:45.000Z",
	"disabled_at": null,
	"disabled_reason": null,
	"created_at": "2026-08-02T18:20:00.000Z",
	"webhook_secret": null
}
```


## Related topics

- [Webhooks](https://docs.whop.com/es/developer/guides/webhooks.md)
- [Versiones de la API](https://docs.whop.com/es/developer/api/versioning.md)
- [Inicio rápido de la API de Whop](https://docs.whop.com/es/developer/quickstart.md)
