Creates a new team from provided data
curl --request POST \
--url https://api.rootly.com/v1/teams \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/vnd.api+json' \
--data '{
"data": {
"type": "groups",
"attributes": {
"name": "<string>",
"description": "<string>",
"notify_emails": [
"<string>"
],
"color": "<string>",
"position": 123,
"backstage_id": "<string>",
"external_id": "<string>",
"pagerduty_id": "<string>",
"pagerduty_service_id": "<string>",
"opsgenie_id": "<string>",
"opsgenie_team_id": "<string>",
"victor_ops_id": "<string>",
"pagertree_id": "<string>",
"cortex_id": "<string>",
"service_now_ci_sys_id": "<string>",
"user_ids": [
123
],
"admin_ids": [
123
],
"alerts_email_enabled": true,
"alert_urgency_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": "3c13c06f-a3f2-4574-895e-daeb98dade78",
"type": "groups",
"attributes": {
"slug": "infrastructure",
"name": "Infrastructure",
"description": "Everything infrastructure related",
"color": "#FFF",
"position": 1,
"notify_emails": [
"john@rootly.com",
"doe@rootly.com"
],
"slack_channels": [
{
"id": "C03MKDSEJE8",
"name": "infrastructure"
}
],
"slack_aliases": [
{
"id": "S03F7QUV7F1",
"name": "infrastructure"
}
],
"pagerduty_id": "PQ9K7I8",
"pagerduty_service_id": null,
"backstage_id": null,
"external_id": "d795fe69-acc2-4b30-92c9-3c25cbb92056",
"opsgenie_id": "8743a1b2-11da-480e-8493-744660987bef",
"victor_ops_id": "e877c558-12e2-44d2-8723-5c86f7473c54",
"pagertree_id": "daa8bcd6-bf4a-4716-976c-812832ae115e",
"cortex_id": null,
"service_now_ci_sys_id": null,
"user_ids": [
483,
484
],
"admin_ids": [],
"incidents_count": 0,
"alert_urgency_id": null,
"alerts_email_enabled": true,
"alerts_email_address": "group-d405182a24af8e6460924c1f4415c41b@test.email.rootly.com",
"alert_broadcast_enabled": true,
"alert_broadcast_channel": {
"id": "C123ALERT",
"name": "team-alerts"
},
"incident_broadcast_enabled": true,
"incident_broadcast_channel": {
"id": "C123INCIDENT",
"name": "team-incidents"
},
"created_at": "2025-08-18T10:39:02.409-07:00",
"updated_at": "2025-08-18T10:39:02.421-07:00"
},
"relationships": {
"users": {
"data": [
{
"id": "483",
"type": "users"
},
{
"id": "484",
"type": "users"
}
]
}
}
}
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
team created
The response is of type object
.
Was this page helpful?
curl --request POST \
--url https://api.rootly.com/v1/teams \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/vnd.api+json' \
--data '{
"data": {
"type": "groups",
"attributes": {
"name": "<string>",
"description": "<string>",
"notify_emails": [
"<string>"
],
"color": "<string>",
"position": 123,
"backstage_id": "<string>",
"external_id": "<string>",
"pagerduty_id": "<string>",
"pagerduty_service_id": "<string>",
"opsgenie_id": "<string>",
"opsgenie_team_id": "<string>",
"victor_ops_id": "<string>",
"pagertree_id": "<string>",
"cortex_id": "<string>",
"service_now_ci_sys_id": "<string>",
"user_ids": [
123
],
"admin_ids": [
123
],
"alerts_email_enabled": true,
"alert_urgency_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": "3c13c06f-a3f2-4574-895e-daeb98dade78",
"type": "groups",
"attributes": {
"slug": "infrastructure",
"name": "Infrastructure",
"description": "Everything infrastructure related",
"color": "#FFF",
"position": 1,
"notify_emails": [
"john@rootly.com",
"doe@rootly.com"
],
"slack_channels": [
{
"id": "C03MKDSEJE8",
"name": "infrastructure"
}
],
"slack_aliases": [
{
"id": "S03F7QUV7F1",
"name": "infrastructure"
}
],
"pagerduty_id": "PQ9K7I8",
"pagerduty_service_id": null,
"backstage_id": null,
"external_id": "d795fe69-acc2-4b30-92c9-3c25cbb92056",
"opsgenie_id": "8743a1b2-11da-480e-8493-744660987bef",
"victor_ops_id": "e877c558-12e2-44d2-8723-5c86f7473c54",
"pagertree_id": "daa8bcd6-bf4a-4716-976c-812832ae115e",
"cortex_id": null,
"service_now_ci_sys_id": null,
"user_ids": [
483,
484
],
"admin_ids": [],
"incidents_count": 0,
"alert_urgency_id": null,
"alerts_email_enabled": true,
"alerts_email_address": "group-d405182a24af8e6460924c1f4415c41b@test.email.rootly.com",
"alert_broadcast_enabled": true,
"alert_broadcast_channel": {
"id": "C123ALERT",
"name": "team-alerts"
},
"incident_broadcast_enabled": true,
"incident_broadcast_channel": {
"id": "C123INCIDENT",
"name": "team-incidents"
},
"created_at": "2025-08-18T10:39:02.409-07:00",
"updated_at": "2025-08-18T10:39:02.421-07:00"
},
"relationships": {
"users": {
"data": [
{
"id": "483",
"type": "users"
},
{
"id": "484",
"type": "users"
}
]
}
}
}
}