3xx
codestrue
.secret
field is critical for verifying signatures of webhook requests. This secret is only returned once at the time of creation, so be sure to save it in a secure location. If you lose the secret, you will need to create a new subscription.enabled
field.
Webhook subscriptions are created enabled by default and will immediately start receiving events unless you explicitly set enabled: false
during creation.
Create disabled subscription
enabled: false
in your creation request to create a subscription that won’t immediately start receiving events.POST /webhooks/subscriptionsEnable when ready
PATCH
request to enable the subscription when your handler is ready to process incoming requests.PATCH /webhooks/subscriptions/{subscriptionId}