Webhooks Introduction
Webhooks enable your application to receive instant notifications about important events, making it easy to automate workflows and keep external systems in sync with Carbon’s API.What Are Webhooks?
Webhooks are HTTP callbacks triggered by specific events in your Carbon account. When an event occurs, Carbon sends a POST request to your configured webhook URL, allowing your server to process the event in real time.How Webhooks Work
Configure Your Webhook URL
Set your webhook endpoint using the API or dashboard. Make sure your server is ready to accept POST requests.
Event Triggered
When a relevant event occurs (e.g., a transaction is completed), Carbon automatically sends a POST request to your webhook URL with event details.
Key Features
Real-time Notifications
Real-time Notifications
Receive immediate updates for events such as transactions, account changes, and more.
Customizable
Customizable
Easily update your webhook URL or select which events you want to subscribe to.
Secure Delivery
Secure Delivery
Each webhook request includes a signature secret for verification. Always validate the signature to ensure authenticity.
Example Webhook Events
Some common events you can subscribe to:account.incoming-transactionaccount.outgoing-transaction
Best Practices
Validate Webhook Signatures
Validate Webhook Signatures
Always verify the signature included in webhook requests to confirm they originate from Carbon.
Handle Retries Gracefully
Handle Retries Gracefully
If your server does not respond with a 2xx status code, Carbon will retry delivery. Ensure your endpoint can handle duplicate events safely.
Monitor and Log Events
Monitor and Log Events
Set up logging and monitoring for your webhook endpoint to track received events and troubleshoot issues quickly.