POST
/
v1
/
teams
curl --request POST \
  --url https://api.rootly.com/v1/teams \
  --header 'Authorization: Bearer REPLACE_BEARER_TOKEN' \
  --header 'content-type: application/vnd.api+json'
{
  "data": {
    "id": "79968041-109f-4f46-b276-7f0f0b2340ad",
    "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": [
        500,
        501
      ],
      "admin_ids": [],
      "incidents_count": 0,
      "alert_urgency_id": null,
      "alerts_email_enabled": true,
      "alerts_email_address": "group-a7eb031a37a51791221ac9f34536217a@test.email.rootly.io",
      "created_at": "2025-03-05T15:13:38.562-08:00",
      "updated_at": "2025-03-05T15:13:38.562-08:00"
    },
    "relationships": {
      "users": {
        "data": [
          {
            "id": "500",
            "type": "users"
          },
          {
            "id": "501",
            "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