Skip to main content
POST
/
v1
/
alerts
Creates an alert
curl --request POST \
  --url https://api.rootly.com/v1/alerts \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/vnd.api+json' \
  --data '
{
  "data": {
    "type": "alerts",
    "attributes": {
      "source": "rootly",
      "summary": "<string>",
      "noise": "noise",
      "status": "open",
      "description": "<string>",
      "service_ids": [
        "<string>"
      ],
      "group_ids": [
        "<string>"
      ],
      "environment_ids": [
        "<string>"
      ],
      "started_at": "2023-11-07T05:31:56Z",
      "ended_at": "2023-11-07T05:31:56Z",
      "external_id": "<string>",
      "external_url": "<string>",
      "alert_urgency_id": "<string>",
      "notification_target_type": "User",
      "notification_target_id": "<string>",
      "labels": [
        {
          "key": "<string>",
          "value": "<string>"
        }
      ],
      "data": {},
      "deduplication_key": "<string>",
      "alert_field_values_attributes": [
        {
          "alert_field_id": "<string>",
          "value": "<string>"
        }
      ]
    }
  }
}
'
{
  "data": {
    "id": "e5b3ae61-e610-430e-b355-b5e2222ac8f7",
    "type": "alerts",
    "attributes": {
      "short_id": "nIrdtV",
      "source": "asana",
      "status": "open",
      "summary": "Asana ticket created",
      "description": null,
      "labels": [
        {
          "key": "status",
          "value": "succeeded"
        }
      ],
      "services": [
        {
          "id": "5c0108f9-bd7e-4d18-899c-6dec8e8a1bfa",
          "alert_broadcast_channel": {},
          "alert_broadcast_enabled": false,
          "alert_urgency_id": null,
          "alerts_email_address": "[email protected]",
          "alerts_email_enabled": false,
          "backstage_id": null,
          "color": "#047BF8",
          "cortex_id": null,
          "created_at": "2026-01-14T02:34:50.368-08:00",
          "datadog_id": null,
          "deleted_at": null,
          "description": "Voluptatem non inventore alias.",
          "external_id": null,
          "github_repository_branch": "master",
          "github_repository_name": null,
          "gitlab_repository_branch": "master",
          "gitlab_repository_name": null,
          "heroku_app_name": null,
          "incident_broadcast_channel": {},
          "incident_broadcast_enabled": false,
          "incidents_count": 0,
          "kubernetes_deployment_name": null,
          "name": "Iste sapiente nobis pariatur.",
          "notify_emails": [],
          "opsgenie_id": null,
          "opsgenie_team_id": null,
          "opslevel_id": null,
          "pagerduty_id": null,
          "position": 1,
          "public_description": null,
          "service_now_ci_sys_id": null,
          "show_uptime": true,
          "show_uptime_last_days": 60,
          "slack_aliases": [],
          "slack_channels": [],
          "slug": "iste-sapiente-nobis-pariatur",
          "status": "operational",
          "team_id": 23,
          "updated_at": "2026-01-14T02:34:50.368-08:00"
        }
      ],
      "service_ids": [
        "5c0108f9-bd7e-4d18-899c-6dec8e8a1bfa"
      ],
      "groups": [],
      "group_ids": [],
      "environments": [
        {
          "id": "feee5af4-54be-45b9-88c9-c4e944967023",
          "color": "#eec9ee",
          "created_at": "2026-01-14T02:34:50.384-08:00",
          "deleted_at": null,
          "description": "Et sed alias architecto.",
          "external_id": null,
          "incidents_count": 0,
          "name": "Id ullam rerum inventore.",
          "notify_emails": [],
          "position": 1,
          "slack_aliases": [],
          "slack_channels": [],
          "slug": "id-ullam-rerum-inventore",
          "team_id": 23,
          "updated_at": "2026-01-14T02:34:50.384-08:00"
        }
      ],
      "environment_ids": [
        "feee5af4-54be-45b9-88c9-c4e944967023"
      ],
      "responders": [],
      "incidents": [],
      "data": {
        "url": "https://asana.com/issues/1"
      },
      "deduplication_key": null,
      "started_at": "2026-01-14T02:32:06.000-08:00",
      "ended_at": "2026-01-14T02:34:06.000-08:00",
      "external_id": null,
      "external_url": null,
      "url": "https://test.rootly.com/account/alerts/e5b3ae61-e610-430e-b355-b5e2222ac8f7",
      "noise": "not_noise",
      "group_leader_alert_id": null,
      "is_group_leader_alert": false,
      "notification_target_type": null,
      "notification_target_id": null,
      "alert_urgency": {
        "id": "dd1258a5-1a40-450c-a0b9-ae2eb69d5140",
        "color": "#C73C40",
        "created_at": "2026-01-14T02:34:50.392-08:00",
        "deleted_at": null,
        "description": "Nesciunt et enim non.",
        "name": "yax5u",
        "position": 1,
        "team_id": 23,
        "updated_at": "2026-01-14T02:34:50.396-08:00",
        "urgency": "high"
      },
      "alert_urgency_id": "dd1258a5-1a40-450c-a0b9-ae2eb69d5140",
      "notified_users": [],
      "created_at": "2026-01-14T02:34:52.277-08:00",
      "updated_at": "2026-01-14T02:34:52.277-08:00"
    },
    "relationships": {
      "events": {
        "data": [
          {
            "id": "03815e20-b67f-42bf-b107-6c7900551bdc",
            "type": "alert_events"
          }
        ]
      }
    }
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/vnd.api+json
data
object
required

Response

alert created

data
object
required