GET   alerts/{alert_id}

Gets the alert matching the provided id. Available targets: SMS, email and webhook.

URL Parameters

NameDescription
alert_id

Alert identifier. Type: numeric.

Request example

Response body model example and description

{
  "id": 12345,
  "check_id": 12345,
  "severity": "F",
  "enabled": true,
  "targets": [
    {
      "type": "sms",
      "id": 12,
      "name": "Email to customer",
      "to": "support@apica.io",
      "enabled": true
    },
    {
      "type": "sms",
      "id": 12,
      "name": "Email to customer",
      "to": "support@apica.io",
      "enabled": true
    },
    {
      "type": "email",
      "id": 12,
      "name": "Email to customer",
      "to": "support@apica.io",
      "enabled": true
    }
  ],
  "target_groups": [
    {
      "id": 12,
      "name": "Developers",
      "enabled": true,
      "targets": [
        {
          "type": "sms",
          "id": 12,
          "name": "Email to customer",
          "to": "support@apica.io",
          "enabled": true
        },
        {
          "type": "email",
          "id": 12,
          "name": "Email to customer",
          "to": "support@apica.io",
          "enabled": true
        },
        {
          "type": "email",
          "id": 12,
          "name": "Email to customer",
          "to": "support@apica.io",
          "enabled": true
        }
      ]
    },
    {
      "id": 12,
      "name": "Developers",
      "enabled": true,
      "targets": [
        {
          "type": "sms",
          "id": 12,
          "name": "Email to customer",
          "to": "support@apica.io",
          "enabled": true
        },
        {
          "type": "sms",
          "id": 12,
          "name": "Email to customer",
          "to": "support@apica.io",
          "enabled": true
        },
        {
          "type": "sms",
          "id": 12,
          "name": "Email to customer",
          "to": "support@apica.io",
          "enabled": true
        }
      ]
    },
    {
      "id": 12,
      "name": "Developers",
      "enabled": true,
      "targets": [
        {
          "type": "email",
          "id": 12,
          "name": "Email to customer",
          "to": "support@apica.io",
          "enabled": true
        },
        {
          "type": "sms",
          "id": 12,
          "name": "Email to customer",
          "to": "support@apica.io",
          "enabled": true
        },
        {
          "type": "sms",
          "id": 12,
          "name": "Email to customer",
          "to": "support@apica.io",
          "enabled": true
        }
      ]
    }
  ]
}
NameType Description
idInteger

The alert's numeric identity.

check_idInteger

The numeric identifier of the check.

severityString

The alert's severity.

enabledBoolean

The alert is enabled.

targetsArray

Supported targets: SMS, email and webhooks.

typeString

The target's type.

idInteger

The target's numeric identity.

nameString

The target's name.

toString

The target's destination.

enabledBoolean

The target is enable.

target_groupsArray

Groups of targets.

idInteger

The target group's numeric identity.

nameString

The target group name.

enabledBoolean

The target group is enable.

targetsArray

Targets in group.

typeString

The target's type.

idInteger

The target's numeric identity.

nameString

The target's name.

toString

The target's destination.

enabledBoolean

The target is enable.