What are Webhooks?
Webhooks allow you to receive real-time notifications when events occur in your bitbybit account. Instead of polling the API for changes, bitbybit sends an HTTP POST request to your specified URL whenever a subscribed event happens.How it Works
- Register a webhook endpoint in Settings > Developer
- Subscribe to the events you want to receive
- Receive HTTP POST requests when events occur
- Verify the signature to ensure authenticity
- Respond with a 2xx status code to acknowledge receipt
Setup
1. Create a Webhook Endpoint
Go to Settings > Developer in your bitbybit dashboard and click Create Webhook. You’ll need:- Endpoint URL: An HTTPS URL that will receive webhook events
- Events: Select which events you want to subscribe to
2. Handle Incoming Events
Your endpoint will receive POST requests with this format:3. Respond Quickly
Return a 2xx status code within 30 seconds to acknowledge the event. Process the event asynchronously if needed.Available Events
| Event | Description |
|---|---|
customer.created | A new customer was created |
customer.updated | A customer’s details were updated |
customer.deleted | A customer was deleted |
order.created | A new order was created |
order.updated | An order was updated |
product.created | A new product was created |
product.updated | A product was updated |
product.deleted | A product was deleted |
message.received | An inbound message was received |
message.status.updated | A message delivery status changed |
Retry Policy
If your endpoint returns a non-2xx response or times out, bitbybit will retry delivery:| Attempt | Delay |
|---|---|
| 1st retry | 30 seconds |
| 2nd retry | 5 minutes |
| 3rd retry | 30 minutes |
| 4th retry | 2 hours |
Limits
- Maximum 10 webhook endpoints per company
- Payload size up to 64 KB
- 30 second timeout per delivery
- Response body captured up to 4 KB for debugging

