Webhooks
A webhook sends a notification to your server when something happens on the platform. Your application learns about account, transaction and transfer events without asking for them.
How Webhooks Work
The platform sends an HTTP POST request to your address for each event you subscribe to. Only platform administrators can set up webhooks, because a webhook receives every subscribed event on the platform.
An Event Happens
For example, a transfer completes or an account is frozen.
Delivery Is Queued
The platform puts the notification in a queue.
POST Request Sent
The platform sends the event to your HTTPS address.
You Respond
Your server processes the event and returns 200 OK.
Quick Setup
curl -X POST https://finaegis.org/api/v2/webhooks \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url": "https://yourapp.com/webhooks", "events": ["account.created", "transfer.completed"]}'
Available Events
You choose the events a webhook receives. The API returns the current list at GET /api/v2/webhooks/events.
Account Events
account.created
An account was opened
account.updated
Account details changed
account.frozen
An account was frozen
account.unfrozen
An account was unfrozen
account.closed
An account was closed
Transaction Events
transaction.created
A transaction was recorded
transaction.completed
A transaction finished
transaction.failed
A transaction failed
transaction.reversed
A transaction was reversed
Transfer Events
transfer.initiated
A transfer started
transfer.completed
A transfer finished
transfer.failed
A transfer failed
Exchange Rate Events
rate.updated
An exchange rate changed
rate.stale
An exchange rate is out of date
GCU Demo Basket Events
basket.created
A demo basket was created
basket.rebalanced
A demo basket was rebalanced in the simulation
basket.decomposed
A demo basket was split into its parts
Governance Demo Events
poll.created
A poll was created
poll.activated
A poll opened for votes
poll.completed
A poll closed
vote.cast
A simulated vote was cast
Implementation Guide
Each delivery is signed. The X-Webhook-Signature header holds an HMAC SHA-256 signature of the raw body, made with the webhook's secret. Its value has the form sha256=<hex>. A failed delivery is retried after 1, 5 and 15 minutes.
Code Examples
The examples page shows how to receive a webhook. It covers signature checks, error handling and safe handling of repeated deliveries.
View Webhook ExamplesSet up a webhook
The API reference describes every webhook endpoint and field.