Read the workspace's audit log
GET https://weights.fyi/run/v1/workspace/audit[?after=<event_id>][&limit=<n>]
Authorization: Bearer <token> scope: manage- Available since
- Not available yet: built on 2026-11-16, live with the deploy that carries it.
- Answer time
- synchronous: the answer is read from your workspace's records at once.
Lists what was done in your workspace, oldest first within a page: keys made and changed, invitations, roles, billing consent, holds released and the other actions the service records about it. Each event names who acted (account, person, or service for the service's own actions), its kind, and a detail of ids, states, codes and amounts only, never page text or a secret.
Without after, the answer is the newest page; follow next_after to read the events that come later, so a program can keep its own copy up to date. A page holds at most limit events, 1,000 by default and at most.
Request
| Name | Where | Required | Meaning |
|---|---|---|---|
Authorization | header | yes | Bearer and a token with manage, or the session of an owner or admin. |
after | query | no | An event id: list the events after it. |
limit | query | no | How many events, 1 to 1,000. |
Return value
200 OK with two fields.
| Field | Meaning |
|---|---|
events | Each event: id, at, actor (kind and id), kind and detail. |
next_after | The id of the page's last event, to pass as after; with an empty page, the after you sent. |
Errors
| Status | Code | When it happens | What to do |
|---|---|---|---|
400 | invalid_parameter, parameter_out_of_range | after or limit is not a whole number in range. | Fix the parameter. |
401 | unauthorized, invalid_token, token_revoked, token_expired | No token, or one that does not work. | Use a valid token. |
403 | scope_required | The credential lacks manage. | Ask an owner or admin. |
403 | account_suspended | The account is suspended. | Talk to us. |
Examples
curl -s "https://weights.fyi/run/v1/workspace/audit?limit=50" -H "Authorization: Bearer $WEIGHTS_API_KEY"{
"events": [{"id": 88121, "at": "2026-11-16T09:41:07.000Z", "actor": {"kind": "person", "id": 12},
"kind": "incident_orphaned_hold_released",
"detail": {"account_id": 6, "hold_id": 9811, "why": "pack_pending", "amount_usd_micros": 322000}}],
"next_after": 88121
}History
- 2026-11-16 (built, live with the deploy that carries it): the audit log.
See also
GET /v1/workspace/members, POST /v1/reservations/release-orphaned.