API reference
EvoTrail API
Version 1.0 OpenAPI 3.1.0
EvoTrail is the organization's audit trail, usage and metrics across every EvoHub product, in one place. This API reads it: search and export the audit trail, see how much each product is used, and read each product's metrics through one prefix. Everything here is read-only and free.
Authentication. Send an API key as Authorization: Bearer evohub_… or
X-API-Key: evohub_…. A key works in one organization. See API keys and
scopes and Errors in these docs.
Permissions, two layers. Each operation names the EvoTrail permission it
needs (x-evohub-permission): evotrail:audit:read for the audit trail,
evotrail:metrics:read for usage, overview and metrics. On top of that, each
product's rows or numbers need that product's own permission: an audit row
needs the product's *:audit:read (for example oncall:audit:read), a
product's usage and metrics need one of its read permissions (for example
uptime:monitor:read). Products the key cannot read are left out of the
answer; asking only for those is 403 FORBIDDEN. A refusal is never 401.
A key is always held to its scopes, even one made by an administrator. API keys never count as owners or administrators, so the per-person views below are not available to a key.
Retention is fixed for every organization: audit events 365 days, activity events 90 days, IP addresses and user agents 90 days.
Ranges. from and to are a UTC date (YYYY-MM-DD, to inclusive) or an
RFC 3339 timestamp. By default the last 30 days; at most 366 days.
Responses. Success is {"data": …, "success": true}. Errors are
{"error": {"code", "message", "request_id"}, "success": false}; request_id
is sent on 403 and 500 answers. Times are RFC 3339 in UTC.
Servers
https://evohub.io
Authentication
bearerAuthHTTP BearerAn EvoHub API key (evohub_…) as a bearer token.apiKeyHeaderAPI key in the headerX-API-KeyAn EvoHub API key (evohub_…).
Audit trail
Every product's audit and activity events, searched, counted and exported.
| GET | /api/v1/evotrail/audit | Search the audit trail |
| GET | /api/v1/evotrail/audit/facets | Count the audit trail by dimension |
| GET | /api/v1/evotrail/audit/export.csv | Export the audit trail as CSV |
| GET | /api/v1/evotrail/audit/{id} | Get one audit event |
Usage
How much each product is used, by whom and by which team.
| GET | /api/v1/evotrail/usage | Get usage by product |
| GET | /api/v1/evotrail/usage/people | Get the most active people |
| GET | /api/v1/evotrail/overview | Get the overview |
Product metrics
Each product's own analytics, read through EvoTrail.
Settings
EvoTrail's fixed retention.
| GET | /api/v1/evotrail/settings | Get the retention periods |
