API reference · Account
The audit trail
GET/api/account/auditSigned in session
Append only. Keys minted, revoked, rotated and rescoped, policies changed, members invited and demoted, payments received, admin top ups, account deletion. Without orgId it is your own history; with one it is the organization's, which owners, admins and the billing role may read.
Parameters
| Field | Type | What it is |
|---|---|---|
| orgId (query) | integer | An organization's trail instead of your own. |
| limit (query) | integer | Page size. |
| before (query) | integer | Return entries with an id below this one. |
Answer 200
Entries, newest first.
| Field | Type | What it is |
|---|---|---|
| scope | string | |
| orgId | integer or null | |
| entries | array of AuditEntry | |
| entries[] | integer | |
| entries[] | integer | |
| entries[] | integer or null | Null when the provider or the operator acted. |
| entries[] | integer or null | |
| entries[] | string | |
| entries[] | string or null | |
| entries[] | object or null | Never a secret. |
| entries[] | string or null |
Errors
- 401OpenAI shaped error.
- 403OpenAI shaped error.
- 404OpenAI shaped error.
Every error answers in one shape, with its type, code and the field it names. The whole list is in the docs' Errors section.