Skip to main content

Webhooks

Avenue has two webhook directions: inbound (Nomba → Avenue) and outbound (Avenue → your app).

Inbound — Nomba to Avenue

Avenue gives you a unique inbound URL per developer:
Paste this into your Nomba dashboard. Every payment event Nomba fires will be received, validated, and processed by Avenue.

What Avenue does with an inbound event

  1. Validates the HMAC-SHA256 signature using your stored Nomba secret
  2. Idempotency check — rejects duplicates via DB unique constraint on nomba_reference
  3. Identifies the target wallet by matching the destination account number
  4. AI intent parsing — passes raw narration through the AI engine
  5. Updates the double-entry ledger — immutable credit entry added
  6. Evaluates agent triggers — any matching agents are executed
  7. Queues the outbound event — fires to your registered webhook URL

Outbound — Avenue to your app

Register your outbound URL via the API or dashboard:

Payload format

Event types

Signature verification

Every outbound event is signed with HMAC-SHA256. Verify it in your app:
The signature is sent in the x-avenue-signature header.

Retry behaviour

If your endpoint returns a non-2xx response, Avenue retries with exponential backoff: After 5 failed attempts, the delivery is marked DEAD. You can manually retry from the Webhooks → Logs dashboard or via the API.