Documentation
Your workspace
View .mdOpenAPI

Read the workspace's audit log

GEThttps://weights.fyi/run/v1/workspace/auditscope: manage
text
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

NameWhereRequiredMeaning
AuthorizationheaderyesBearer and a token with manage, or the session of an owner or admin.
afterquerynoAn event id: list the events after it.
limitquerynoHow many events, 1 to 1,000.

Return value

200 OK with two fields.

FieldMeaning
eventsEach event: id, at, actor (kind and id), kind and detail.
next_afterThe id of the page's last event, to pass as after; with an empty page, the after you sent.

Errors

StatusCodeWhen it happensWhat to do
400invalid_parameter, parameter_out_of_rangeafter or limit is not a whole number in range.Fix the parameter.
401unauthorized, invalid_token, token_revoked, token_expiredNo token, or one that does not work.Use a valid token.
403scope_requiredThe credential lacks manage.Ask an owner or admin.
403account_suspendedThe account is suspended.Talk to us.

Examples

sh
curl -s "https://weights.fyi/run/v1/workspace/audit?limit=50" -H "Authorization: Bearer $WEIGHTS_API_KEY"
json
{
  "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.