EvoTrail API › Audit trail
Get one audit event
GET/api/v1/evotrail/audit/{id}
One event with before, after and metadata. An event of a product the key
may not read answers 404, as if it did not exist.
Permission (API-key scope): evotrail:audit:read. The event's product also needs its *:audit:read.
Authorization
bearerAuth(evotrail:audit:read)apiKeyHeader(evotrail:audit:read)
Parameters
Path parameters
idstring requiredThe id named by the path: an audit event's id (a UUID) under/audit, a status page's or a docs or changelog site's id under/metrics.
Responses
200
The event.
dataAuditEvent requiredShow AuditEvent properties
idstring (uuid) requiredevent_idstring requiredThe producing product's own id for the event.sourcestring requiredThe service that reported it.productProduct requiredteam_idstring | nullThe team the resource belongs to.actorobject requiredtypestringidstring | nullnamestring | nullteamsarray of string | null
actionstring required<resource>.<verb>, for examplealert.acknowledgedormember.role_changed.classstring requiredauditis a change to configuration or access (kept 365 days);activityis day-to-day work (kept 90 days).resourceobject requiredtypestring | nullidstring | nullnamestring | null
request_idstring | nullipstring | nullKept 90 days.user_agentstring | nullKept 90 days.occurred_atstring (date-time) requiredhas_detailsboolean requiredWhetherbefore,afterormetadataexist; read the single event to get them.beforeanyThe resource before the change (single-event read only). Secrets are masked by the producer.afteranyThe resource after the change (single-event read only).metadataanyAnything else the product recorded (single-event read only).
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_idstringThis request's id, also inX-Request-ID.
successboolean
403
The key lacks the EvoTrail scope, or may read none of the products asked for (FORBIDDEN).
errorobject requiredcodestring requiredMachine-readable code. Branch on this.messagestring requiredHuman-readable explanation.request_idstringThis request's id, also inX-Request-ID.
successboolean
404
No such event, or one the key may not read (NOT_FOUND).
errorobject requiredcodestring requiredMachine-readable code. Branch on this.messagestring requiredHuman-readable explanation.request_idstringThis request's id, also inX-Request-ID.
successboolean
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_idstringThis request's id, also inX-Request-ID.
successboolean
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_idstringThis request's id, also inX-Request-ID.
successboolean
Example request
curl -X GET 'https://evohub.io/api/v1/evotrail/audit/string' \
-H 'Authorization: Bearer <TOKEN>'