Webhooks
Be told about breaches, passes and fills instead of polling for them, with signed and verifiable deliveries.
Register a URL and we will tell you when something happens instead of you asking. For a firm watching hundreds of accounts this is the difference between knowing about a breach in seconds and burning your whole read budget discovering that nothing happened.
Register an endpoint
/v1/webhooksAvailablescope · accounts:writecurl -X POST https://api.propexecutor.com/v1/webhooks \
-H "Authorization: Bearer $PFX_KEY" \
-H "Content-Type: application/json" \
-d '{
"url": "https://api.apexprop.example/hooks/propexecutor",
"events": ["account.breached", "account.passed"]
}'HTTPS only. An empty events array means everything, so an endpoint registered without thinking still receives rather than silently getting nothing. The response carries a secret: store it, it is shown once.
Events
| Event | Fires when | Status |
|---|---|---|
account.breached | A rule was violated. Carries the rule, the reason and the equity state at the moment it fired. | available |
account.passed | The account hit its profit target and satisfied every other objective. | available |
account.flagged | A rule with a flag action fired: worth review, trading continues. | available |
account.warned | A warn-first rule gave a warning: the order went through and the account keeps trading. Carries the rule, which warning it was, and the evidence: the order and the trades it was judged against. | available |
account.created | An account was provisioned, whether from the API or the panel. | available |
account.assigned | An account's trader changed. Previous sessions are already revoked. | available |
account.archived | An account was taken out of circulation. | available |
position.opened | A position filled, including one from a resting order triggering. | planned |
position.closed | A position closed: manually, or on its stop or target. | planned |
payout.requested | A payout was requested on a funded account, from the terminal, the panel or the API. Trading on the account pauses until it is decided. | available |
payout.approved | A payout was approved. The money has not left the account yet; trading stays paused until it is paid. | available |
payout.paid | A payout was marked paid: the amount came off the account's balance and trading resumed. | available |
payout.rejected | A payout was rejected, with the reason and any message to the trader. Trading resumed. | available |
payout.cancelled | A requested payout was cancelled before it was decided. Trading resumed. | available |
credits.low | Remaining account credits fell below a threshold you set. | planned |
Registering an event that is still planned answers 400 invalid_event, so an endpoint never waits for something that does not fire yet. Every account.* event carries the account’s account, trader_id, status, reason, rule_key, phase, stage and balances; account.warned adds the warning and its evidence (the same fields as warnings), account.flagged the flag and its occurrence count, and account.assigned the previous_trader_id. Events are queued in the same transaction as the change they describe, so a change that is undone never sends one.
Payload
{
"id": "evt_9f2c1b7a4e",
"type": "account.breached",
"created_at": "2026-09-27T14:02:19Z",
"organization_id": "11111111-…",
"data": {
"account": 10000042,
"trader_id": "3d21…",
"status": "breached",
"reason": "daily drawdown 5.2% exceeded the 5% limit",
"external_id": "PS-ORDER-77",
"metadata": { "order_id": "77" },
"equity": 9480,
"balance": 9480,
"peak_equity": 10310.55
}
}Verifying a delivery
Every request carries a signature over the raw body and a timestamp:
X-PropExecutor-Id: evt_9f2c1b7a4e
X-PropExecutor-Timestamp: 1790503647
X-PropExecutor-Signature: v1=5d41402abc4b2a76b9719d911017c592…import crypto from "node:crypto";
function verify(rawBody, headers, secret) {
const ts = headers["x-propexecutor-timestamp"];
const sig = headers["x-propexecutor-signature"];
// Reject anything older than five minutes, so a captured delivery cannot be
// replayed against you later.
if (Math.abs(Date.now() / 1000 - Number(ts)) > 300) return false;
const expected =
"v1=" +
crypto
.createHmac("sha256", secret)
.update(`${ts}.${rawBody}`)
.digest("hex");
// Constant-time, so a caller cannot time their way to a valid signature.
return crypto.timingSafeEqual(Buffer.from(sig), Buffer.from(expected));
}Verify over the raw bytes
Compute the HMAC on the body exactly as received, before any JSON parsing or re-serialising. Parsing and re-encoding changes key order and whitespace, and the signature will never match.
Delivery rules
- Answer 2xx quickly. Anything else, or a timeout, counts as a failure. Acknowledge first and do your work after: a slow handler looks identical to a broken one.
- At least once, not exactly once. A retry can deliver an event you already processed. Deduplicate on
id. - Retries back off and eventually stop, rather than hammering a dead host forever: up to 8 attempts over about a day (30 seconds, 2 and 10 minutes, then hours apart). An endpoint that fails 50 deliveries in a row is disabled:
status: "disabled"with adisabled_reason, and stops being delivered to. Turn it back on with PATCH; it keeps its URL, events and secret. - Up to 10 endpoints per organization, public HTTPS only. Redirects are not followed.
- Order is not guaranteed. Use
created_atif sequence matters, and treat each event as a statement about a moment rather than a step in a sequence. - An event is a notification, never authority. The decision behind it is already durably written. If you need certainty, read the account back.
Debugging
/v1/webhooks/{id}/deliveriesAvailablescope · accounts:read/v1/webhooks/{id}/testAvailablescope · accounts:writeDeliveries are kept with their response status and error, so you can see exactly what we sent and what came back. The test endpoint sends a signed event with the same shape as a real one: use it to check your signature verification before you rely on it.
Managing endpoints
/v1/webhooksAvailablescope · accounts:read/v1/webhooks/{id}Availablescope · accounts:write/v1/webhooks/{id}Availablescope · accounts:writecurl -X PATCH https://api.propexecutor.com/v1/webhooks/5e0a… \
-H "Authorization: Bearer $PFX_KEY" \
-H "Content-Type: application/json" \
-d '{"status":"active"}'PATCH takes {"status": "active"} or {"status": "disabled"} and answers with the endpoint. Turning it on clears the failure count and disabled_reason, and keeps the same signing secret, so your verification does not change. Anything else answers 400 invalid_body. DELETE removes the endpoint for good; registering the URL again issues a new secret.