Onset
  • Guide
    • Custom Domains
    • Page Privacy
      • Password protected
      • JWT single sign-on
  • Developers
    • Widget
      • Install
      • Configuration
      • Events
      • Methods
    • Webhooks
      • Creating webhooks
      • Events
    • API Reference
    • Browser SDK
    • Widget SDK
    • Node.js SDK
    • Widget Builder
Powered by GitBook
On this page
  • Webhook Secret
  • Example Payload
  1. Developers
  2. Webhooks

Creating webhooks

To set up a webhook, go to the integrations page. From there, click Webhooks, then Add webhook.

You have 5 seconds to respond to a notification. If you don't send a response within that time, the notification is treated as failed and will be retried only once after 1 minute.

Webhook Secret

Setting a webhook secret allows you to ensure that POST requests sent to the payload URL are from Onset. When you set a secret, you'll receive the X-Onset-Token header in the webhook POST request.

Example Payload

{
  id: "f29e155c-9e40-4eab-95a1-8c7bba728749",
  event: "release.created",
  data: {
   ...
  }
}
PreviousWebhooksNextEvents

Last updated 2 years ago