Skip to main content
POST
TypeScript

Yetkilendirmeler

Authorization
string
header
gerekli

An Account API key, an App API key, an account access token, or an account-scoped user token. Prepend the key or token with Bearer, for example Bearer ***************************. See Auth & API keys for how to get each one.

Scopes

developer:manage_webhook

Başlıklar

Idempotency-Key
string

A unique key that makes this request safe to retry. See Idempotent requests.

Maximum string length: 255
Örnek:

"d9105228-4a08-46b1-8b91-42fed586d383"

Api-Version-Date
string

Pins the request to a dated API version.

Örnek:

"2026-11-17"

Gövde

application/json
url
string
gerekli

The URL to send the webhook to.

Örnek:

"https://example.com/hooks"

api_version_date
string | null

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.

Örnek:

"2026-01-01"

child_resource_events
boolean

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.

Örnek:

true

enabled
boolean

Whether or not the webhook is enabled. Defaults to true.

Örnek:

true

events
enum<string>[]

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

Mevcut seçenekler:
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,
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,
shipping_address.changed
resource_id
string | null

The account or app to create the webhook for. Defaults to the current account.

Örnek:

"biz_xxxxxxxxxxxxxx"

title
string | null

A label for the webhook, shown in the dashboard. Up to 255 characters.

Maximum string length: 255
Örnek:

"Production"

Yanıt

webhook created

api_version
enum<string>
gerekli

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

Mevcut seçenekler:
v1,
v2,
v5
Örnek:

"v1"

api_version_date
string | null
gerekli

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.

Örnek:

"2026-01-01"

child_resource_events
boolean
gerekli

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

Örnek:

false

consecutive_failures
integer
gerekli

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.

Örnek:

9

created_at
string
gerekli

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

Örnek:

"2026-01-01T12:00:00.000Z"

disabled_at
string | null
gerekli

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.

Örnek:

"2026-01-01T12:00:00.000Z"

disabled_reason
enum<string> | null
gerekli

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

Mevcut seçenekler:
delivery_failures,
null
Örnek:

"delivery_failures"

enabled
boolean
gerekli

Whether this webhook endpoint is currently active and receiving events.

Örnek:

false

events
enum<string>[]
gerekli

Event types this webhook is subscribed to, in dot form (for example payment.succeeded).

Mevcut seçenekler:
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
gerekli

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.

Örnek:

"2026-01-01T12:00:00.000Z"

id
string
gerekli

Webhook ID, prefixed hook_.

Örnek:

"hook_xxxxxxxxxxxxxx"

last_failure_at
string | null
gerekli

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

Örnek:

"2026-01-01T12:00:00.000Z"

resource_id
string
gerekli

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

Örnek:

"biz_xxxxxxxxxxxxxx"

testable_events
enum<string>[]
gerekli

The subset of subscribed event types that support sending test payloads, in dot form.

Mevcut seçenekler:
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
gerekli

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

Örnek:

"Production"

url
string
gerekli

Destination URL where webhook payloads are delivered via HTTP POST.

Örnek:

"https://example.com/hooks"

webhook_secret
string | null
gerekli

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.

Örnek:

"ws_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"