Environments
PreviewList environments
GET
cookie
better-auth.session_token<token>Better Auth session cookie. Production uses the __Secure- prefixed name.
limit?integerPage size. Defaults to 50, at most 200.
Range
1 <= value <= 200Default
50cursor?stringOpaque cursor from a previous page's nextCursor.
includeArchived?booleanInclude archived environments.
A page of environments, by order.
application/json- response
items*array<>nextCursor?stringcurl -X GET 'https://wardn.example.com/api/v1/environments'Example Response
{ "items": [ { "view": "full", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string", "description": "string", "class": "production", "order": 0, "selector": { "property1": "string", "property2": "string" }, "archived": true, "clusterCount": 0, "deploymentCount": 0, "pipelineCount": 0, "owners": [ "string" ], "ownerTeam": { "id": "string", "name": "string" }, "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z" } ], "nextCursor": "string"}