Skip to main content

Webhook Deliveries

A delivery is one event on its way to one endpoint. It has its own id (whd_…), its own status, and one row per HTTP attempt it made. Everything Budget Thing knows about a delivery is visible both in the application and over the API, which is what makes a failing integration diagnosable.

Delivery states​

StatusMeaning
pendingCreated and waiting for its first attempt.
deliveringAn attempt is in flight.
succeededAn attempt got a 2xx. Finished.
retryingAn attempt failed and another is scheduled.
failedOut of attempts, or a permanent failure. Finished.
canceledAbandoned before it could be delivered — the endpoint was deleted while the delivery was queued.

The application shows the same six as Pending, Delivering, Succeeded, Retrying, Failed and Canceled.

Retries​

Any response that is not 2xx, and any network-level failure, is a failed attempt. A failed delivery is retried on a fixed, widening schedule:

After attemptNext attempt in
11 minute
25 minutes
330 minutes
42 hours
58 hours
624 hours

Each delay carries up to 20% jitter, so a fleet of endpoints recovering from the same outage does not return in lockstep. That is seven attempts in total, spread over about 35 hours, and then the delivery is failed and is not tried again — retries do not continue indefinitely. A failed delivery can still be redelivered by hand.

An endpoint that fails five deliveries in a row is disabled automatically.

Every attempt records why it failed, in errorType:

errorTypeWhat happened
http_statusYour endpoint answered, but not with a 2xx.
redirectYour endpoint answered 3xx. Redirects are not followed.
timeoutNo answer within the 10-second budget.
dnsThe hostname did not resolve.
connectionThe connection or TLS handshake failed.
blockedThe destination is not an allowed address. Permanent — no retry.
internalA failure on our side. Retried unless it is permanent.

The delivery history​

In Budget Thing, open Settings → Developer → Webhooks, choose an endpoint, and open its Deliveries tab. The table lists Time, Event, Status, HTTP, Attempts and Duration, newest first, with filters for Event type, Status, From and Until, and a Load more button that pages through the rest.

Opening a row shows the full delivery, in four sections:

SectionWhat it shows
DeliveryDelivery id, event id, event type, status, created, last attempted, delivered, attempt count, next attempt, and what it is a redelivery of.
RequestThe URL, the request headers, and the exact JSON payload that was sent.
ResponseThe HTTP status, the duration, a preview of the response body, and the error if there was one.
AttemptsEvery individual HTTP attempt, oldest first, with its own status, timing and error.

That is usually enough to settle any argument about a failing endpoint: the payload and headers shown are the ones that were sent, so you can compare them with what your own logs recorded.

The response preview is your own text

The response body preview is content from your server, capped at the first 4 KiB and shown as plain text. It is never interpreted, and it never affects whether the delivery succeeded — only the status code does.

List deliveries over the API​

Two listings exist. One is scoped to an endpoint:

GET /api/v1/workspaces/{workspaceID}/webhooks/{webhookID}/deliveries

The other covers the whole workspace, and can filter by endpoint:

GET /api/v1/workspaces/{workspaceID}/webhook-deliveries

Both need webhooks:read and accept the same filters, which combine with AND:

ParameterFilters by
webhookEndpointIdOne endpoint. Workspace-wide listing only.
eventIdOne application event (evt_…).
eventTypeOne event type, for example transaction.created.
statusOne delivery status from the table above.
afterCreated at or after this instant, RFC 3339.
beforeCreated at or before this instant, RFC 3339.
pageTokenA cursor from a previous response.
pageSize1–1000, default 100. Ignored when pageToken is sent.
curl -G https://api.budgetthing.com/api/v1/workspaces/wks_3fQ0mZk8Xr2Lp9Va6Ne1Ty/webhook-deliveries \
-H "Authorization: Bearer $BUDGETTHING_TOKEN" \
--data-urlencode "status=failed" \
--data-urlencode "after=2026-09-15T00:00:00Z" \
--data-urlencode "pageSize=50"
{
"deliveries": [
{
"id": "whd_4Bn8Rk2Xm7Qd5Vz1Lp9Wsk",
"workspaceId": "wks_3fQ0mZk8Xr2Lp9Va6Ne1Ty",
"webhookEndpointId": "whep_7Kq2Vn5Xd8Rb3Mz1Wt6Hjc",
"eventId": "evt_6Hn2Kq9Xd4Rb7Mz3Wt1Vpf",
"eventType": "transaction.created",
"status": "failed",
"attemptCount": 7,
"responseStatus": 500,
"errorType": "http_status",
"errorMessage": "endpoint responded with status 500",
"durationMs": 214,
"createdAt": "2026-09-15T18:32:12Z",
"lastAttemptAt": "2026-09-17T06:41:55Z"
}
],
"nextToken": "eyJhZnRlciI6IjIwMjYtMDktMTUifQ",
"total": 1
}
Paging is by cursor here, not by page number

The delivery listings are the exception to the page/pageSize paging used elsewhere in the API — see Making Requests. Send pageToken from nextToken to get the next page, resending the same filters; the token carries the page size chosen for the first page, so pageSize is ignored while paging. A response without nextToken is the last page.

A single delivery, including its attempts and the exact request that was sent, is available at:

