Alerting & Response/Alert Templates
POSTAlertingSince 1.0SynchronousAuth Required
RenderAlertTemplate
Render a template with sample data to preview the output
Execution Availability
Try It Out
Submit a mock request using the current auth context and example-driven inputs.
Request Inputs
Body Fields
contentStringRequiredTemplate content to render
Example: # Alert: {{.AlertName}}
formatStringRequiredTemplate format for rendering
Example: markdown
payloadStringRequiredJSON payload data for template variable substitution
Example: {"AlertName": "High CPU"}
Responses
Endpoint
POST/api/v1/alerting/templates/render
/api/v1/alerting/templates/render
Request Example
curl -X POST '{host}/api/v1/alerting/templates/render' -H 'Authorization: Bearer {token}' -H 'Content-Type: application/json' -d '{"content":"# Alert: {{.AlertName}}","format":"markdown","payload":"{\"AlertName\": \"High CPU\"}"}'
Response Example
200{
"output": "# Alert: High CPU",
"error": "connection refused"
}Change History
This API has no change history records yet.
