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.
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
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.
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
An endpoint registered through the legacy /v1 API, or before thin events, keeps its original delivery format. Its event_payload reads legacy.
How a legacy endpoint delivers
- Body
The event's full legacy body: the object as it was when the event was created, shown on each event's page. It carries the
environment_idthe event happened in. In the sandbox it also carriesreset_epoch, the sandbox's reset count when the attempt was sent.- Signature
webhook-id,webhook-timestamp, and awebhook-signaturethat is 64 lowercase hex characters of HMAC-SHA256 over{webhook-timestamp}.{raw body}, keyed by the secret as text. This is the signaturestridge-signature-legacycarries on a thin endpoint. No other headers are sent.- Retries
In live, 6 attempts in all: the first, then retries after 10, 20, 40, 80 and 160 seconds. In the sandbox, 3 attempts: the first, then retries after 10 and 20 seconds. When they run out, the workspace is emailed.
A legacy endpoint is never marked failing or disabled, and it follows up to three redirects.
- Event types
It receives the types it was registered with, from those the legacy API offers. The Events API does not serve legacy bodies.
A legacy endpoint cannot be upgraded in place, and its secret cannot be rotated. To move to thin events:
- Create a new endpoint, in the dashboard or with a live key.
- Run it beside the old one.
- Delete the old one.
While both run, each event reaches both with the same webhook-id header. Deduplicate on that header, not on the body's id, which differs between a legacy body and a thin event.