GET /api/v1/workspaces/{workspaceID}/webhook-deliveries/{deliveryID}
{
"id": "whd_4Bn8Rk2Xm7Qd5Vz1Lp9Wsk",
"eventId": "evt_6Hn2Kq9Xd4Rb7Mz3Wt1Vpf",
"eventType": "transaction.created",
"status": "failed",
"attemptCount": 7,
"request": {
"url": "https://hooks.example.com/budgetthing",
"headers": {
"Content-Type": "application/json",
"User-Agent": "BudgetThing-Webhooks/1.0",
"BudgetThing-Webhook-Id": "whd_4Bn8Rk2Xm7Qd5Vz1Lp9Wsk",
"BudgetThing-Webhook-Event": "transaction.created",
"BudgetThing-Webhook-Event-Id": "evt_6Hn2Kq9Xd4Rb7Mz3Wt1Vpf",
"BudgetThing-Webhook-Api-Version": "2026-09-01",
"BudgetThing-Webhook-Timestamp": "1789627315"
},
"body": {}
},
"lastResponse": {
"status": 500,
"durationMs": 214,
"bodyPreview": "internal server error"
},
"attempts": [
{
"id": "whda_9Pd3Kn7Xb2Rm5Vz8Qt4Lwe",
"attemptNumber": 1,
"requestTimestamp": 1789499532,
"startedAt": "2026-09-15T18:32:12Z",
"completedAt": "2026-09-15T18:32:13Z",
"durationMs": 214,
"responseStatus": 500,
"responseBodyPreview": "internal server error",
"errorType": "http_status",
"errorMessage": "endpoint responded with status 500"
}
]
}

request.headers is a reconstruction for diagnosis, so it does not repeat the signature: the signature is computed per attempt, and requestTimestamp on each attempt is the value that was signed with it. BudgetThing-Webhook-Timestamp shows the timestamp of the most recent attempt, and is absent until the delivery has been attempted at least once.

Send a test delivery​

POST /api/v1/workspaces/{workspaceID}/webhooks/{webhookID}/test

In the application this is Send test on the endpoint. It publishes a real webhook.test event to that one endpoint and nothing else.

The important part is that a test is not a special synchronous probe. It goes through the same event pipeline, the same delivery record, the same signing and the same retries as a genuine event — so a test that arrives and verifies proves your whole receiver works, not just that your URL answers.

Because it is asynchronous, the call returns the event id before any delivery necessarily exists:

{
"eventId": "evt_8Wq5Jm2Xn7Rd4Vz1Kp3Bhd",
"webhookEndpointId": "whep_7Kq2Vn5Xd8Rb3Mz1Wt6Hjc"
}

The application says Test webhook queued and then polls for the delivery, showing "Looking for the resulting delivery…" until it appears — so a test briefly showing nothing in the Deliveries tab is normal, not a failure.

Over the API, take the eventId you were given and poll the delivery listing with the eventId filter until the delivery shows up:

curl -G https://api.budgetthing.com/api/v1/workspaces/wks_3fQ0mZk8Xr2Lp9Va6Ne1Ty/webhook-deliveries \
-H "Authorization: Bearer $BUDGETTHING_TOKEN" \
--data-urlencode "eventId=evt_8Wq5Jm2Xn7Rd4Vz1Kp3Bhd"

That is the pattern for any event you have just caused: the event id is stable and known immediately, while the delivery is created a moment later.

Redeliver a delivery​

POST /api/v1/workspaces/{workspaceID}/webhook-deliveries/{deliveryID}/redeliver

In the application, open a delivery and choose Redeliver. Any delivery can be replayed, whether it failed or succeeded:

  • the original stored payload is reused and sent byte for byte, so the signature is computed over the same bytes as before;
  • a new delivery record is created, starting at pending, with a fresh delivery id and a fresh timestamp;
  • the new record names the old one in redeliveryOfDeliveryId;
  • the original delivery and all of its attempts are left untouched, so the history of what happened stays intact;
  • the event id does not change — which is exactly why your receiver should deduplicate on it.

The payload cannot be edited before a redelivery. If the data has moved on since the event, read the current state from the API instead of replaying. A delivery whose endpoint has since been deleted cannot be replayed at all — there is nowhere to send it.

Rate limits on manual actions​

Sending a test, redelivering and rotating a secret all make Budget Thing do something on your behalf — an outbound request to an address you chose, or a change to a credential your server depends on — so each has its own budget on top of the ordinary API rate limits:

ActionLimit
Send test10 per workspace, refilling 30 per hour
Redeliver20 per workspace, refilling 100 per hour
Rotate secret5 per endpoint, refilling 10 per day
All three together30 per user, refilling 120 per hour — and the same again per personal access token

Exceeding one answers 429 Too Many Requests with the code webhook_rate_limit_exceeded, alongside the usual RateLimit-* headers and a Retry-After. Honor Retry-After — or retryAfterSeconds in the body — and retry after it elapses. Nothing was done, so the retry is safe.

These four policies fail closed: if the store behind the limiter is unreachable, the action is refused rather than allowed through.

Troubleshooting checklist​

SymptomWhere to look
No deliveries at allIs the endpoint enabled, and does its subscription actually match the event? Check events and the wildcard semantics.
Deliveries stop suddenlyThe endpoint may have been disabled automatically after five consecutive failures.
errorType: redirectYour URL redirects. Register the final URL.
errorType: timeoutYour handler is doing work before answering. Acknowledge first, process after.
errorType: blockedThe URL resolves to a private or internal address.
responseStatus: 401 or 403Your own middleware is rejecting the request — a webhook carries no Authorization header, only the signature.
Signature mismatchesSee Verifying Webhook Signatures.
The same event twiceExpected. Delivery is at least once.

Next​