Receive webhooks
Webhooks tell your server when something happens on an account, so you do not have to poll. IDEALX sends an HTTPS
POST with a JSON body to each endpoint subscribed to the event, signs it, and retries until your endpoint answers
2xx.
- IDEALX: Event on an account (deposit credited)
- IDEALX to Your endpoint: POST signed JSON (IDEALX-Signature)
- Your endpoint: Verify signature, store id, queue work
- Your endpoint to IDEALX: 200 OK within 10 seconds
- Your endpoint to IDEALX API: GET /v1/accounts/{id}/activity
- IDEALX API to Your endpoint: Full details
Add an endpoint
Section titled “Add an endpoint”- Open Profile → Developer → Webhooks in the IDEALX app (personal), or Team → API and webhooks in Console (firm admins).
- Enter your endpoint’s address. Production accepts only public
https://addresses; the sandbox also acceptshttp://localhostand private addresses for testing. - Choose the events (Events and payloads).
- Copy the endpoint’s signing secret (
whsec_…). It is shown once; keep it with your other secrets. - Send a test event from the same page and check your endpoint answered
2xxin the delivery log.
Endpoints are managed only in the apps, never with an API key.
Who receives an event
Section titled “Who receives an event”Every event names an account. It is delivered to:
- personal endpoints of the people who have a role on that account, and
- firm endpoints of the firms working on that account (an engagement with the firm).
A delivery
Section titled “A delivery”POST /idealx/webhooks HTTP/1.1Host: hooks.example.comContent-Type: application/jsonUser-Agent: IDEALX-Webhooks/1IDEALX-Event: deposit.creditedIDEALX-Delivery: whd_01937e5f6a7b8c9d0e1f2a3b4c5d6e7fIDEALX-Signature: t=1763631000,v1=e5b62c98312f1df0b8e332e5d167a371abdb9284cfa91a02407f300e00bd5e58
{"id":"whd_01937e5f6a7b8c9d0e1f2a3b4c5d6e7f","type":"deposit.credited","createdAt":"2026-11-20T09:30:00.000Z","data":{"accountId":"acc_01937c4e8a2b7d1f9e0c3b5a6d7e8f90","units":"25000","currency":"AUD"}}| Field | Meaning |
|---|---|
id |
The delivery’s id (whd_…), also in IDEALX-Delivery. Retries of a delivery keep it. |
type |
The event, also in IDEALX-Event |
createdAt |
When IDEALX created the event (UTC) |
data |
What happened; always includes accountId. Amounts are minor units. |
Answer quickly
Section titled “Answer quickly”Answer 2xx within ten seconds. Verify the signature, store the delivery id, put the work on a queue and answer;
do the work afterwards. Anything other than 2xx, a timeout or a connection error counts as a failure.
Retries
Section titled “Retries”A failed delivery is retried after 1, 2, 4, 8, 16, 32, 64, 128 and 256 minutes: ten attempts over about eight and a half hours. After the tenth failure the delivery is marked failed. Each endpoint’s log in the app shows the last 50 deliveries with their status and the answer your endpoint gave.
Test events
Section titled “Test events”Send test in the app delivers a ping event at once, signed like any other, with an empty id and empty data:
{ "id": "", "type": "ping", "createdAt": "2026-11-25T03:00:00.000Z", "data": {} }Answer it with 2xx; do not try to process it.
A minimal receiver
Section titled “A minimal receiver”// Node 18+, Express. Verify against the raw body, before JSON parsing.import express from "express";import { verifyIdealxSignature } from "./verify"; // see Verify signatures
const app = express();const seen = new Set<string>(); // use your database in production
app.post("/idealx/webhooks", express.raw({ type: "application/json" }), (req, res) => { const raw = req.body.toString("utf8"); if (!verifyIdealxSignature(process.env.IDEALX_WEBHOOK_SECRET!, raw, req.header("IDEALX-Signature") ?? "")) { return res.status(400).send("bad signature"); } const event = JSON.parse(raw); if (event.type === "ping" || seen.has(event.id)) return res.sendStatus(200); seen.add(event.id); queue.push(event); // handle after answering res.sendStatus(200);});# Flask. Verify against the raw body, before JSON parsing.import osfrom flask import Flask, requestfrom verify import verify_idealx_signature # see Verify signatures
app = Flask(__name__)seen: set[str] = set() # use your database in production
@app.post("/idealx/webhooks")def idealx_webhook(): raw = request.get_data() # bytes, exactly as sent if not verify_idealx_signature(os.environ["IDEALX_WEBHOOK_SECRET"], raw, request.headers.get("IDEALX-Signature", "")): return "bad signature", 400 event = request.get_json() if event["type"] == "ping" or event["id"] in seen: return "", 200 seen.add(event["id"]) queue.put(event) # handle after answering return "", 200