Configure Webhooks
Learn how to set up and manage webhook endpoints for your Flintn account.
Requirements
Webhook endpoints must use HTTPS. HTTP endpoints are not supported.
Your server must respond within 30 seconds with a
2xxstatus code.You must have a webhook secret to verify signatures.
Creating a Webhook Endpoint
Via Dashboard
Navigate to Webhooks
Click Add Webhook
Enter a name for your webhook (e.g., "Production Orders")
Enter your HTTPS endpoint URL
Select the events you want to receive
Click Create
Via API
Verifying Webhook Signatures
All webhook requests include an X-Signature-Primary header containing a Base64-encoded HMAC-SHA256 signature. Always verify this signature to ensure the request came from Flintn and hasn't been tampered with.
JavaScript / Node.js
Python
Responding to Webhooks
Your endpoint should:
Return a
2xxstatus code within 30 secondsHandle duplicate events idempotently (use the
event_idfield)Process events asynchronously if they require long-running operations
Return a non-2xx status only if you want the delivery to be retried
Retry Policy
Failed webhook deliveries are automatically retried with exponential backoff:
1
Immediate
2
5 minutes
3
30 minutes
4
2 hours
5
24 hours
After 5 failed attempts, the webhook is disabled. You can reactivate it from the dashboard once you've resolved the issue.
Note: 4xx client errors (except 429 Too Many Requests) are not retried, as they typically indicate a problem with your endpoint configuration rather than a temporary failure.
Managing Webhooks
Webhook Status
Active
Webhook receives events normally
Disabled
Webhook is temporarily paused; can be reactivated
Revoked
Webhook is permanently disabled
Disabling and Reactivating
You can temporarily disable a webhook if you need to perform maintenance on your endpoint. Disabled webhooks can be reactivated at any time. Events that occur while a webhook is disabled are not queued—they are simply not delivered.
Testing Webhooks
Use the dashboard at hub.flintn.com/developers to send test events to your endpoint during development. Test events use the same signature verification as production events.
For local development, use a tunneling service like ngrok to expose your local server with an HTTPS URL.
Next Steps
Webhook Secrets - Learn how to manage your signing secret
Last updated