POST
/
v1
/
environments
curl --request POST \
  --url https://api.rootly.com/v1/environments \
  --header 'Authorization: Bearer REPLACE_BEARER_TOKEN' \
  --header 'content-type: application/vnd.api+json'
{
  "data": {
    "id": "8c20e74a-a641-4d7a-8f1e-703937f5777b",
    "type": "environments",
    "attributes": {
      "slug": "us-east-1",
      "name": "us-east-1",
      "description": "East Coast Datacenter",
      "color": "#FFF",
      "position": 1,
      "notify_emails": [
        "hello@rootly.com",
        "world@rootly.com"
      ],
      "slack_channels": [
        {
          "id": "C03MKDSEJE8",
          "name": "elastisearch"
        }
      ],
      "slack_aliases": [
        {
          "id": "S03F7QUV7F1",
          "name": "leadership"
        }
      ],
      "created_at": "2025-03-11T19:09:26.258-07:00",
      "updated_at": "2025-03-11T19:09:26.258-07:00"
    }
  }
}

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
environment created
data
object
required