Skip to main content
Webhooks allow you to receive real-time HTTP notifications when events occur in your Network. Instead of polling the API for changes, webhooks push data to your server as events happen.

How It Works

  1. You configure a webhook endpoint URL in your Network settings
  2. You select which events you want to receive
  3. When an event occurs, Mighty Networks sends an HTTP POST request to your URL
  4. Your server processes the webhook and responds with any 2xx status code (200, 201, 202, 204, etc.)

Webhook Delivery Format

Webhooks are delivered as HTTP POST requests with JSON payloads:

Available Events

Every event and its payload schema has its own page in the Webhooks group of this tab’s sidebar, starting with PostCreated.

Security

  • HTTPS Required: Webhook endpoints must use HTTPS in production
  • Authentication: Configure an API key that will be included as a Bearer token in the Authorization header
  • Verify the source: Always validate the Authorization header matches your configured key

Best Practices

Return any 2xx status code (200, 201, 202, 204, etc.) as fast as possible. Process the webhook payload asynchronously if needed—webhooks time out after 10 seconds.
Webhooks are retried on failure with any non-2xx status code. Implement idempotency to handle duplicate deliveries gracefully.
Repeated failures trip a circuit breaker that temporarily pauses delivery to your endpoint. Monitor your endpoint’s availability so deliveries aren’t suspended. See Circuit breaker for details.
Webhooks are delivered asynchronously via background jobs. There may be a slight delay between when an event occurs and when you receive the webhook.
Store incoming webhook data for debugging and auditing purposes.

Expected Responses

Your endpoint should return any 2xx status code to acknowledge successful receipt. Common success codes include 200 (OK), 201 (Created), 202 (Accepted), and 204 (No Content):

Circuit breaker

Outbound webhook delivery is protected by a circuit breaker. If your endpoint fails repeatedly in a row, we temporarily stop delivering webhooks to it rather than continuing to retry against an endpoint that appears to be down.
  • Trips on repeated failures: When deliveries to your endpoint fail multiple consecutive times (any non-2xx response, a timeout, or a connection error), the circuit breaker opens and delivery is paused.
  • Delivery is paused temporarily: While the circuit is open, new webhooks for that endpoint are not delivered. This protects both your service and ours from wasted retries against a failing endpoint.
  • Automatic recovery: After a cooldown period, we probe your endpoint again. Once it responds successfully, the circuit closes and normal delivery resumes automatically—no manual intervention required.
Keep your endpoint highly available and return a 2xx status quickly to avoid tripping the circuit breaker. If you notice a gap in delivery, check your endpoint’s logs and uptime for a recent run of failures.