EvoTrail API › Usage
Get the most active people
The 50 most active people in the range with their actions per product. This is for organization owners and administrators signed in to the console only: no permission opens it, so an API key always gets 403.
Permission (API-key scope): evotrail:metrics:read. Not enough on its own: the caller must also be an organization owner or administrator, which an API key never is.
Authorization
bearerAuth(evotrail:metrics:read)apiKeyHeader(evotrail:metrics:read)
Parameters
Query parameters
productarray of ProductOnly these products; repeat it (product=oncall&product=uptime) or comma-separate. Products the key cannot read are dropped. Default: every product it can read.team_idstringfromstringYYYY-MM-DD(UTC) or RFC 3339. Default 30 days beforeto.tostringYYYY-MM-DD(inclusive) or RFC 3339. Default now.
Responses
200
The people.
dataobject requiredfromstring (date-time)tostring (date-time)peoplearray of objectactor_idstringnamestring | nullactionsintegerby_productobjectlast_active_daystring (date)drillDrillShow Drill properties
productarray of stringactionstringteam_idstringactor_idstringfromstring (date-time) requiredtostring (date-time) required
successboolean required
400
A range or filter is not valid (VALIDATION_ERROR); the message names it.
errorobject requiredcodestring requiredMachine-readable code. Branch on this.messagestring requiredHuman-readable explanation.request_idstringThis request's id, also inX-Request-ID.
successboolean
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
Always, for an API key: only owners and administrators may see per-person usage (FORBIDDEN).
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/usage/people' \
-H 'Authorization: Bearer <TOKEN>'