Event History
Event history lets an integration read what happened in a workspace, using the same event envelopes webhooks deliver. Use it to catch up after downtime, to backfill a new integration, or to look up the events behind a change.
Event history is a rolling 30-day changelog, not an audit trail. Events older than 30 days are deleted, events are deleted with their workspace, and only events for data you are allowed to read are returned. Do not use it as a compliance or security record.
Scope and access
Every call needs the events:read scope. That scope only
opens the endpoints. Each event is a copy of a resource, so you also need the
read scope for that resource, and your workspace role must allow reading it:
- A token with
events:readandtransactions:readsees transaction events and nothing else. A token withevents:readalone sees no events. - Signed-in members see the event types their role can read.
webhook.testevents are visible to the workspace owner only, like the rest of the webhook tooling.- Some event types are never returned: member events, import
batch events (
transaction_import.*), and every internal event. A hidden event looks the same as one that does not exist. - A user who is not a member of the workspace gets
404.
List events
GET /api/v1/workspaces/{workspaceID}/events
curl "https://api.budgetthing.com/api/v1/workspaces/wks_3fQ0mZk8Xr2Lp9Va6Ne1Ty/events?type=transaction.*&limit=50" \
-H "Authorization: Bearer $BUDGETTHING_TOKEN"
{
"events": [
{
"id": "evt_7Zk1pQ2mX9",
"type": "transaction.created",
"api_version": "2026-09-01",
"created_at": "2026-11-13T09:12:44.120Z",
"workspace_id": "wks_3fQ0mZk8Xr2Lp9Va6Ne1Ty",
"actor": { "type": "user", "id": "usr_4aB9" },
"object": { "type": "transaction", "id": "txn_8Hn2" },
"data": { "transaction": { "id": "txn_8Hn2" } },
"correlation_id": "cor_55Fq"
}
],
"nextToken": "..."
}
Each item is the webhook envelope, unchanged. Events are sorted newest first.
| Query parameter | What it does |
|---|---|
type | Only these event types. Exact names (transaction.created) and wildcards (transaction.*, *) work. Repeat the parameter for several. An unknown type is a validation error. |
objectType and objectId | Only events about one resource. Send both or neither. |
actorId | Only events caused by this actor. |
correlationId | Only events produced by one logical operation. |
since and until | Only events recorded in this range (RFC 3339 timestamps). |
limit | Items per page. Default 50, maximum 200. |
pageToken | The nextToken from the previous page. |
Pagination
When more events exist the response has nextToken. Send it back as
pageToken together with the same filters. The token is encrypted and
bound to the filters it was issued for; reusing it with different filters is a
validation error. The page size is fixed by the first request.
Pages are filtered in the database before they are cut, so a page is only short on the last page.
Get one event
GET /api/v1/workspaces/{workspaceID}/events/{eventID}
Returns one envelope. It answers 404 when the event does not exist, is older
than the retention window, or you are not allowed to read it.
Retention
Events are available for 30 days. A since or until older than that
window returns a validation error rather than an empty page, so you can tell
"nothing happened" from "we no longer keep that". Events are not removed
instantly when they pass 30 days; they are never served once they do.
Event type catalog
GET /api/v1/workspaces/{workspaceID}/event-types
The same registry as the webhook catalog, readable with events:read
(the webhook route keeps working with webhooks:read). Each entry also has
readScope, the scope needed besides events:read, and inHistory, whether
your caller can read that type in history. The response includes
retentionDays.
Live stream
To follow events as they happen, use the live event stream
(GET .../events/stream). It sends the same envelopes and applies the same
authorization.
Errors
| Status | When |
|---|---|
403 | The token does not have events:read. |
404 | You are not a member of the workspace, or the event is missing or not readable. |
422 | An unknown type, objectType without objectId, a bad range, a window older than 30 days, or a page token that does not match the filters. |
See Errors for the error format.