Retrieve a Notification Template
get
/api/v2/notification_templates/{id}/
Make GET request to this resource to retrieve a single notification template record containing the following fields:
id: Database ID for this notification template. (integer)type: Data type for this notification template. (choice)url: URL for this notification template. (string)related: Data structure with URLs of related resources. (object)summary_fields: Data structure with name/description for related resources. The output for some objects may be limited for performance reasons. (object)created: Timestamp when this notification template was created. (datetime)modified: Timestamp when this notification template was last modified. (datetime)name: Name of this notification template. (string)description: Optional description of this notification template. (string)organization: (id)notification_type: (choice)email: Emailgrafana: Grafanairc: IRCmattermost: Mattermostpagerduty: Pagerdutyrocketchat: Rocket.Chatslack: Slacktwilio: Twiliowebhook: Webhook
notification_configuration: (json)messages: Optional custom messages for notification template. (json)
Request
Supported Media Types
- application/json
Path Parameters
Back to Top
Response
Supported Media Types
- application/json
200 Response
Root Schema : NotificationTemplate
Type:
Show Source
object-
created:
string
Title:
CreatedRead Only:true -
description:
string
Title:
Description -
id:
integer
Title:
IDRead Only:true -
messages:
object Messages
Title:
MessagesOptional custom messages for notification template. -
modified:
string
Title:
ModifiedRead Only:true -
name(required):
string
Title:
NameMinimum Length:1Maximum Length:512 -
notification_configuration:
object Notification configuration
Title:
Notification configuration -
notification_type(required):
string
Title:
Notification typeAllowed Values:[ "email", "grafana", "irc", "mattermost", "pagerduty", "rocketchat", "slack", "twilio", "webhook" ] -
organization(required):
integer
Title:
Organization - related: string
-
summary_fields:
string
Title:
Summary fieldsRead Only:true -
type:
string
Title:
TypeRead Only:true -
url:
string
Title:
UrlRead Only:true
Nested Schema : Messages
Type:
objectTitle:
MessagesOptional custom messages for notification template.
Default Value:
{
}Nested Schema : Notification configuration
Type:
objectTitle:
Notification configuration