POST
/
v1
/
teams
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>"
        }
      ]
    }
  }
}'
{
  "data": {
    "id": "93faff4e-df7f-45d7-99f0-6e74b54eb4f1",
    "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": [
        513,
        514
      ],
      "admin_ids": [],
      "incidents_count": 0,
      "alert_urgency_id": null,
      "alerts_email_enabled": true,
      "alerts_email_address": "group-cc5061febd8983a6c5f8eecc5f083106@test.email.rootly.io",
      "created_at": "2025-03-26T23:25:50.999-07:00",
      "updated_at": "2025-03-26T23:25:50.999-07:00"
    },
    "relationships": {
      "users": {
        "data": [
          {
            "id": "513",
            "type": "users"
          },
          {
            "id": "514",
            "type": "users"
          }
        ]
      }
    }
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/vnd.api+json
data
object
required

Response

201
application/vnd.api+json
team created
data
object
required