How It Works
- You configure a webhook endpoint URL in your Network settings
- You select which events you want to receive
- When an event occurs, Mighty Networks sends an HTTP POST request to your URL
- Your server processes the webhook and responds with any
2xxstatus 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
Bearertoken in theAuthorizationheader - Verify the source: Always validate the
Authorizationheader matches your configured key
Best Practices
Respond quickly
Respond quickly
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.Handle retries
Handle retries
Webhooks are retried on failure with any non-2xx status code. Implement idempotency to handle duplicate deliveries gracefully.
Keep your endpoint healthy
Keep your endpoint healthy
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.
Expect async delivery
Expect async delivery
Webhooks are delivered asynchronously via background jobs. There may be a slight delay between when an event occurs and when you receive the webhook.
Log webhook payloads
Log webhook payloads
Store incoming webhook data for debugging and auditing purposes.
Expected Responses
Your endpoint should return any2xx 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.