webhooks
public
post/v1/webhooks/endpoints
Request
- Base URLhttps://api.polar.sh
- URLhttps://api.polar.sh/v1/webhooks/endpoints
- Auth
- OpenID Connect (/.well-known/openid-configuration, scopes: webhooks:write)
- or HTTP bearer
- or HTTP bearer
Request body
Example request
{
"url": "https://webhook.site/cb791d80-f26e-4f8c-be88-6e56054192b0",
"organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737"
}Response
Webhook endpoint created.
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 - info
added the new
discount.createdenum value to the request property/ - info
added the new
discount.deletedenum value to the request property/ - info
added the new
discount.updatedenum value to the request property/ - info
added the new
subscription.cycledenum value to the request property/
- warning