Retrieve a Notification
get
/api/v2/notifications/{id}/
Make GET request to this resource to retrieve a single notification record containing the following fields:
id: Database ID for this notification. (integer)type: Data type for this notification. (choice)url: URL for this notification. (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 was created. (datetime)modified: Timestamp when this notification was last modified. (datetime)notification_template: (id)error: (string)status: (choice)pending: Pendingsuccessful: Successfulfailed: Failed
notifications_sent: (integer)notification_type: (choice)email: Emailgrafana: Grafanairc: IRCmattermost: Mattermostpagerduty: Pagerdutyrocketchat: Rocket.Chatslack: Slacktwilio: Twiliowebhook: Webhook
recipients: (string)subject: (string)body: Notification body (json)
Request
Supported Media Types
- application/json
Path Parameters
Back to Top
Response
Supported Media Types
- application/json
200 Response
Root Schema : Notification
Type:
Show Source
object-
body:
string
Title:
BodyRead Only:trueNotification body -
created:
string
Title:
CreatedRead Only:true -
error:
string
Title:
ErrorRead Only:trueMinimum Length:1 -
id:
integer
Title:
IDRead Only:true -
modified:
string
Title:
ModifiedRead Only:true -
notification_template:
integer
Title:
Notification templateRead Only:true -
notification_type(required):
string
Title:
Notification typeAllowed Values:[ "email", "grafana", "irc", "mattermost", "pagerduty", "rocketchat", "slack", "twilio", "webhook" ] -
notifications_sent:
integer
Title:
Notifications sentRead Only:true -
recipients:
string
Title:
RecipientsRead Only:trueMinimum Length:1 - related: string
-
status:
string
Title:
StatusRead Only:trueAllowed Values:[ "pending", "successful", "failed" ] -
subject:
string
Title:
SubjectRead Only:trueMinimum Length:1 -
summary_fields:
string
Title:
Summary fieldsRead Only:true -
type:
string
Title:
TypeRead Only:true -
url:
string
Title:
UrlRead Only:true