Skip to main content
GET
/
api
/
v2
/
environments
List Environments
curl --request GET \
  --url https://api.example.com/api/v2/environments \
  --header 'Content-Type: application/json' \
  --data '{}'
{
  "data": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "name": "<string>"
    }
  ],
  "pagination": {
    "page": 123,
    "page_size": 123,
    "has_next": true
  }
}

Query Parameters

page
integer
default:1
page_size
integer
default:30

Body

application/json

The body is of type EmptyRequest · object.

Response

200 - application/json

EnvironmentsListResponse(data: list[server.api_routes.environments_api_v2.EnvironmentInfo], pagination: server.api_routes.api_v2_common.PaginationInfo)

data
EnvironmentInfo · object[]
required
pagination
PaginationInfo · object
required