POST
/
environments
/
create
Create Environment
curl --request POST \
  --url https://us-east.metoro.io/api/v1/environments/create \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "environment": {
    "name": "my-environment"
  }
}'
{
  "token": "eyJ...",
  "name": "my-environment"
}

Authorizations

Authorization
string
header
required

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

Body

application/json

Environment to create

Request to create a new environment

environment
object
required

Environment object

Example:
{ "name": "my-environment" }

Response

Environment created successfully

Response for creating a new environment

name
string
required

Name of the environment that was created

token
string
required

Token to send allow sending of data to Metoro