Real-time notifications
Receive events instantly when resources change.
Secure delivery
Every webhook delivery includes an HMAC signature for verification.
Webhook configuration object
The webhook configuration defines where events are delivered and which events are enabled.Supported events
Travelbase emits webhook events for important lifecycle changes.Subscribe only to events your system requires to reduce unnecessary webhook traffic.
Get webhook configuration
Retrieve your current webhook configuration.Response
Create or update webhook configuration
Create or update your webhook endpoint and event subscriptions.Request body
Fields
Response
Webhook delivery format
Travelbase delivers webhook events as HTTP POST requests with a JSON payload. Example deliveryDelivery headers
Each webhook delivery includes security and metadata headers to help your system verify authenticity and process events safely.Always verify webhook signatures before processing events to prevent unauthorized requests.
Signature verification
Travelbase signs each webhook delivery using your webhook secret. Your system must verify this signature before accepting the event.Signature format
The signature is generated using HMAC SHA-256:Signature components
The signature is generated using the following components:Verification example (Node.js)
Use the following example to verify webhook signatures securely:Delivery guarantees
Travelbase provides reliable and fault-tolerant webhook delivery to ensure your system receives critical events.Automatic retries
Failed webhook deliveries are retried
automatically using exponential backoff until successful.
At-least-once delivery
Webhooks are guaranteed
to be
delivered at least once. Your system must safely handle duplicate deliveries.
Verify signatures
Always verify the webhook signature before
processing events.
Respond quickly
Return an HTTP 200 response immediately after
receiving the webhook to prevent retries.
Implement idempotency
Store and track
webhook event IDs to prevent duplicate processing.
Use secure endpoints
Only
configure HTTPS endpoints to ensure secure communication.

