On-Call API › Message templates
Get the voice-call template
GET/api/v1/voice-template
The organization's voice template: the text a phone call reads out about an
alert, with {field} placeholders filled from the alert. An organization
without one gets an empty body and uses the default call.
Permission: none — any valid API key or signed-in member of the organization.
Authorization
Responses
200
The template.
dataVoiceTemplate requiredShow VoiceTemplate properties
bodystringupdated_atstring (date-time)RFC 3339; absent when no template is saved.
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.
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/voice-template' \
-H 'Authorization: Bearer <TOKEN>'