POST
/
v1
/
alerts
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": {}
    }
  }
}'
{
  "data": {
    "id": "6c48909a-bbde-4178-b6f3-1c209f14ec98",
    "type": "alerts",
    "attributes": {
      "short_id": null,
      "source": "asana",
      "status": "open",
      "summary": "Asana ticket created",
      "description": null,
      "labels": [
        {
          "key": "status",
          "value": "succeeded"
        }
      ],
      "services": [
        {
          "id": "72fad2d2-a353-4c9d-a175-23d23783e9b0",
          "team_id": 17,
          "name": "Ratione fugit est quia.",
          "slug": "ratione-fugit-est-quia",
          "description": "Vitae voluptatem sint ab.",
          "deleted_at": null,
          "created_at": "2025-05-08T00:16:30.716-07:00",
          "updated_at": "2025-05-08T00:16:30.716-07:00",
          "opsgenie_id": null,
          "pagerduty_id": null,
          "public_description": null,
          "github_repository_branch": "master",
          "github_repository_name": null,
          "color": "#D7E7F5",
          "heroku_app_name": null,
          "gitlab_repository_name": null,
          "gitlab_repository_branch": "master",
          "kubernetes_deployment_name": null,
          "incidents_count": 0,
          "position": 1,
          "slack_channels": [],
          "slack_aliases": [],
          "backstage_id": null,
          "show_uptime": true,
          "show_uptime_last_days": 60,
          "status": "operational",
          "external_id": null,
          "notify_emails": [],
          "cortex_id": null,
          "alerts_email_enabled": false,
          "alerts_email_address": "service-063b35e1432b798a9d4af8a1dce9cc2a@email.rootly.com",
          "opsgenie_team_id": null,
          "service_now_ci_sys_id": null,
          "alert_urgency_id": null,
          "opslevel_id": null
        }
      ],
      "service_ids": [
        "72fad2d2-a353-4c9d-a175-23d23783e9b0"
      ],
      "groups": [],
      "group_ids": [],
      "environments": [
        {
          "id": "27776bbe-0e98-412e-bb98-a68a172ce56f",
          "team_id": 17,
          "name": "Ut reprehenderit ad quia.",
          "slug": "ut-reprehenderit-ad-quia",
          "description": "Sint sit libero consequatur.",
          "color": "#e4e4c3",
          "deleted_at": null,
          "created_at": "2025-05-08T00:16:30.751-07:00",
          "updated_at": "2025-05-08T00:16:30.751-07:00",
          "incidents_count": 0,
          "position": 1,
          "slack_channels": [],
          "slack_aliases": [],
          "external_id": null,
          "notify_emails": []
        }
      ],
      "environment_ids": [
        "27776bbe-0e98-412e-bb98-a68a172ce56f"
      ],
      "responders": [],
      "incidents": [],
      "data": {
        "url": "https://asana.com/issues/1"
      },
      "started_at": "2025-05-08T00:13:47.000-07:00",
      "ended_at": "2025-05-08T00:15:47.000-07:00",
      "external_id": null,
      "external_url": null,
      "url": "https://test.rootly.com/account/alerts/6c48909a-bbde-4178-b6f3-1c209f14ec98",
      "notification_target_type": null,
      "notification_target_id": null,
      "alert_urgency_id": "550dbc93-75f4-414c-91ea-7b055f83a3b0",
      "notified_users": [],
      "created_at": "2025-05-08T00:16:33.452-07:00",
      "updated_at": "2025-05-08T00:16:33.452-07:00"
    }
  }
}

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.