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": "f44e5271-30f2-47e9-a2ab-554a8920d61a",
    "type": "alerts",
    "attributes": {
      "short_id": null,
      "source": "asana",
      "status": "open",
      "summary": "Asana ticket created",
      "description": null,
      "labels": [
        {
          "key": "status",
          "value": "succeeded"
        }
      ],
      "services": [
        {
          "id": "0493924b-90d9-4f18-8af1-11c86ed9786a",
          "team_id": 17,
          "name": "Sunt nihil corrupti dolorem.",
          "slug": "sunt-nihil-corrupti-dolorem",
          "description": "Dolorem officiis excepturi enim.",
          "deleted_at": null,
          "created_at": "2025-05-29T17:40:30.434-07:00",
          "updated_at": "2025-05-29T17:40:30.434-07:00",
          "opsgenie_id": null,
          "pagerduty_id": null,
          "public_description": null,
          "github_repository_branch": "master",
          "github_repository_name": null,
          "color": "#D7F5E1",
          "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-3a0f8b6c3f824e5afd147efe04afcda1@email.rootly.com",
          "opsgenie_team_id": null,
          "service_now_ci_sys_id": null,
          "alert_urgency_id": null,
          "opslevel_id": null,
          "datadog_id": null
        }
      ],
      "service_ids": [
        "0493924b-90d9-4f18-8af1-11c86ed9786a"
      ],
      "groups": [],
      "group_ids": [],
      "environments": [
        {
          "id": "396f6930-d9f9-4bab-8ecf-bcb6d5bd7e97",
          "team_id": 17,
          "name": "Autem qui repellendus dignissimos.",
          "slug": "autem-qui-repellendus-dignissimos",
          "description": "Ipsa commodi tenetur nihil.",
          "color": "#94fa94",
          "deleted_at": null,
          "created_at": "2025-05-29T17:40:30.460-07:00",
          "updated_at": "2025-05-29T17:40:30.460-07:00",
          "incidents_count": 0,
          "position": 1,
          "slack_channels": [],
          "slack_aliases": [],
          "external_id": null,
          "notify_emails": []
        }
      ],
      "environment_ids": [
        "396f6930-d9f9-4bab-8ecf-bcb6d5bd7e97"
      ],
      "responders": [],
      "incidents": [],
      "data": {
        "url": "https://asana.com/issues/1"
      },
      "started_at": "2025-05-29T17:37:49.000-07:00",
      "ended_at": "2025-05-29T17:39:49.000-07:00",
      "external_id": null,
      "external_url": null,
      "url": "https://test.rootly.com/account/alerts/f44e5271-30f2-47e9-a2ab-554a8920d61a",
      "notification_target_type": null,
      "notification_target_id": null,
      "alert_urgency_id": "a171d1a6-3e7f-4994-8478-fc180cedc2d2",
      "notified_users": [],
      "created_at": "2025-05-29T17:40:33.039-07:00",
      "updated_at": "2025-05-29T17:40:33.039-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.