Webhooks
Webhooks tell your server when something happens to one of your objects, such as a deposit confirming or a payout failing. Stridge sends an event to a URL you register, called a webhook endpoint. Your server checks the signature, acknowledges the event, and then reads the object it is about.
Events
An event is a short, signed notice that points at one object:
{
"id": "8f14e45f-ceea-467a-9d0e-2b1c5f0a3d47",
"object": "event",
"type": "payout.confirmed",
"created": "2026-10-17T09:12:44Z",
"livemode": false,
"related_object": {
"id": "6f1c2a9e-3b7d-4c55-9a0e-8f2d1b4c7e90",
"type": "payout",
"url": "/v2/payouts/6f1c2a9e-3b7d-4c55-9a0e-8f2d1b4c7e90"
}
}The event does not carry a copy of the object. To see what changed, fetch related_object.url with a secret key from the same environment. You always get the object as it is now, so an event that arrives late or out of order does not leave you with stale data. If you handle several events for one object at the same time, keep the newest object you fetch: a fetch that finishes later can still return an older state. Why events are thin explains the reasoning and the trade-offs, and Handle an event has a complete receiver.
The Events API serves the same events, byte for byte.
idThe event's identifier. It matches the
webhook-idheader and stays the same on every attempt and resend. Deduplicate on it: two deliveries with the sameidare one event, so act on it once.typeWhat happened. Stridge only ever adds types, so return a
2xxfor a type you do not recognise and ignore it.createdWhen the change happened, as an RFC 3339 timestamp. This is not when the event was delivered. Delivery order is not guaranteed, so order one object's events by
created.livemodeWhich environment the event happened in:
falsefor the sandbox,truefor live.
Here are the event types, grouped by the object they point at. Each type has its own page.
Transaction1
- transaction.eventAn outgoing chain transaction changed state
Deposit2
- deposit.confirmedA deposit was confirmed
- vault.deposit.detectedA deposit to a vault was confirmed
Vault1
- vault.createdA vault was created
Gas station1
- gas_station.createdA gas station was created
Payout4
- payout.confirmedA payout was confirmed
- payout.failedA payout failed
- payout.expiredA payout expired
- payout.retryingA payout is being retried
Settlement6
- uda.settlement.createdA settlement was created
- uda.settlement.completedA settlement completed
- uda.settlement.retryingA settlement is being retried
- uda.settlement.awaiting_creditA settlement is waiting for gas credit
- uda.settlement.failedA settlement failed
- uda.settlement.refundedA settlement was refunded
Deposit address1
- uda.address.createdA deposit address was created
Treasury3
- treasury.createdA treasury was created
- treasury.rotatedA treasury's destination was rotated
- treasury.deletedA treasury was deleted
Webhook endpoint1
- webhook_endpoint.pingAn endpoint was pinged
Why events are thin
An event names its object instead of carrying a copy of it. Your server reads the object from the API, so what it acts on is always the object's current state. That costs one read per event, and it buys the following.
Arrival order stops mattering
Stridge doesn't guarantee delivery order. A delivery that fails is retried on a schedule, so an older event can reach you after a newer one. Here is a payout that fails one attempt on chain and then confirms, while your server restarts for a deploy:
Compare that with an event that carries a copy of the object, and a handler that saves the copy it receives:
| Arrives | Saving the copy | Reading the object |
|---|---|---|
payout.confirmed | Records confirmed | Reads confirmed |
payout.retrying, retried | Writes the older copy over it: the paid payout looks unpaid | Reads confirmed |
A handler that saves copies has to defend against this itself, by comparing timestamps or state order on every write. A thin-event handler never sees an old copy, because there is no copy in the event to save. Every delivery, early or late, reads the object's current state.
The event's shape only grows
A thin event has no version. Its six fields are the same for every event type and every endpoint. A field can be added, and nothing is ever removed or renamed, so a receiver ignores any field it doesn't know. The same goes for event types: return a 2xx for a type you don't recognise and ignore it.
The object's details live on the object, so an improvement to a payout or a settlement reaches you through the API, in the shape its page in this reference documents. There is no webhook version to pin, compare or upgrade, and your handler doesn't break when the API grows.
One source of truth
The object you fetch comes from the same operation as any other read, such as Read one payout, with the schema the reference documents for it. You write one parser for a payout, and the webhook path and every other read share it.
The same handler also serves recovery. If your endpoint was down, list what you missed from the Events API, which returns the same thin events for 30 days, and pass each one to the same processEvent (see Handle an event). Each event reads the object's current state, so replaying old events never rolls your records back.
Every retry sends the same bytes
Stridge renders an event once, when it is created. Every attempt and every resend sends those exact bytes; only the per-attempt signing headers change: webhook-timestamp, webhook-signature and stridge-signature-legacy. The Events API returns the same body. A retry can never carry data that differs from the first attempt, so deduplicating on webhook-id is always safe.
Less sensitive data in transit
A thin event holds identifiers and nothing else: no amounts, no addresses, no names. The details come from a read your server makes with its own secret key, over its own connection to the API. Request logs, proxies and queues that capture webhook bodies hold only ids, and a delivery that lands somewhere it shouldn't reveals nothing about the object.
Endpoints
Each endpoint belongs to one environment. A sandbox endpoint receives only sandbox events, and a live endpoint only live events. You can have up to five endpoints per environment.
urlAn absolute
httpsURL on port 443 with a public host. Stridge rejects these, both when you register the endpoint and on every delivery:httpURLs, or any port other than 443;localhostand private addresses;- URLs with credentials in them.
To receive events on your own machine during development, expose it through a public
httpsaddress that forwards to it.nameA name for the endpoint, 1 to 255 characters.
enabled_eventsThe event types the endpoint receives. List exact types such as
payout.confirmed, or use["*"]for every type, including types added later. Partial wildcards are not supported, and every endpoint needs at least one type.- Signing secret
You see the
whsec_…secret only in the response that creates the endpoint and in the response to each rotation. No read returns it, so store it right away.Rotate the secret to get a new one. For the next 24 hours both secrets sign every delivery, so you can deploy the new one without missing an event.
statusenabledordisabled. A disabled endpoint receives no events.disabled_reasontells you why:userif a person turned it off, orfailingif Stridge disabled it (see Failing endpoints).
Managing endpoints
Manage endpoints in the Stridge dashboard, or from your server with a live secret key that holds the permission each operation needs.
Listing and reading endpoints need webhook.read. Creating, updating, deleting and rotating them need webhook.write. These operations are served to live keys only:
- Calling one with a sandbox key returns
404operation_not_served. - A sandbox key cannot be created with
webhook.readorwebhook.write.
So manage your sandbox endpoints in the dashboard.
| Operation | Permission |
|---|---|
List webhook endpointsGET/webhook-endpointswebhook.read | webhook.read |
Create a webhook endpointPOST/webhook-endpointswebhook.write | webhook.write |
Get a webhook endpointGET/webhook-endpoints/{endpoint_id}webhook.read | webhook.read |
Update a webhook endpointPATCH/webhook-endpoints/{endpoint_id}webhook.write | webhook.write |
Delete a webhook endpointDELETE/webhook-endpoints/{endpoint_id}webhook.write | webhook.write |
Rotate a webhook endpoint's signing secretPOST/webhook-endpoints/{endpoint_id}/rotate-secretwebhook.write | webhook.write |
Pinging and re-enabling an endpoint need webhook.deliver and work with a key of either environment. Each key acts on its own environment's endpoints.
| Operation | Permission |
|---|---|
Ping a webhook endpointPOST/webhook-endpoints/{endpoint_id}/pingwebhook.deliver | webhook.deliver |
Re-enable a webhook endpointPOST/webhook-endpoints/{endpoint_id}/enablewebhook.deliver | webhook.deliver |
curl "https://api.stridge.com/v2/webhook-endpoints" \
-H "Authorization: Bearer $STRIDGE_SECRET_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: 5c0e3d1a-7f2b-4e8c-9a61-2d4b8f0c7e15" \
-d '{
"url": "https://example.com/hooks/stridge",
"name": "Production receiver",
"enabled_events": ["payout.confirmed", "payout.failed"]
}'If you lose the response to a create or a rotation, retry it with the same Idempotency-Key within 24 hours. You get the first response again, signing secret included, so the secret is recovered rather than replaced.
An endpoint created through /v1 cannot be rotated. Rotating it returns 409 webhook_endpoint_legacy.
Verify the signature
Check the signature on every delivery before you trust it. A signature is a short code computed from the delivery and your endpoint's signing secret, using an HMAC (opens in a new tab). Only someone who holds the secret can produce it, so a valid signature proves the delivery came from Stridge and was not changed on the way. Deliveries are signed with Standard Webhooks (opens in a new tab), so any Standard Webhooks library can verify them. Each delivery carries these headers:
webhook-idThe event's
id. The same on every attempt.webhook-timestampWhen this attempt was sent, in Unix seconds. New on every attempt.
webhook-signatureOne or more signatures, separated by spaces. Each is
v1,followed by a base64 HMAC-SHA256.stridge-signature-legacyThe same delivery, signed for receivers written for Stridge's earlier signature format: 64 lowercase hex characters of HMAC-SHA256 over
{webhook-timestamp}.{raw body}. It uses the same key bytes aswebhook-signature, and only the current secret. Verifywebhook-signatureinstead.
To verify a delivery by hand:
- Build the signed content:
{webhook-id}.{webhook-timestamp}.{raw body}. - Take your secret's key bytes: the part after
whsec_, base64-decoded. - Compute the HMAC-SHA256 of the signed content with those bytes, and base64-encode it. Use the raw body, before any JSON parsing.
- Compare the result with each
v1,signature inwebhook-signature. The delivery is genuine if one matches. - Reject the delivery if its timestamp is more than 300 seconds from your clock.
import { Webhook } from "standardwebhooks";
const webhook = new Webhook(process.env.STRIDGE_WEBHOOK_SECRET);
app.post("/hooks/stridge", express.raw({ type: "application/json" }), async (req, res) => {
let event;
try {
event = webhook.verify(req.body, req.headers);
} catch {
return res.status(400).end();
}
try {
await queue.push(event);
} catch {
return res.status(500).end();
}
res.status(200).end();
});While you rotate a secret, webhook-signature carries two signatures. The delivery is genuine if either one verifies.
Acknowledge, then work
Answer fast and do the work later, so slow processing never turns into a failed delivery:
- Store the verified event in a durable queue.
- Return any
2xxwithin 10 seconds of the connection opening. - Process the event from your queue.
If your response has not arrived after 10 seconds, the attempt counts as failed and is retried, even if your server went on to process the event. A 2xx stops the retries, so return it only once the event is safely stored. If storing fails, return a 5xx and Stridge tries again.
Handle an event
Every thin event is handled the same way, whatever its type:
Deliveries are signed with Standard Webhooks (opens in a new tab): a webhook-signature of v1,<base64> entries over {webhook-id}.{webhook-timestamp}.{raw body}, keyed by your endpoint's whsec_ secret. Verify the raw body before you parse it, and refuse a delivery whose webhook-timestamp is more than 300 seconds from your clock. Any Standard Webhooks library does both. Verify the signature has the exact steps.
A retry or a resend delivers the same event again, under the same webhook-id. Store each webhook-id you accept and skip one you have seen. Then answer 2xx within 10 seconds, and do the rest of the work outside the request, as Acknowledge, then work describes.
GET the related_object.url with a secret key from the same environment as the endpoint, holding the read permission for each object you handle, such as payout.read for payouts and uda.read for settlements. Act on the object's current state, such as its status, rather than on the event's type.
Process one object's events one at a time, for example by queueing on related_object.id, so a read that finishes later never applies an older state.
Here is a minimal receiver in TypeScript with Express (opens in a new tab) and the standardwebhooks (opens in a new tab) library. The route verifies the delivery and stores it once; a worker reads the object and updates your records.
import express from "express";
import { Webhook } from "standardwebhooks";
import { inbox } from "./inbox";
import type { ThinEvent } from "./types";
import { processEvent } from "./worker";
const webhook = new Webhook(process.env.STRIDGE_WEBHOOK_SECRET!);
const app = express();
app.post("/hooks/stridge", express.raw({ type: "application/json" }), async (req, res) => {
let event: ThinEvent;
try {
event = webhook.verify(req.body, req.headers as Record<string, string>) as ThinEvent;
} catch {
return res.status(400).end();
}
try {
await inbox.addIfNew(req.header("webhook-id")!, event);
} catch {
return res.status(500).end();
}
res.status(200).end();
});
inbox.consume(processEvent);
app.listen(3000);A few details in this receiver matter:
inbox.addIfNewstores the event under itswebhook-idwith a unique constraint and queues it for the worker, whichinbox.consumeruns. A second delivery of the same id changes nothing, and still gets a2xxso the retries stop. If storing fails, the route answers500and Stridge tries again.- The worker skips what it doesn't handle before it reads anything. This one handles payouts, so its key needs only
payout.read. Every other event, awebhook_endpoint.pingincluded, is acknowledged and left alone. - A
404means the object is gone, for example a deleted treasury or data a sandbox reset removed. There is nothing left to read, so the worker finishes instead of retrying. - The worker throws on any other failed read, for example a
429from your rate budget. Your queue retries it later; the event is already safely stored. - The payout's
statusdecides the action.payout.confirmedand a latepayout.retryingfor the same payout both read aconfirmedpayout, and both callmarkPaid. A payout still in flight changes nothing; a later event reports how it ends. - Every action is safe to repeat. Deduplicating on
webhook-idstops repeats of one event, but distinct events for one object, an Events API replay and the replay on re-enable all reach the same object again.markPaidandmarkPayoutFailedchange only an order that isn't already in that state, so a second call credits and emails nothing.
related_object.url is a path on the API host, so resolve it against https://api.stridge.com. Live and sandbox share that host; the key you send decides the environment. See Environments.
Retries
If a delivery fails, Stridge retries it on a fixed schedule, so a short outage on your side loses nothing. Any of these counts as a failed attempt:
- no
2xxwithin 10 seconds, or a connection error; - a
3xx(redirects are not followed); - any
4xxor5xx.
Every retry carries the same webhook-id, so a receiver that deduplicates on it acts only once.
| Environment | Attempts | Waits after each failed attempt |
|---|---|---|
| Live | 16, over 71 hours 51 minutes | 1m, 5m, 15m, 30m, 1h, 2h, 3h, 4h, 6h, 6h, 8h, 8h, 10h, 12h, 11h |
| Sandbox | 4, over about 2 hours 35 minutes | 5m, 30m, 2h |
Live
16 attempts over 71 hours 51 minutes
- Attempt 1: Firstat 0m
- Attempt 2: +1mat 1m
- Attempt 3: +5mat 6m
- Attempt 4: +15mat 21m
- Attempt 5: +30mat 51m
- Attempt 6: +1hat 1h 51m
- Attempt 7: +2hat 3h 51m
- Attempt 8: +3hat 6h 51m
- Attempt 9: +4hat 10h 51m
- Attempt 10: +6hat 16h 51m
- Attempt 11: +6hat 22h 51m
- Attempt 12: +8hat 30h 51m
- Attempt 13: +8hat 38h 51m
- Attempt 14: +10hat 48h 51m
- Attempt 15: +12hat 60h 51m
- Attempt 16: +11hat 71h 51m
- Failedfor the endpoint
Sandbox
4 attempts over about 2 hours 35 minutes
- Attempt 1: Firstat 0m
- Attempt 2: +5mat 5m
- Attempt 3: +30mat 35m
- Attempt 4: +2hat 2h 35m
- Failedfor the endpoint
Each wait counts from the previous attempt and can vary by up to 30% either way, so delays add up across attempts. After the last attempt, the event is marked failed for that endpoint; see Missed events. In the dashboard, an endpoint's latest attempt of an event shows when the next automatic attempt is due.
Failing endpoints
Stridge warns you about an endpoint that keeps failing, then disables it. An endpoint is failing from its first failed delivery until:
- a delivery to it returns a
2xxwhile it is enabled, or - you re-enable it, if it has been disabled. Once an endpoint is disabled, only re-enabling it ends the failing state.
While an endpoint is failing, it shows failing_since and disable_at.
- After 2 days without a
2xx, the workspace's owners get one notice in the dashboard. It names the endpoint, its last failure, and when it will be disabled. - After 3 days without a
2xx, the endpoint is disabled (status: disabled,disabled_reason: failing). Its pending retries stop, and new events are not sent to it. - Re-enable it in the dashboard or with
POST /v2/webhook-endpoints/{endpoint_id}/enable. Stridge then replays every event the endpoint selected and did not receive sincefailing_since, up to 30 days back. Each is sent once, oldest first. To re-enable without the replay, send{"replay_missed": false}.
An endpoint a person turned off is turned back on differently: update it with {"is_active": true}.
The same rules apply in live and in the sandbox. In the sandbox, the failing-since test helper moves an endpoint's failing_since into the past, so you can see the notice and the disable without waiting days.
Missed events
If your endpoint was down or disabled, you can still recover the events it missed. The Events API keeps every event from the last 30 days, whatever any endpoint selected, newest first:
GET /v2/eventslists them. Filter bytype,related_object_idandcreated.GET /v2/events/{id}reads one.
Each item is the exact thin event an endpoint receives, byte for byte, with the id it was delivered under.
Call it with a secret key that holds event.read, live or sandbox. It lists the events of the key's own environment. After an outage, list the outage window and process each event by its id:
curl -G "https://api.stridge.com/v2/events" \
-H "Authorization: Bearer $STRIDGE_SECRET_KEY" \
-d "created[gte]=2026-11-20T09:00:00Z" \
-d "created[lte]=2026-11-20T11:00:00Z" \
-d "limit=100"Resend sends one event to one endpoint again, from the dashboard. There is no bulk resend. For larger gaps, use the Events API or the replay that comes with re-enabling an endpoint.
Testing an endpoint
Ping an endpoint to check that your receiver gets a signed delivery. Ping it from the dashboard, or with POST /v2/webhook-endpoints/{endpoint_id}/ping. A ping sends one webhook_endpoint.ping event:
- It is signed like any other delivery.
- It is never retried.
- It reaches only that endpoint, whatever its
enabled_events, even while the endpoint is turned off.
To test the events your integration acts on, run real flows in your sandbox with the test helpers. A simulated deposit or payout sends the same events a live one would.
Endpoints created before thin events
Every endpoint keeps one payload format for its life, shown read-only in its event_payload. An endpoint created now, in the dashboard or through /v2, reads thin and receives the events this page describes. An endpoint created before thin events reads legacy. It cannot be switched to thin events in place, and its secret cannot be rotated.
To move, create a thin endpoint and run it beside the old one, then delete the old one. While both run, deduplicate the thin route on its signed webhook-id, keep the old route's deduplication apart from it, and make every action safe to repeat on the object. Move webhooks to thin events walks through the differences and the steps.