Skip to main content

Get an Environment

note

This endpoint can only be accessed using an Admin Key.

Get a specific environment by environmentId.

Endpoint
GET /v2/environments/:environmentId

Request

Path Params


environmentId string

The environmentId of the environment to get.


GET /v2/environments/:environmentId
curl "https://api.warrant.dev/v2/environments/staging" \
-H "Authorization: ApiKey YOUR_KEY"

Response

Body


environmentId string

Customer defined string identifier for this environment. Can only contain alphanumeric chars and/or '-'.


name string

Customer defined name for this environment.


200 OK
{
"environmentId": "staging",
"name": "Staging"
}