Create a Webhook
POST
/v1/webhooks
Creates a webhook.
Attributes
url Required
A valid URL of the endpoint that should receive webhook events.
events Required
An array of webhook event types that should be sent to the webhook endpoint.
See the list of available event types.
secret Required
A string used by Lemon Squeezy to sign requests for increased security.
Learn about receiving signed requests.
The secret
is never returned in the API. To view the secret of a webhook, open the webhook in your dashboard.
test_mode
Set this to true
if the webhook should be created in test mode.
Returns
Returns a Webhook object.