POST
/
environments
curl --request POST \
  --url https://api.schematichq.com/environments \
  --header 'Content-Type: application/json' \
  --header 'X-Schematic-Api-Key: <api-key>' \
  --data '{
  "environment_type": "development",
  "name": "<string>"
}'
{
  "data": {
    "api_keys": [
      {
        "created_at": "2023-11-07T05:31:56Z",
        "description": "<string>",
        "environment_id": "<string>",
        "id": "<string>",
        "last_used_at": "2023-11-07T05:31:56Z",
        "name": "<string>",
        "scopes": [
          "<string>"
        ],
        "updated_at": "2023-11-07T05:31:56Z"
      }
    ],
    "created_at": "2023-11-07T05:31:56Z",
    "environment_type": "<string>",
    "id": "<string>",
    "name": "<string>",
    "updated_at": "2023-11-07T05:31:56Z"
  },
  "params": {}
}

Authorizations

X-Schematic-Api-Key
string
headerrequired

Body

application/json
environment_type
enum<string>
required
Available options:
development,
staging,
production
name
string
required

Response

201 - application/json
data
object
required

The created resource

params
object
required

Input parameters