What are webhooks
Webhooks are HTTP callbacks that Scalekit sends to your application when events occur:- User authentication
- User creation/update
- Session events
- SSO configuration changes
- SCIM provisioning events
Webhook flow
- Event occurs in Scalekit (e.g., user logs in)
- Scalekit sends HTTP POST to your webhook URL
- Your application processes the event
- Your application responds with 200 OK
Configuration
Configure webhooks in Dashboard > Developers > Webhooks:- Add your webhook URL
- Select events to receive
- Copy the signing secret
- Test the webhook
Webhook format
Verifying webhooks
Verify webhook signatures to ensure authenticity:Best practices
Return 200 quickly
Respond with 200 OK immediately and process asynchronously:Handle retries
Scalekit retries failed webhooks with exponential backoff:- Initial retry: 1 minute
- Subsequent retries: 2, 4, 8, 16, 30 minutes
- Maximum retries: 10 attempts
Idempotency
Process each webhook exactly once:Next steps
Webhook events
Available webhook events
Webhook security
Security best practices