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": "b794b454-dd13-47ba-bbcf-422e0f4de041",
"type": "alerts",
"attributes": {
"short_id": null,
"source": "asana",
"status": "open",
"summary": "Asana ticket created",
"description": null,
"labels": [
{
"key": "status",
"value": "succeeded"
}
],
"services": [
{
"id": "394b2617-e5ba-4018-aeee-a91e601316ec",
"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": "2025-12-22T14:51:46.355-08:00",
"datadog_id": null,
"deleted_at": null,
"description": "Sint voluptatem itaque dignissimos.",
"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,
"kubernetes_deployment_name": null,
"name": "Minima nemo expedita quibusdam.",
"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": "minima-nemo-expedita-quibusdam",
"status": "operational",
"team_id": 23,
"updated_at": "2025-12-22T14:51:46.355-08:00"
}
],
"service_ids": [
"394b2617-e5ba-4018-aeee-a91e601316ec"
],
"groups": [],
"group_ids": [],
"environments": [
{
"id": "fc6efd74-e8d6-480f-ab45-a38b13affa8e",
"color": "#6c6c7f",
"created_at": "2025-12-22T14:51:46.372-08:00",
"deleted_at": null,
"description": "Porro iste qui doloremque.",
"external_id": null,
"incidents_count": 0,
"name": "Earum impedit illum et.",
"notify_emails": [],
"position": 1,
"slack_aliases": [],
"slack_channels": [],
"slug": "earum-impedit-illum-et",
"team_id": 23,
"updated_at": "2025-12-22T14:51:46.372-08:00"
}
],
"environment_ids": [
"fc6efd74-e8d6-480f-ab45-a38b13affa8e"
],
"responders": [],
"incidents": [],
"data": {
"url": "https://asana.com/issues/1"
},
"deduplication_key": null,
"started_at": "2025-12-22T14:49:01.000-08:00",
"ended_at": "2025-12-22T14:51:01.000-08:00",
"external_id": null,
"external_url": null,
"url": "https://test.rootly.com/account/alerts/b794b454-dd13-47ba-bbcf-422e0f4de041",
"noise": "not_noise",
"group_leader_alert_id": null,
"is_group_leader_alert": false,
"notification_target_type": null,
"notification_target_id": null,
"alert_urgency": {
"id": "d7408ca1-4c5e-4783-844c-f41d408c5ef5",
"color": "#C73C40",
"created_at": "2025-12-22T14:51:46.379-08:00",
"deleted_at": null,
"description": "Velit aut porro expedita.",
"name": "n66t3",
"position": 1,
"team_id": 23,
"updated_at": "2025-12-22T14:51:46.383-08:00",
"urgency": "high"
},
"alert_urgency_id": "d7408ca1-4c5e-4783-844c-f41d408c5ef5",
"notified_users": [],
"created_at": "2025-12-22T14:51:48.457-08:00",
"updated_at": "2025-12-22T14:51:48.457-08:00"
},
"relationships": {
"events": {
"data": [
{
"id": "86acacd2-847c-4380-a8cb-70c08e9ea7fc",
"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": "b794b454-dd13-47ba-bbcf-422e0f4de041",
"type": "alerts",
"attributes": {
"short_id": null,
"source": "asana",
"status": "open",
"summary": "Asana ticket created",
"description": null,
"labels": [
{
"key": "status",
"value": "succeeded"
}
],
"services": [
{
"id": "394b2617-e5ba-4018-aeee-a91e601316ec",
"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": "2025-12-22T14:51:46.355-08:00",
"datadog_id": null,
"deleted_at": null,
"description": "Sint voluptatem itaque dignissimos.",
"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,
"kubernetes_deployment_name": null,
"name": "Minima nemo expedita quibusdam.",
"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": "minima-nemo-expedita-quibusdam",
"status": "operational",
"team_id": 23,
"updated_at": "2025-12-22T14:51:46.355-08:00"
}
],
"service_ids": [
"394b2617-e5ba-4018-aeee-a91e601316ec"
],
"groups": [],
"group_ids": [],
"environments": [
{
"id": "fc6efd74-e8d6-480f-ab45-a38b13affa8e",
"color": "#6c6c7f",
"created_at": "2025-12-22T14:51:46.372-08:00",
"deleted_at": null,
"description": "Porro iste qui doloremque.",
"external_id": null,
"incidents_count": 0,
"name": "Earum impedit illum et.",
"notify_emails": [],
"position": 1,
"slack_aliases": [],
"slack_channels": [],
"slug": "earum-impedit-illum-et",
"team_id": 23,
"updated_at": "2025-12-22T14:51:46.372-08:00"
}
],
"environment_ids": [
"fc6efd74-e8d6-480f-ab45-a38b13affa8e"
],
"responders": [],
"incidents": [],
"data": {
"url": "https://asana.com/issues/1"
},
"deduplication_key": null,
"started_at": "2025-12-22T14:49:01.000-08:00",
"ended_at": "2025-12-22T14:51:01.000-08:00",
"external_id": null,
"external_url": null,
"url": "https://test.rootly.com/account/alerts/b794b454-dd13-47ba-bbcf-422e0f4de041",
"noise": "not_noise",
"group_leader_alert_id": null,
"is_group_leader_alert": false,
"notification_target_type": null,
"notification_target_id": null,
"alert_urgency": {
"id": "d7408ca1-4c5e-4783-844c-f41d408c5ef5",
"color": "#C73C40",
"created_at": "2025-12-22T14:51:46.379-08:00",
"deleted_at": null,
"description": "Velit aut porro expedita.",
"name": "n66t3",
"position": 1,
"team_id": 23,
"updated_at": "2025-12-22T14:51:46.383-08:00",
"urgency": "high"
},
"alert_urgency_id": "d7408ca1-4c5e-4783-844c-f41d408c5ef5",
"notified_users": [],
"created_at": "2025-12-22T14:51:48.457-08:00",
"updated_at": "2025-12-22T14:51:48.457-08:00"
},
"relationships": {
"events": {
"data": [
{
"id": "86acacd2-847c-4380-a8cb-70c08e9ea7fc",
"type": "alert_events"
}
]
}
}
}
}