Skip to main content
Alerting & Response/Alert Templates

ListAlertTemplatePresets

List all builtin preset templates available for use

GET/api/v1/alerting/templates/presets

Operation ID

ListAlertTemplatePresets

Since

1.0.0

Execution Mode

Synchronous

Auth Context

Auth Required

Auth Context

Send these values as request headers when calling this API.

AuthorizationstringRequired

Bearer Token

X-Tenant-IDstring

X-Tenant-ID

Request Inputs

application/json

Query Parameters

  • alarmType
    String

    Optional preset dataset filter: resource or event; omitted returns all eighteen presets

Header Parameters

  • Accept-Language
    String

    Preferred locale for builtin template names; custom names are preserved. Supports zh-CN, en-US, aliases and weighted values.

Responses

200 OK

Successful response

Content-Type: application/json

Response body root type: object

Response Headers

  • Content-Language
    String

    Resolved response locale

  • Vary
    String

    Response varies by Accept-Language

  • items
    List

    List of preset templates

    • uuid
      String

      Stable UUID of the template. Builtin templates use fixed UUIDs.

      Example: e6e3e618-7e8e-4df3-843b-227a49ed170b

      {"format":"uuid"}

    • name
      String

      Human-readable template name. Builtin names follow Accept-Language; custom names are preserved.

      Example: Default Email Template

    • format
      String

      Template format: markdown, html, json, or plain_text

      Example: markdown

    • content
      String

      Template content with variable placeholders

      Example: # Alert: {{.AlertName}}

    • source
      String

      Template source: builtin or custom

      Example: builtin

    • createDate
      String

      Timestamp when the template was created

      Example: 2026-01-15T08:00:00Z

      {"format":"date-time"}

    • lastOpDate
      String

      Timestamp of the last template modification

      Example: 2026-01-15T08:00:00Z

      {"format":"date-time"}

    • alarmType
      String

      Template dataset type: resource or event; independent of builtin/custom source

      Example: event

  • total
    Integer

    Total number of presets

    Example: 5

    {"format":"int32"}

  • limit
    Integer

    Maximum items per page

    Example: 20

    {"format":"int32"}

  • offset
    Integer

    Offset from start of result set

    Example: 20

    {"format":"int32"}

  • Change Time

    AddedRequest parameters alarmTypeAddedResponse fields alarmType
    View API
  • Change Time

    AddedRequest parameters Accept-Language
    View API