webhooks
public
Reset Webhook Endpoint Secret
Changed onRegenerate a webhook endpoint secret.
Scopes: webhooks:write
patch/v1/webhooks/endpoints/{id}/secret
Request
- Base URLhttps://api.polar.sh
- URLhttps://api.polar.sh/v1/webhooks/endpoints/{id}/secret
- Auth
- OpenID Connect (/.well-known/openid-configuration, scopes: webhooks:write)
- or HTTP bearer
- or HTTP bearer
Path parameters
idstring uuid4 required
The webhook endpoint ID.
Response
Webhook endpoint secret reset.
Example response
{
"url": "https://webhook.site/cb791d80-f26e-4f8c-be88-6e56054192b0",
"secret": "whsec_ovyN6cPrTv56AApvzCaJno08SSmGJmgbWilb33N2JuK"
}Changes
- warning
added the new
discount.createdenum value to the/response property for the response status - warning
added the new
discount.deletedenum value to the/response property for the response status - warning
added the new
discount.updatedenum value to the/response property for the response status - warning
added the new
subscription.cycledenum value to the/response property for the response status
- warning