On-Call API › Alerts
List alert field names
GET/api/v1/alerts/fields
Every field name the organization's alerts have carried — the built-in alert fields and the labels and annotations integrations sent — most used first, with a recent sample value and the integration kinds that send it. This is what a voice template can refer to.
Permission (API-key scope): oncall:alert:read.
Authorization
bearerAuth(oncall:alert:read)apiKeyHeader(oncall:alert:read)
Responses
200
The fields.
dataarray of AlertField requiredShow AlertField properties
namestringThe placeholder name, e.g.alert.titleor a label name.builtinbooleanA field every alert has, rather than one an integration sends.usesintegerHow often it appeared.samplestringThe value it most recently held.sourcesarray of string
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.
403
The key lacks the scope this endpoint needs (FORBIDDEN).
errorobject requiredcodestring requiredMachine-readable code. Branch on this.messagestring requiredHuman-readable explanation.
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.
500
Something went wrong on EvoHub's side (INTERNAL_ERROR). Retry later.
errorobject requiredcodestring requiredMachine-readable code. Branch on this.messagestring requiredHuman-readable explanation.
Example request
curl -X GET 'https://evohub.io/api/v1/alerts/fields' \
-H 'Authorization: Bearer <TOKEN>'