Creates a new service from provided data
curl --request POST \
--url https://api.rootly.com/v1/services \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/vnd.api+json' \
--data '
{
"data": {
"type": "services",
"attributes": {
"name": "<string>",
"description": "<string>",
"public_description": "<string>",
"notify_emails": [
"<string>"
],
"color": "<string>",
"position": 123,
"show_uptime": true,
"show_uptime_last_days": 60,
"backstage_id": "<string>",
"pagerduty_id": "<string>",
"external_id": "<string>",
"opsgenie_id": "<string>",
"opsgenie_team_id": "<string>",
"cortex_id": "<string>",
"service_now_ci_sys_id": "<string>",
"github_repository_name": "<string>",
"github_repository_branch": "<string>",
"gitlab_repository_name": "<string>",
"gitlab_repository_branch": "<string>",
"environment_ids": [
"<string>"
],
"service_ids": [
"<string>"
],
"owner_group_ids": [
"<string>"
],
"owner_user_ids": [
123
],
"kubernetes_deployment_name": "<string>",
"alerts_email_enabled": true,
"alert_urgency_id": "<string>",
"escalation_policy_id": "<string>",
"slack_channels": [
{
"id": "<string>",
"name": "<string>"
}
],
"slack_aliases": [
{
"id": "<string>",
"name": "<string>"
}
],
"alert_broadcast_enabled": true,
"alert_broadcast_channel": {
"id": "<string>",
"name": "<string>"
},
"incident_broadcast_enabled": true,
"incident_broadcast_channel": {
"id": "<string>",
"name": "<string>"
}
}
}
}
'{
"data": {
"id": "13de2d2e-ad9b-4386-8f45-44111de376fb",
"type": "services",
"attributes": {
"name": "elasticsearch-prod",
"slug": "elasticsearch-prod",
"description": "Elastisearch",
"public_description": "Public description",
"notify_emails": [
"[email protected]",
"[email protected]"
],
"color": "#FFF",
"status": "operational",
"position": 1,
"show_uptime": true,
"show_uptime_last_days": 60,
"slack_channels": [
{
"id": "C03MKDSEJE8",
"name": "elastisearch"
}
],
"slack_aliases": [
{
"id": "S03F7QUV7F1",
"name": "engineering"
}
],
"github_repository_name": "rootlyhq/my-github-service",
"github_repository_branch": "main",
"gitlab_repository_name": "rootlyhq/my-gitlab-service",
"gitlab_repository_branch": "main",
"kubernetes_deployment_name": null,
"opsgenie_id": "8743a1b2-11da-480e-8493-744660987bef",
"pagerduty_id": "PQ9K7I8",
"backstage_id": null,
"external_id": "d795fe69-acc2-4b30-92c9-3c25cbb92056",
"cortex_id": null,
"service_now_ci_sys_id": null,
"environment_ids": [
"eec2ecf0-b5b0-4b3a-abbe-28746eef8e33"
],
"service_ids": [
"a1af9cc2-17b8-4dff-9594-8b26c64bc2de"
],
"owner_group_ids": [
"f747eca6-7e41-43c9-b22f-c44229bb3e38"
],
"owners_group_ids": [
"f747eca6-7e41-43c9-b22f-c44229bb3e38"
],
"owner_user_ids": [
571
],
"owners_user_ids": [
571
],
"incidents_count": 0,
"alert_urgency_id": null,
"alerts_email_enabled": true,
"alerts_email_address": "[email protected]",
"alert_broadcast_enabled": true,
"alert_broadcast_channel": {
"id": "C789ALERT",
"name": "service-alerts"
},
"incident_broadcast_enabled": false,
"incident_broadcast_channel": {},
"created_at": "2025-12-24T09:28:18.703-08:00",
"updated_at": "2025-12-24T09:28:18.703-08:00",
"escalation_policy_id": "985ea81b-ef79-4345-8599-90fdb94cf27a"
}
}
}Was this page helpful?
curl --request POST \
--url https://api.rootly.com/v1/services \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/vnd.api+json' \
--data '
{
"data": {
"type": "services",
"attributes": {
"name": "<string>",
"description": "<string>",
"public_description": "<string>",
"notify_emails": [
"<string>"
],
"color": "<string>",
"position": 123,
"show_uptime": true,
"show_uptime_last_days": 60,
"backstage_id": "<string>",
"pagerduty_id": "<string>",
"external_id": "<string>",
"opsgenie_id": "<string>",
"opsgenie_team_id": "<string>",
"cortex_id": "<string>",
"service_now_ci_sys_id": "<string>",
"github_repository_name": "<string>",
"github_repository_branch": "<string>",
"gitlab_repository_name": "<string>",
"gitlab_repository_branch": "<string>",
"environment_ids": [
"<string>"
],
"service_ids": [
"<string>"
],
"owner_group_ids": [
"<string>"
],
"owner_user_ids": [
123
],
"kubernetes_deployment_name": "<string>",
"alerts_email_enabled": true,
"alert_urgency_id": "<string>",
"escalation_policy_id": "<string>",
"slack_channels": [
{
"id": "<string>",
"name": "<string>"
}
],
"slack_aliases": [
{
"id": "<string>",
"name": "<string>"
}
],
"alert_broadcast_enabled": true,
"alert_broadcast_channel": {
"id": "<string>",
"name": "<string>"
},
"incident_broadcast_enabled": true,
"incident_broadcast_channel": {
"id": "<string>",
"name": "<string>"
}
}
}
}
'{
"data": {
"id": "13de2d2e-ad9b-4386-8f45-44111de376fb",
"type": "services",
"attributes": {
"name": "elasticsearch-prod",
"slug": "elasticsearch-prod",
"description": "Elastisearch",
"public_description": "Public description",
"notify_emails": [
"[email protected]",
"[email protected]"
],
"color": "#FFF",
"status": "operational",
"position": 1,
"show_uptime": true,
"show_uptime_last_days": 60,
"slack_channels": [
{
"id": "C03MKDSEJE8",
"name": "elastisearch"
}
],
"slack_aliases": [
{
"id": "S03F7QUV7F1",
"name": "engineering"
}
],
"github_repository_name": "rootlyhq/my-github-service",
"github_repository_branch": "main",
"gitlab_repository_name": "rootlyhq/my-gitlab-service",
"gitlab_repository_branch": "main",
"kubernetes_deployment_name": null,
"opsgenie_id": "8743a1b2-11da-480e-8493-744660987bef",
"pagerduty_id": "PQ9K7I8",
"backstage_id": null,
"external_id": "d795fe69-acc2-4b30-92c9-3c25cbb92056",
"cortex_id": null,
"service_now_ci_sys_id": null,
"environment_ids": [
"eec2ecf0-b5b0-4b3a-abbe-28746eef8e33"
],
"service_ids": [
"a1af9cc2-17b8-4dff-9594-8b26c64bc2de"
],
"owner_group_ids": [
"f747eca6-7e41-43c9-b22f-c44229bb3e38"
],
"owners_group_ids": [
"f747eca6-7e41-43c9-b22f-c44229bb3e38"
],
"owner_user_ids": [
571
],
"owners_user_ids": [
571
],
"incidents_count": 0,
"alert_urgency_id": null,
"alerts_email_enabled": true,
"alerts_email_address": "[email protected]",
"alert_broadcast_enabled": true,
"alert_broadcast_channel": {
"id": "C789ALERT",
"name": "service-alerts"
},
"incident_broadcast_enabled": false,
"incident_broadcast_channel": {},
"created_at": "2025-12-24T09:28:18.703-08:00",
"updated_at": "2025-12-24T09:28:18.703-08:00",
"escalation_policy_id": "985ea81b-ef79-4345-8599-90fdb94cf27a"
}
}
}