Webhooks

Updates a webhook endpoint's URL, subscribed events, pinned payload version, or enabled state.

patch/webhooks/{id}

Request

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

Path parameters

id, string required

Webhook ID, prefixed hook_.

Headers

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

Pins the request to a dated API version.

Request body

object required
api_version_date, string nullable

The dated API version (Api-Version-Date) to pin this webhook's payloads to. Only valid for v1 webhooks. Omit to leave the current pin unchanged, or pass null to unpin and track the current payload shape.

child_resource_events, boolean

Whether or not to send events for child resources.

enabled, boolean

Whether or not the webhook is enabled.

events, string[]

The events to send the webhook for, in dot form (for example payment.succeeded).

title, string nullable

A label for the webhook, shown in the dashboard. Up to 255 characters. Pass null or an empty string to remove it.

url, string

The URL to send the webhook to.

Example request

{
  "api_version_date": "2026-01-01",
  "child_resource_events": true,
  "events": [
    "payment.failed"
  ],
  "title": "Staging",
  "url": "https://shinetime.example/whop-updated"
}

Response

webhook updated

Webhook required
api_version, 'v1' | 'v2' | 'v5' required

The API version used to format payloads sent to this webhook endpoint.

api_version_date, string nullable required

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.

child_resource_events, boolean required

Whether events are sent for child resources. For example, if the webhook is on an account, enabling this sends events only from its subaccounts.

consecutive_failures, integer required

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.

created_at, string required

When the webhook was created, as an ISO 8601 timestamp.

disabled_at, string nullable required

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.

disabled_reason, 'delivery_failures' | 'null' nullable required

Why Whop disabled this webhook. delivery_failures means every delivery failed for 3 days straight. null when disabled_at is null.

enabled, boolean required

Whether this webhook endpoint is currently active and receiving events.

events, string[] required
failing_since, string nullable required

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.

id, string required

Webhook ID, prefixed hook_.

last_failure_at, string nullable required

When a delivery to this endpoint most recently failed after exhausting retries, as an ISO 8601 timestamp. null if no delivery has ever failed.

resource_id, string required

ID of the resource (account or app) this webhook is attached to.

testable_events, string[] required
title, string nullable required

A label for this webhook endpoint, such as Production, shown in the dashboard. null if no title was set.

url, string required

Destination URL where webhook payloads are delivered via HTTP POST.

webhook_secret, string nullable required

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_ended enum value to the events/items response property for the response status

    • warning

      added the new ad_campaign.claim_ended enum value to the testable_events/items response property for the response status

    • info

      added the new ad_campaign.claim_ended enum value to the request property events/items