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": "71cbe900-7aeb-49b4-b641-0c49a49b3b3e",
    "type": "alerts",
    "attributes": {
      "short_id": null,
      "source": "asana",
      "status": "open",
      "summary": "Asana ticket created",
      "description": null,
      "labels": [
        {
          "key": "status",
          "value": "succeeded"
        }
      ],
      "services": [
        {
          "id": "2e3e2c72-1c39-461f-84db-4ab45ebcf6f5",
          "team_id": 19,
          "name": "Laborum praesentium ipsum accusantium.",
          "slug": "laborum-praesentium-ipsum-accusantium",
          "description": "Iure consequuntur quo sapiente.",
          "deleted_at": null,
          "created_at": "2025-06-21T11:57:08.936-07:00",
          "updated_at": "2025-06-21T11:57:08.936-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-b43747251e29b244bc7dc88ce8101187@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": [
        "2e3e2c72-1c39-461f-84db-4ab45ebcf6f5"
      ],
      "groups": [],
      "group_ids": [],
      "environments": [
        {
          "id": "a1531d1e-55b9-48b6-82f3-3acf8f43a8c2",
          "team_id": 19,
          "name": "Consequatur vel corporis perferendis.",
          "slug": "consequatur-vel-corporis-perferendis",
          "description": "Commodi laborum at praesentium.",
          "color": "#4a4a17",
          "deleted_at": null,
          "created_at": "2025-06-21T11:57:08.958-07:00",
          "updated_at": "2025-06-21T11:57:08.958-07:00",
          "incidents_count": 0,
          "position": 1,
          "slack_channels": [],
          "slack_aliases": [],
          "external_id": null,
          "notify_emails": []
        }
      ],
      "environment_ids": [
        "a1531d1e-55b9-48b6-82f3-3acf8f43a8c2"
      ],
      "responders": [],
      "incidents": [],
      "data": {
        "url": "https://asana.com/issues/1"
      },
      "started_at": "2025-06-21T11:54:34.000-07:00",
      "ended_at": "2025-06-21T11:56:34.000-07:00",
      "external_id": null,
      "external_url": null,
      "url": "https://test.rootly.com/account/alerts/71cbe900-7aeb-49b4-b641-0c49a49b3b3e",
      "noise": "not_noise",
      "notification_target_type": null,
      "notification_target_id": null,
      "alert_urgency_id": "ae82cfc6-0683-4ce2-b7f6-9d79de54e684",
      "notified_users": [],
      "created_at": "2025-06-21T11:57:11.032-07:00",
      "updated_at": "2025-06-21T11:57:11.032-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.