Skip to content

Audit Logs

The audit log records changes made in your account, such as team updates, invites, and API key changes. These endpoints are read-only, so keys with the Read Only or Admin role can call them.

The list is paginated, see Pagination.

NameTypeDescription
accountIdnumberThe account ID.
idnumberThe entry ID.
actorobjectWho made the change.
typestringWhat happened. See Audit Types.
targetobjectWhat the change was applied to.
metadataobjectExtra details about the change.
ttlnumberWhen the entry expires, in epoch seconds.

If actor, target, or metadata has no data, it is returned as an empty object.

actor:

NameTypeDescription
idstringThe actor’s ID.
namestringThe actor’s name. Optional.
emailstringThe actor’s email address. Optional.
typestringuser, apikey, or support. Optional.

target:

NameTypeDescription
idstringThe target’s ID.
namestringThe target’s name. Optional.
emailstringThe target’s email address. Optional.

metadata:

NameTypeDescription
idstringA related ID. Optional.
namestringA related name. Optional.
emailstringA related email address. Optional.
valuestringA related value. Optional.
valuesarray of stringsRelated values. Optional.
GroupTypes
Accountaccount-create, account-update
API keysapikey-create, apikey-update, apikey-delete
Billingbilling-create, billing-update, billing-delete
Invitesinvite-create, invite-delete
Supportsupport-create, support-close, support-reopen, support-user-add, support-user-remove
Teamsteam-create, team-update, team-delete, team-member-add, team-member-remove, team-mute-add, team-mute-remove
Usersuser-create, user-update, user-delete

GET /account/{accountId}/audit

Required role
Admin or Read Only

Path parameters

NameTypeRequiredDescription
accountIdnumberYesYour account ID.

Query parameters

NameTypeRequiredDescription
limitnumberNoPage size. Defaults to 20. Any whole number from 1 to 100. Any other value is treated as 20.
idnumberNoPagination cursor. Pass the pk.id value from the previous response.
startnumberNoEarliest time to include, in epoch milliseconds. Inclusive.
endnumberNoLatest time to include, in epoch milliseconds. Inclusive.
orderstringNoasc returns the oldest entries first. Any other value, or omitting it, returns the newest first.

Response

Status 200.

NameTypeDescription
itemsarrayAudit entries, as described in The Audit Entry Object.
pkobjectPresent only when more results exist. Contains id, the cursor for the next page.

Errors

StatusWhen
400id, start, or end is not numeric.

Notes

  • You can use start and end on their own or together.
  • A page can contain fewer than limit items while pk is still present. Keep requesting pages until pk is absent.

GET /account/{accountId}/audit/{auditId}

Required role
Admin or Read Only

Path parameters

NameTypeRequiredDescription
accountIdnumberYesYour account ID.
auditIdnumberYesThe entry ID.

Response

Status 200. Returns one entry, as described in The Audit Entry Object.