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.

Delivering one eventStridge sends a thin, signed event. Anything but a 2xx in time is a failed attempt, retried on a fixed schedule with the same webhook-id. Your endpoint verifies the signature, stores the event and returns a 2xx within 10 seconds. Your worker then reads the object the event points at.
PLATFORMStridge
USERYour endpoint
USERYour queue and worker
Thin event · webhook-id, webhook-timestamp, webhook-signature
3xx, 4xx, 5xx, timeout or connection error
Waits on the retry schedule
Retry · same webhook-id, fresh timestamp
Verifies the signature on the raw body
Stores the event
2xx within 10 seconds
GET related_object.url
The object as it is now
Stridge sends a thin, signed event. Anything but a 2xx in time is a failed attempt, retried on a fixed schedule with the same webhook-id. Your endpoint verifies the signature, stores the event and returns a 2xx within 10 seconds. Your worker then reads the object the event points at.

Events

An event is a short, signed notice that points at one object:

A thin event
{
  "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.

id

The event's identifier. It matches the webhook-id header and stays the same on every attempt and resend. Deduplicate on it: two deliveries with the same id are one event, so act on it once.

type

What happened. Stridge only ever adds types, so return a 2xx for a type you do not recognise and ignore it.

created

When 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.

livemode

Which environment the event happened in: false for the sandbox, true for live.

Here are the event types, grouped by the object they point at. Each type has its own page.

Transaction1

Deposit2

Vault1

Gas station1

Payout4

Settlement6

Deposit address1

Treasury3

Webhook endpoint1

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.

url

An absolute https URL on port 443 with a public host. Stridge rejects these, both when you register the endpoint and on every delivery:

  • http URLs, or any port other than 443;
  • localhost and private addresses;
  • URLs with credentials in them.

To receive events on your own machine during development, expose it through a public https address that forwards to it.

name

A name for the endpoint, 1 to 255 characters.

enabled_events

The 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.

status

enabled or disabled. A disabled endpoint receives no events. disabled_reason tells you why: user if a person turned it off, or failing if 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 404 operation_not_served.
  • A sandbox key cannot be created with webhook.read or webhook.write.

So manage your sandbox endpoints in the dashboard.

OperationPermission
List webhook endpointsGET/webhook-endpointswebhook.readwebhook.read
Create a webhook endpointPOST/webhook-endpointswebhook.writewebhook.write
Get a webhook endpointGET/webhook-endpoints/{endpoint_id}webhook.readwebhook.read
Update a webhook endpointPATCH/webhook-endpoints/{endpoint_id}webhook.writewebhook.write
Delete a webhook endpointDELETE/webhook-endpoints/{endpoint_id}webhook.writewebhook.write
Rotate a webhook endpoint's signing secretPOST/webhook-endpoints/{endpoint_id}/rotate-secretwebhook.writewebhook.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.

OperationPermission
Ping a webhook endpointPOST/webhook-endpoints/{endpoint_id}/pingwebhook.deliverwebhook.deliver
Re-enable a webhook endpointPOST/webhook-endpoints/{endpoint_id}/enablewebhook.deliverwebhook.deliver
Create an endpoint
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-id

The event's id. The same on every attempt.

webhook-timestamp

When this attempt was sent, in Unix seconds. New on every attempt.

webhook-signature

One or more signatures, separated by spaces. Each is v1, followed by a base64 HMAC-SHA256.

stridge-signature-legacy

The 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 as webhook-signature, and only the current secret. Verify webhook-signature instead.

To verify a delivery by hand:

  1. Build the signed content: {webhook-id}.{webhook-timestamp}.{raw body}.
  2. Take your secret's key bytes: the part after whsec_, base64-decoded.
  3. Compute the HMAC-SHA256 of the signed content with those bytes, and base64-encode it. Use the raw body, before any JSON parsing.
  4. Compare the result with each v1, signature in webhook-signature. The delivery is genuine if one matches.
  5. 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:

  1. Store the verified event in a durable queue.
  2. Return any 2xx within 10 seconds of the connection opening.
  3. 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 2xx within 10 seconds, or a connection error;
  • a 3xx (redirects are not followed);
  • any 4xx or 5xx.

Every retry carries the same webhook-id, so a receiver that deduplicates on it acts only once.

EnvironmentAttemptsWaits after each failed attempt
Live16, over 71 hours 51 minutes1m, 5m, 15m, 30m, 1h, 2h, 3h, 4h, 6h, 6h, 8h, 8h, 10h, 12h, 11h
Sandbox4, over about 2 hours 35 minutes5m, 30m, 2h

Live

16 attempts over 71 hours 51 minutes

  1. Attempt 1: Firstat 0m
  2. Attempt 2: +1mat 1m
  3. Attempt 3: +5mat 6m
  4. Attempt 4: +15mat 21m
  5. Attempt 5: +30mat 51m
  6. Attempt 6: +1hat 1h 51m
  7. Attempt 7: +2hat 3h 51m
  8. Attempt 8: +3hat 6h 51m
  9. Attempt 9: +4hat 10h 51m
  10. Attempt 10: +6hat 16h 51m
  11. Attempt 11: +6hat 22h 51m
  12. Attempt 12: +8hat 30h 51m
  13. Attempt 13: +8hat 38h 51m
  14. Attempt 14: +10hat 48h 51m
  15. Attempt 15: +12hat 60h 51m
  16. Attempt 16: +11hat 71h 51m
  17. Failedfor the endpoint

Sandbox

4 attempts over about 2 hours 35 minutes

  1. Attempt 1: Firstat 0m
  2. Attempt 2: +5mat 5m
  3. Attempt 3: +30mat 35m
  4. Attempt 4: +2hat 2h 35m
  5. Failedfor the endpoint
Each attempt shows the wait before it, and its time since the first attempt if every wait runs exactly to schedule.

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 2xx while 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.

A failing endpointFailing starts at the first failed delivery. A 2xx while the endpoint is enabled ends it. Once the endpoint is disabled, only re-enabling it ends it, and re-enabling replays the events it missed.
enabled
failing
disabled
enabled
enabled
first failed delivery
3 days without a 2xx
2 days: notice to owners
a 2xx while enabled
re-enable · replays missed events
Failing starts at the first failed delivery. A 2xx while the endpoint is enabled ends it. Once the endpoint is disabled, only re-enabling it ends it, and re-enabling replays the events it missed.
  • 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 since failing_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:

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:

Events of an outage window
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_id the event happened in. In the sandbox it also carries reset_epoch, the sandbox's reset count when the attempt was sent.

Signature

webhook-id, webhook-timestamp, and a webhook-signature that is 64 lowercase hex characters of HMAC-SHA256 over {webhook-timestamp}.{raw body}, keyed by the secret as text. This is the signature stridge-signature-legacy carries 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:

  1. Create a new endpoint, in the dashboard or with a live key.
  2. Run it beside the old one.
  3. 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.