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": "0fa37111-d36d-4aac-baa5-4558139a530a",
    "type": "alerts",
    "attributes": {
      "short_id": null,
      "source": "asana",
      "status": "open",
      "summary": "Asana ticket created",
      "description": null,
      "labels": [
        {
          "key": "status",
          "value": "succeeded"
        }
      ],
      "services": [
        {
          "id": "8731a839-76c6-4a4a-8f2c-9b8c1bbf31e1",
          "team_id": 23,
          "name": "Quaerat earum alias perferendis.",
          "slug": "quaerat-earum-alias-perferendis",
          "description": "Animi deserunt quis magni.",
          "deleted_at": null,
          "created_at": "2025-03-26T23:17:40.350-07:00",
          "updated_at": "2025-03-26T23:17:40.350-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-1da94700d0f5cbabc8a7c99163cd8bd3@email.rootly.com",
          "opsgenie_team_id": null,
          "service_now_ci_sys_id": null,
          "alert_urgency_id": null,
          "opslevel_id": null
        }
      ],
      "service_ids": [
        "8731a839-76c6-4a4a-8f2c-9b8c1bbf31e1"
      ],
      "groups": [],
      "group_ids": [],
      "environments": [
        {
          "id": "d7d14888-4483-4fa7-b054-f7b7019c68fc",
          "team_id": 23,
          "name": "Voluptas a quam similique.",
          "slug": "voluptas-a-quam-similique",
          "description": "Quia quo sed ipsa.",
          "color": "#f377f3",
          "deleted_at": null,
          "created_at": "2025-03-26T23:17:40.379-07:00",
          "updated_at": "2025-03-26T23:17:40.379-07:00",
          "incidents_count": 0,
          "position": 1,
          "slack_channels": [],
          "slack_aliases": [],
          "external_id": null,
          "notify_emails": []
        }
      ],
      "environment_ids": [
        "d7d14888-4483-4fa7-b054-f7b7019c68fc"
      ],
      "responders": [],
      "incidents": [],
      "data": {
        "url": "https://asana.com/issues/1"
      },
      "started_at": "2025-03-26T23:15:02.000-07:00",
      "ended_at": "2025-03-26T23:17:02.000-07:00",
      "external_id": null,
      "external_url": null,
      "url": "https://test.rootly.com/account/alerts/0fa37111-d36d-4aac-baa5-4558139a530a",
      "notification_target_type": null,
      "notification_target_id": null,
      "alert_urgency_id": "00711a4b-c47a-4dfc-95cd-282ccb307702",
      "notified_users": [],
      "created_at": "2025-03-26T23:17:42.818-07:00",
      "updated_at": "2025-03-26T23:17:42.818-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
data
object
required

Response

201
application/vnd.api+json
alert created
data
object
required