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": "771c8ef3-9a2b-4179-bc69-344b99c6f1af",
    "type": "alerts",
    "attributes": {
      "short_id": null,
      "source": "asana",
      "status": "open",
      "summary": "Asana ticket created",
      "description": null,
      "labels": [
        {
          "key": "status",
          "value": "succeeded"
        }
      ],
      "services": [
        {
          "id": "53259f2c-22ac-4021-800f-80c7afcd3879",
          "team_id": 17,
          "name": "Velit eligendi repudiandae recusandae.",
          "slug": "velit-eligendi-repudiandae-recusandae",
          "description": "Quod culpa illum qui.",
          "deleted_at": null,
          "created_at": "2025-04-18T09:44:54.841-07:00",
          "updated_at": "2025-04-18T09:44:54.841-07:00",
          "opsgenie_id": null,
          "pagerduty_id": null,
          "public_description": null,
          "github_repository_branch": "master",
          "github_repository_name": null,
          "color": "#F4CFD1",
          "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-9fa99fb8a5d500b945593b857e780129@email.rootly.com",
          "opsgenie_team_id": null,
          "service_now_ci_sys_id": null,
          "alert_urgency_id": null,
          "opslevel_id": null
        }
      ],
      "service_ids": [
        "53259f2c-22ac-4021-800f-80c7afcd3879"
      ],
      "groups": [],
      "group_ids": [],
      "environments": [
        {
          "id": "6d73d42d-a211-4c49-b6d3-aefbf03bb347",
          "team_id": 17,
          "name": "Molestiae sed ipsa non.",
          "slug": "molestiae-sed-ipsa-non",
          "description": "Qui doloremque molestias et.",
          "color": "#d41c1c",
          "deleted_at": null,
          "created_at": "2025-04-18T09:44:54.867-07:00",
          "updated_at": "2025-04-18T09:44:54.867-07:00",
          "incidents_count": 0,
          "position": 1,
          "slack_channels": [],
          "slack_aliases": [],
          "external_id": null,
          "notify_emails": []
        }
      ],
      "environment_ids": [
        "6d73d42d-a211-4c49-b6d3-aefbf03bb347"
      ],
      "responders": [],
      "incidents": [],
      "data": {
        "url": "https://asana.com/issues/1"
      },
      "started_at": "2025-04-18T09:42:15.000-07:00",
      "ended_at": "2025-04-18T09:44:15.000-07:00",
      "external_id": null,
      "external_url": null,
      "url": "https://test.rootly.com/account/alerts/771c8ef3-9a2b-4179-bc69-344b99c6f1af",
      "notification_target_type": null,
      "notification_target_id": null,
      "alert_urgency_id": "41f2d383-97b9-42bd-a8a5-56ca91e564af",
      "notified_users": [],
      "created_at": "2025-04-18T09:44:57.957-07:00",
      "updated_at": "2025-04-18T09:44:57.957-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