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": {
      "noise": "noise",
      "source": "rootly",
      "status": "open",
      "summary": "<string>",
      "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>"
    }
  }
}'
{
  "data": {
    "id": "930dff8f-31aa-4c22-acc9-bc4c7e869ac3",
    "type": "alerts",
    "attributes": {
      "short_id": null,
      "source": "asana",
      "status": "open",
      "summary": "Asana ticket created",
      "description": null,
      "labels": [
        {
          "key": "status",
          "value": "succeeded"
        }
      ],
      "services": [
        {
          "id": "fa86eb62-008d-4226-9a94-0cc367e815fc",
          "alert_broadcast_channel": {},
          "alert_broadcast_enabled": false,
          "alert_urgency_id": null,
          "alerts_email_address": "service-c413e175c1a1da0f48235ba864eda8f2@email.rootly.com",
          "alerts_email_enabled": false,
          "backstage_id": null,
          "color": "#FAEBB7",
          "cortex_id": null,
          "created_at": "2025-08-21T23:41:04.456-07:00",
          "datadog_id": null,
          "deleted_at": null,
          "description": "Sint qui assumenda dolor.",
          "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": "Ab quasi esse animi.",
          "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": "ab-quasi-esse-animi",
          "status": "operational",
          "team_id": 16,
          "updated_at": "2025-08-21T23:41:04.456-07:00"
        }
      ],
      "service_ids": [
        "fa86eb62-008d-4226-9a94-0cc367e815fc"
      ],
      "groups": [],
      "group_ids": [],
      "environments": [
        {
          "id": "44447862-c989-49c1-8455-a7f45501b61b",
          "color": "#2a932a",
          "created_at": "2025-08-21T23:41:04.484-07:00",
          "deleted_at": null,
          "description": "Nesciunt commodi quis repellendus.",
          "external_id": null,
          "incidents_count": 0,
          "name": "Repellat est quaerat dolorum.",
          "notify_emails": [],
          "position": 1,
          "slack_aliases": [],
          "slack_channels": [],
          "slug": "repellat-est-quaerat-dolorum",
          "team_id": 16,
          "updated_at": "2025-08-21T23:41:04.484-07:00"
        }
      ],
      "environment_ids": [
        "44447862-c989-49c1-8455-a7f45501b61b"
      ],
      "responders": [],
      "incidents": [],
      "data": {
        "url": "https://asana.com/issues/1"
      },
      "deduplication_key": null,
      "started_at": "2025-08-21T23:38:22.000-07:00",
      "ended_at": "2025-08-21T23:40:22.000-07:00",
      "external_id": null,
      "external_url": null,
      "url": "https://test.rootly.com/account/alerts/930dff8f-31aa-4c22-acc9-bc4c7e869ac3",
      "noise": "not_noise",
      "notification_target_type": null,
      "notification_target_id": null,
      "alert_urgency": {
        "id": "7e098031-4814-403a-b951-222ec754390c",
        "color": "#C73C40",
        "created_at": "2025-08-21T23:41:04.499-07:00",
        "deleted_at": null,
        "description": "Nostrum aliquam illo sint.",
        "name": "pb2av",
        "position": 1,
        "team_id": 16,
        "updated_at": "2025-08-21T23:41:04.504-07:00",
        "urgency": "high"
      },
      "alert_urgency_id": "7e098031-4814-403a-b951-222ec754390c",
      "notified_users": [],
      "created_at": "2025-08-21T23:41:06.498-07:00",
      "updated_at": "2025-08-21T23:41:06.498-07:00"
    },
    "relationships": {
      "events": {
        "data": [
          {
            "id": "e2d538b5-d020-4ec4-afd5-7093ffe5cac8",
            "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

Response

201
application/vnd.api+json

alert created

The response is of type object.