Webhooks
Txn supports webhooks for the following transaction types:
Payouts, created through the API or in the dashboard
Crypto deposits received at your account addresses
Webhooks are triggered each time the state of a transaction is updated. Webhook events lists, per subscription, what triggers a message and what its payload contains.
You can configure your webhook URLs on the Developer Tools → Webhooks tab in your Txn account. Click Add Webhook, enter a name and your endpoint URL, optionally associate API keys, and choose which operations trigger the webhook. Creating and deleting a webhook URL asks for the 6-digit code from your authenticator app.



Associating API keys with webhook URLs
When creating or editing a webhook URL, you can associate one or more API keys with it. All transaction events for resources created by an associated key — invoices, payouts, channels, exchanges, and deposits — are routed to that endpoint.
This lets you route events from different parts of your integration to different endpoints. For example, you could direct invoice events to one service and payout events to another by using separate API keys, each associated with its own webhook URL.
Which messages a webhook URL receives depends on whether API keys are associated with it:
No API keys associated: the URL receives every message for the subscriptions you selected, for your whole company, whether the resource was created through the API or in the dashboard.
API keys associated: the URL receives messages only for resources created by those keys. Resources created in the dashboard, and crypto deposits to your account addresses, are not created by an API key, so their messages go only to URLs with no API keys associated.
Last updated