Webhooks and the records API
Your signals, fills and alerts sent to your own web address, signed so you can check they came from us, and API keys that read your own strategies, trades and alerts.
For your own bots, sheets and dashboards: every signal your strategies take, every fill, and every alert can be sent to a web address you run, and an API key can read your own records. Both come with the paid plans (see the plan table on the Plan & API page). Nothing here can trade, withdraw or change your settings.
Webhook endpoints#
Settings → Alerts → Webhook endpoints. Add an https:// address by name (not an IP address or a local network name) and pick the events it gets: signal, fill, alert. When you add it you see its signing secret once: copy it then. New secret makes another one (the old one stops working at once).
Each event is a JSON POST:
POST /your/path HTTP/1.1
Content-Type: application/json
X-Zaynballs-Event: fill
X-Zaynballs-Delivery: 81234
X-Zaynballs-Signature: t=1793491200,v1=5f0c…e9
{"id":"evt_3f9c…","type":"fill","created_at":"2026-10-31T12:00:00.000Z","data":{ … }}What data holds for each event:
{ "type": "signal", "data": { "strategyId": 12, "strategy": "Smart money", "signalId": 3401, "chain": "solana", "mode": "paper",
"mint": "<mint>", "symbol": "CAT", "wallets": 3, "totalSol": 4.2, "score": 71, "signalAt": "2026-10-31T11:59:58.000Z" } }
{ "type": "fill", "data": { "orderId": "cm…", "chain": "solana", "mode": "live", "side": "buy", "mint": "<mint>", "symbol": "CAT",
"decimals": 6, "inAmount": "500000000", "outAmount": "1834000000", "feeLamports": 5000, "signature": "<tx>",
"source": "strategy", "strategyId": 12, "walletId": 3, "at": "2026-10-31T12:00:00.000Z" } }
{ "type": "alert", "data": { "text": "**Dev sold** CAT …", "html": "<b>Dev sold</b> CAT …" } }Amounts in fills are in the chain's smallest unit (lamports and token base units on Solana), as the order stored them. id stays the same when a delivery is tried again, so you can skip one you already have.
Checking the signature#
v1 is HMAC-SHA256 of <t>.<raw body> with your secret, as hex. Refuse a delivery whose signature doesn't match, or whose t is more than a few minutes old.
import { createHmac, timingSafeEqual } from 'node:crypto';
function genuine(secret, header, rawBody) {
const { t, v1 } = Object.fromEntries(header.split(',').map((p) => p.split('=')));
if (Math.abs(Date.now() / 1000 - Number(t)) > 300) return false;
const want = createHmac('sha256', secret).update(`${t}.${rawBody}`).digest('hex');
return v1?.length === want.length && timingSafeEqual(Buffer.from(v1), Buffer.from(want));
}Retries and the delivery log#
Answer with any 2xx within a few seconds. Anything else (including a redirect, which is not followed) is tried again later, each wait twice the last, up to six tries. An endpoint that fails many times in a row is turned off; turning it back on starts the count over. Log under each endpoint lists its latest deliveries: the event, how many tries, the last answer and when the next try is. Test sends a test event through the same path.
The alert webhooks for Discord, Slack and plain addresses (same card) still work as before: they get the alert text, unsigned.
The records API#
Make a key on the Plan & API page and tick the read scopes it should have:
| Scope | Addresses |
|---|---|
read:strategies | /api/v1/me/strategies, /api/v1/me/signals |
read:trades | /api/v1/me/orders, /api/v1/me/positions |
read:alerts | /api/v1/me/alerts |
curl -H "Authorization: Bearer <key>" "https://<your server>/api/v1/me/positions?limit=50&offset=0"
Every key also reads the reputation API. Calls count against the same daily quota. A key without the scope an address needs gets 403. The full list is on the API reference.