Read the audit log
Returns a page of an organisation’s audit log, oldest first. The log records every request that changed something, with who sent it and how it ended.
/_luna/orgs/{org}/auditAuthorizationBearer token · headerrequiredAn account key (la_…), an API key (lt_…) or a session token (ls_…). The scopes listed are the permissions the operation needs.
audit:readorgstringrequiredThe organisation, by its slug.
sinceinteger<int64>Entries from this moment on, in milliseconds since the Unix epoch.
untilinteger<int64>Entries up to this moment, in milliseconds since the Unix epoch.
actionstringEntries whose action contains this text, such as DELETE.
actorstringEntries by this actor: an email address or an id.
limitintegerHow many entries to return. 200 when left out, 5000 at most.
cursorstringThe cursor of the last page, to read the next one.
formatstringndjson returns one entry per line as application/x-ndjson.
A page of the audit log.
entriesAuditEntry[]requiredShow propertiesHide properties
AuditEntryatinteger<int64>requiredWhen, in milliseconds since the Unix epoch.
actorAuditActorrequiredWho made a change.
Show propertiesHide properties
kindstringrequiredaccount, token or operator.
idstring | nullemailstring | nullThe account's address, for an account.
namestring | nullThe key's name, for a token.
keystring | nullThe name of the account key the request came with.
actionstringrequiredThe method and the route, such as POST /_luna/deploy.
pathstringrequiredThe path of the request.
tenantstring | nullThe tenant it was about, when it was about one.
statusinteger<int32>requiredThe status the request ended with.
cursorstring | nullPass this as cursor to read the next page. Null on the last page.
The request failed. The status says how and error.message says why.
errorErrorDetailrequiredShow propertiesHide properties
codestring | nullA code for programs to branch on, when the error has one.
messagestringrequiredWhat went wrong, in a sentence a person can read.