Creates a new alert from provided data
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": {
"source": "rootly",
"summary": "<string>",
"noise": "noise",
"status": "open",
"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": {},
"deduplication_key": "<string>",
"alert_field_values_attributes": [
{
"alert_field_id": "<string>",
"value": "<string>"
}
]
}
}
}
'{
"data": {
"id": "1ffdd463-2a84-4302-a725-d95306022422",
"type": "alerts",
"attributes": {
"short_id": "pjPZWH",
"source": "asana",
"status": "open",
"summary": "Asana ticket created",
"description": null,
"labels": [
{
"key": "status",
"value": "succeeded"
}
],
"services": [
{
"id": "c5c3aeb3-c847-48aa-8d15-f43cbc2b3aa2",
"alert_broadcast_channel": {},
"alert_broadcast_enabled": false,
"alert_urgency_id": null,
"alerts_email_address": "[email protected]",
"alerts_email_enabled": false,
"backstage_id": null,
"color": "#047BF8",
"cortex_id": null,
"created_at": "2026-01-27T04:53:05.631-08:00",
"datadog_id": null,
"deleted_at": null,
"description": "Voluptatum illo et eveniet.",
"external_id": null,
"github_repository_branch": "master",
"github_repository_name": null,
"gitlab_repository_branch": "master",
"gitlab_repository_name": null,
"heroku_app_name": null,
"incident_broadcast_channel": {},
"incident_broadcast_enabled": false,
"incidents_count": 0,
"jsmops_id": null,
"kubernetes_deployment_name": null,
"name": "Autem officia incidunt aut.",
"notify_emails": [],
"opsgenie_id": null,
"opsgenie_team_id": null,
"opslevel_id": null,
"pagerduty_id": null,
"position": 1,
"public_description": null,
"service_now_ci_sys_id": null,
"show_uptime": true,
"show_uptime_last_days": 60,
"slack_aliases": [],
"slack_channels": [],
"slug": "autem-officia-incidunt-aut",
"status": "operational",
"team_id": 23,
"updated_at": "2026-01-27T04:53:05.631-08:00"
}
],
"service_ids": [
"c5c3aeb3-c847-48aa-8d15-f43cbc2b3aa2"
],
"groups": [],
"group_ids": [],
"environments": [
{
"id": "b796d27c-a3fb-4b59-a62e-5c1a5710d606",
"color": "#b6f2f2",
"created_at": "2026-01-27T04:53:05.652-08:00",
"deleted_at": null,
"description": "Qui dolores deserunt rem.",
"external_id": null,
"incidents_count": 0,
"name": "Expedita ut incidunt error.",
"notify_emails": [],
"position": 1,
"slack_aliases": [],
"slack_channels": [],
"slug": "expedita-ut-incidunt-error",
"team_id": 23,
"updated_at": "2026-01-27T04:53:05.652-08:00"
}
],
"environment_ids": [
"b796d27c-a3fb-4b59-a62e-5c1a5710d606"
],
"responders": [],
"incidents": [],
"data": {
"url": "https://asana.com/issues/1"
},
"deduplication_key": null,
"started_at": "2026-01-27T04:50:11.000-08:00",
"ended_at": "2026-01-27T04:52:11.000-08:00",
"external_id": null,
"external_url": null,
"url": "https://test.rootly.com/account/alerts/1ffdd463-2a84-4302-a725-d95306022422",
"noise": "not_noise",
"group_leader_alert_id": null,
"is_group_leader_alert": false,
"notification_target_type": null,
"notification_target_id": null,
"alert_urgency": {
"id": "16ee0e6d-f86e-413f-93b4-081b27f08e22",
"color": "#C73C40",
"created_at": "2026-01-27T04:53:05.663-08:00",
"deleted_at": null,
"description": "Minus quae vel facere.",
"name": "k227p",
"position": 1,
"team_id": 23,
"updated_at": "2026-01-27T04:53:05.668-08:00",
"urgency": "high"
},
"alert_urgency_id": "16ee0e6d-f86e-413f-93b4-081b27f08e22",
"notified_users": [],
"created_at": "2026-01-27T04:53:07.608-08:00",
"updated_at": "2026-01-27T04:53:07.608-08:00"
},
"relationships": {
"events": {
"data": [
{
"id": "53dea26e-0b19-4883-a35d-2e15c6414078",
"type": "alert_events"
}
]
}
}
}
}Was this page helpful?
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": {
"source": "rootly",
"summary": "<string>",
"noise": "noise",
"status": "open",
"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": {},
"deduplication_key": "<string>",
"alert_field_values_attributes": [
{
"alert_field_id": "<string>",
"value": "<string>"
}
]
}
}
}
'{
"data": {
"id": "1ffdd463-2a84-4302-a725-d95306022422",
"type": "alerts",
"attributes": {
"short_id": "pjPZWH",
"source": "asana",
"status": "open",
"summary": "Asana ticket created",
"description": null,
"labels": [
{
"key": "status",
"value": "succeeded"
}
],
"services": [
{
"id": "c5c3aeb3-c847-48aa-8d15-f43cbc2b3aa2",
"alert_broadcast_channel": {},
"alert_broadcast_enabled": false,
"alert_urgency_id": null,
"alerts_email_address": "[email protected]",
"alerts_email_enabled": false,
"backstage_id": null,
"color": "#047BF8",
"cortex_id": null,
"created_at": "2026-01-27T04:53:05.631-08:00",
"datadog_id": null,
"deleted_at": null,
"description": "Voluptatum illo et eveniet.",
"external_id": null,
"github_repository_branch": "master",
"github_repository_name": null,
"gitlab_repository_branch": "master",
"gitlab_repository_name": null,
"heroku_app_name": null,
"incident_broadcast_channel": {},
"incident_broadcast_enabled": false,
"incidents_count": 0,
"jsmops_id": null,
"kubernetes_deployment_name": null,
"name": "Autem officia incidunt aut.",
"notify_emails": [],
"opsgenie_id": null,
"opsgenie_team_id": null,
"opslevel_id": null,
"pagerduty_id": null,
"position": 1,
"public_description": null,
"service_now_ci_sys_id": null,
"show_uptime": true,
"show_uptime_last_days": 60,
"slack_aliases": [],
"slack_channels": [],
"slug": "autem-officia-incidunt-aut",
"status": "operational",
"team_id": 23,
"updated_at": "2026-01-27T04:53:05.631-08:00"
}
],
"service_ids": [
"c5c3aeb3-c847-48aa-8d15-f43cbc2b3aa2"
],
"groups": [],
"group_ids": [],
"environments": [
{
"id": "b796d27c-a3fb-4b59-a62e-5c1a5710d606",
"color": "#b6f2f2",
"created_at": "2026-01-27T04:53:05.652-08:00",
"deleted_at": null,
"description": "Qui dolores deserunt rem.",
"external_id": null,
"incidents_count": 0,
"name": "Expedita ut incidunt error.",
"notify_emails": [],
"position": 1,
"slack_aliases": [],
"slack_channels": [],
"slug": "expedita-ut-incidunt-error",
"team_id": 23,
"updated_at": "2026-01-27T04:53:05.652-08:00"
}
],
"environment_ids": [
"b796d27c-a3fb-4b59-a62e-5c1a5710d606"
],
"responders": [],
"incidents": [],
"data": {
"url": "https://asana.com/issues/1"
},
"deduplication_key": null,
"started_at": "2026-01-27T04:50:11.000-08:00",
"ended_at": "2026-01-27T04:52:11.000-08:00",
"external_id": null,
"external_url": null,
"url": "https://test.rootly.com/account/alerts/1ffdd463-2a84-4302-a725-d95306022422",
"noise": "not_noise",
"group_leader_alert_id": null,
"is_group_leader_alert": false,
"notification_target_type": null,
"notification_target_id": null,
"alert_urgency": {
"id": "16ee0e6d-f86e-413f-93b4-081b27f08e22",
"color": "#C73C40",
"created_at": "2026-01-27T04:53:05.663-08:00",
"deleted_at": null,
"description": "Minus quae vel facere.",
"name": "k227p",
"position": 1,
"team_id": 23,
"updated_at": "2026-01-27T04:53:05.668-08:00",
"urgency": "high"
},
"alert_urgency_id": "16ee0e6d-f86e-413f-93b4-081b27f08e22",
"notified_users": [],
"created_at": "2026-01-27T04:53:07.608-08:00",
"updated_at": "2026-01-27T04:53:07.608-08:00"
},
"relationships": {
"events": {
"data": [
{
"id": "53dea26e-0b19-4883-a35d-2e15c6414078",
"type": "alert_events"
}
]
}
}
}
}