POST
/
v2
/
webhooks
/
{id}
curl --request POST \
  --url https://api.whop.com/api/v2/webhooks/{id} \
  --header 'Content-Type: application/json' \
  --data '{
  "enabled": true,
  "url": "<string>"
}'
{
  "id": "<string>",
  "enabled": true,
  "url": "<string>",
  "created_at": "<string>"
}

Headers

Authorization
string

Your API key, which can be found on the Whop Business Dashboard. You must prepend your key with the word 'Bearer', which will look like Bearer ***************************

Path Parameters

id
string
required

The ID of the Webhook URL to search by, which will look like hook_*************, or the URL of the Webhook (e.g. https://website.com/api/whop-webhook)

Body

application/json
enabled
boolean

Whether or not the specified Webhook is enabled/turned on for new event notifications

url
string

The URL where new Webhook events will be sent to (e.g. https://website.com/api/whop-webhook)

Response

201 - application/json
id
string

The ID of the Webhook, which will look like hook_*************

enabled
boolean

Whether or not the specified Webhook is enabled/turned on for new event notifications

url
string

The URL where new Webhook events will be sent to (e.g. https://website.com/api/whop-webhook)

created_at
string

The time at which the Webhook was created. Measured in seconds since the Unix epoch.