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 2xx status code.

  • You must have a webhook secret to verify signatures.

Creating a Webhook Endpoint

Via Dashboard

  1. Navigate to Webhooks

  2. Click Add Webhook

  3. Enter a name for your webhook (e.g., "Production Orders")

  4. Enter your HTTPS endpoint URL

  5. Select the events you want to receive

  6. 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 2xx status code within 30 seconds

  • Handle duplicate events idempotently (use the event_id field)

  • 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:

Attempt
Delay

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

Status
Description

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/developersarrow-up-right 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 ngrokarrow-up-right to expose your local server with an HTTPS URL.

Next Steps

Last updated