POST
request to destinations whenever the events that the destination has subscribed to occur. This section will explain the proper way of handling these requests.
Request Format
Webhook requests sent by MeetBit follows a specific response format.Headers
The ID of the webhook. Used for idempotency.
The ISO8601 timestamp of when the webhook was sent. Used to prevent replay attacks.
The HMAC signature of the request. Used to verify authenticity.
Body
The type of event that occurred.
The data about the event.
Processing Requests
After receiving a webhook request, your endpoint must immediately respond with a2XX
response. Any processing your system is supposed to perform must be processed asynchronously. Processing the request synchronously may lead to unnecessary timeouts and retries.
Webhook requests have a timeout of 10 seconds only. If MeetBit doesn’t receive a response within this period, or receives a non-2XX response code, the request will be marked as failed.
MeetBit will only try to send a webhook for a maximum of 5 times.
Idempotency
MeetBit does not ensure that a webhook for a certain event will only be ever sent once. Thus, a situation can occur where your system receives multiple webhooks for the same event. To handle this, utilize theX-Webhook-Id
header that is sent along with every webhook request. Once you receive a webhook, save this ID before responding to the request. If you receive another request with the same ID, you may safely ignore such request (but still respond with a 2XX
response code).