Organization API › Audit log
List the audit log
GET/api/v1/audit-logs
Who changed what in the organization's members, teams, roles, invitations,
keys and settings, and who signed in, newest first. Paged with limit and
offset. The other products keep their own logs; EvoTrail reads them all
together.
Permission (API-key scope): identity:audit:read.
Authorization
bearerAuth(identity:audit:read)apiKeyHeader(identity:audit:read)
Parameters
Query parameters
limitintegerPage size. Over 200 (or not a number) gives 50.offsetintegerexcludestringComma-separated actions to leave out, for exampleuser.login,user.logout.
Responses
200
The entries.
dataarray of AuditLog requiredShow AuditLog properties
idstringorg_idstringactor_idstringThe user or API key that did it.actor_namestringactionstringresource.verb, for exampleuser.role_change,team.member_add,role.assign,invitation.create,org.settings_update,api_key.create,user.login.resourcestringresource_idstringmetadataobjectrequest_idstringipstringcreated_atstring (date-time)
successboolean required
401
No API key was sent, or it is unknown, revoked or expired (UNAUTHORIZED).
errorobject requiredcodestring requiredMachine-readable code. Branch on this.messagestring requiredHuman-readable explanation.request_idstringThe response'sX-Request-ID; quote it to support.
403
The key lacks the scope this endpoint needs (FORBIDDEN).
errorobject requiredcodestring requiredMachine-readable code. Branch on this.messagestring requiredHuman-readable explanation.request_idstringThe response'sX-Request-ID; quote it to support.
429
Too many requests (RATE_LIMITED). Wait Retry-After seconds.
Retry-AfterintegerSeconds to wait.
errorobject requiredcodestring requiredMachine-readable code. Branch on this.messagestring requiredHuman-readable explanation.request_idstringThe response'sX-Request-ID; quote it to support.
500
Something went wrong on EvoHub's side (INTERNAL_ERROR). Retry later.
errorobject requiredcodestring requiredMachine-readable code. Branch on this.messagestring requiredHuman-readable explanation.request_idstringThe response'sX-Request-ID; quote it to support.
Example request
curl -X GET 'https://evohub.io/api/v1/audit-logs' \
-H 'Authorization: Bearer <TOKEN>'