Create Webhook
Changed onCreates a webhook endpoint that receives event notifications via HTTP POST.
Request
- Base URLhttps://api.whop.com/api/v1
- AuthHTTP bearer
Headers
Pins the request to a dated API version.
A unique key that makes this request safe to retry. See Idempotent requests.
Request body
The dated API version (Api-Version-Date) to pin this webhook's payloads to. Omit to leave the webhook unpinned, tracking the current payload shape.
Whether to send events for child resources. For example, if the webhook is created for an account, enabling this sends events only from its subaccounts.
Whether or not the webhook is enabled. Defaults to true.
The events to send the webhook for, in dot form (for example payment.succeeded).
The account or app to create the webhook for. Defaults to the current account.
A label for the webhook, shown in the dashboard. Up to 255 characters.
The URL to send the webhook to.
Example request
{
"api_version_date": "2026-01-01",
"child_resource_events": true,
"enabled": true,
"events": [
"payment.succeeded"
],
"resource_id": "biz_xxxxxxxxxxxxxx",
"title": "Production",
"url": "https://example.com/hooks"
}Response
webhook created
The API version used to format payloads sent to this webhook endpoint.
The dated API version (Api-Version-Date) that v1 payloads for this endpoint are pinned to: events serialize exactly like a REST read at this version (the native serializer where the resource has one). Null when unpinned — legacy (v2/v5) webhooks, and v1 webhooks on the legacy payload shape.
Whether events are sent for child resources. For example, if the webhook is on an account, enabling this sends events only from its subaccounts.
Number of consecutive deliveries whose first attempt to this endpoint failed since it last accepted one. Later retries of the same delivery do not increment it. Resets to 0 when a delivery succeeds or the webhook is re-enabled.
When the webhook was created, as an ISO 8601 timestamp.
When Whop automatically disabled this webhook, as an ISO 8601 timestamp. null unless the webhook was disabled by Whop; a webhook you disabled yourself has enabled: false and a null disabled_at.
Why Whop disabled this webhook. delivery_failures means every delivery failed for 3 days straight. null when disabled_at is null.
Whether this webhook endpoint is currently active and receiving events.
When the current failure streak began, as an ISO 8601 timestamp. Unlike last_failure_at, this is set on the streak's first failed attempt, so it shows an endpoint that is failing right now. null when the endpoint is healthy.
Webhook ID, prefixed hook_.
When a delivery to this endpoint most recently failed after exhausting retries, as an ISO 8601 timestamp. null if no delivery has ever failed.
ID of the resource (account or app) this webhook is attached to.
A label for this webhook endpoint, such as Production, shown in the dashboard. null if no title was set.
Destination URL where webhook payloads are delivered via HTTP POST.
Secret key used to sign webhook payloads. Use it to verify the HMAC signature of each delivery. Returned in the create response. null on later reads by API keys and OAuth apps.
Example response
{
"api_version": "v1",
"api_version_date": "2026-01-01",
"consecutive_failures": 9,
"created_at": "2026-01-01T12:00:00.000Z",
"disabled_at": "2026-01-01T12:00:00.000Z",
"disabled_reason": "delivery_failures",
"events": [
"payment.succeeded"
],
"failing_since": "2026-01-01T12:00:00.000Z",
"id": "hook_xxxxxxxxxxxxxx",
"last_failure_at": "2026-01-01T12:00:00.000Z",
"resource_id": "biz_xxxxxxxxxxxxxx",
"testable_events": [
"account.updated"
],
"title": "Production",
"url": "https://example.com/hooks",
"webhook_secret": "ws_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
}Changes
- warning
added the new
ad_campaign.claim_endedenum value to theevents/itemsresponse property for the response status - warning
added the new
ad_campaign.claim_endedenum value to thetestable_events/itemsresponse property for the response status - info
added the new
ad_campaign.claim_endedenum value to the request propertyevents/items
- warning