Skip to main content
Webhooks allow you to receive real-time notifications when events occur in your Fanfare organization. Instead of polling the API, webhooks push events to your server as they happen.

How Webhooks Work

  1. You configure a webhook endpoint URL in your Fanfare dashboard
  2. When an event occurs, Fanfare sends an HTTP POST request to your endpoint
  3. Your server processes the event and responds with a 2xx status code
  4. If delivery fails, Fanfare retries with exponential backoff
Webhook delivery flow showing Fanfare event delivery, webhook endpoint processing, success, and retry.

Webhook Payload

All webhook payloads follow a consistent structure:

Payload Fields

Event Categories

Queue Events

Draw Events

Auction Events

Order Events

Consumer Events

Distribution Events

Configuring Webhooks

Via Dashboard

  1. Navigate to Settings > Webhooks in your Fanfare dashboard
  2. Click “Add Endpoint”
  3. Enter your webhook URL (must be HTTPS)
  4. Select the events you want to receive
  5. Save the endpoint

Via API

Receiving Webhooks

Basic Handler

Async Processing

For production, process webhooks asynchronously:

Webhook Headers

Each webhook request includes:

Best Practices

1. Respond Quickly

Respond with a 2xx status code within 30 seconds. Process events asynchronously for longer operations.

2. Handle Duplicates

Webhooks may be delivered more than once. Use the event id to deduplicate:

3. Verify Signatures

Always verify the webhook signature before processing. See Webhook Signatures.

4. Use HTTPS

Webhook endpoints must use HTTPS. HTTP URLs will be rejected.

5. Handle Retries

If your endpoint fails, Fanfare will retry. See Retry Policy.

Testing Webhooks

Using the Dashboard

  1. Go to Settings > Webhooks
  2. Select your endpoint
  3. Click “Send Test Event”
  4. Choose an event type to test

Using CLI

Local Development

For local development, use a tunneling service:

Webhook Events Reference

For detailed information about each event type and its payload, see: