Skip to main content
GET
/
environments
/
{org}
List environments
curl --request GET \
  --url https://app.kosli.com/api/v2/environments/{org} \
  --header 'Authorization: Bearer <token>'
{
  "page": 123,
  "per_page": 123,
  "total_pages": 123,
  "total_count": 123,
  "environments": [
    {
      "org": "<string>",
      "name": "<string>",
      "type": "<string>",
      "description": "<string>",
      "last_modified_at": 123,
      "include_scaling": true,
      "tags": {},
      "last_reported_at": 123,
      "last_changed_at": 123,
      "state": true,
      "policies": [
        "<string>"
      ],
      "included_environments": [
        "<string>"
      ]
    }
  ],
  "_links": {}
}

Documentation Index

Fetch the complete documentation index at: https://kosli-fix-broken-links.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

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

Path Parameters

org
string
required

Query Parameters

page
integer | null

Page number

Required range: x >= 1
per_page
integer | null

Number of environments per page

Required range: 1 <= x <= 50
sort
enum<string>
default:name

Sort field

Available options:
name,
last_modified_at,
last_changed_at
sort_direction
enum<string>
default:asc

Sort direction

Available options:
asc,
desc
space_id
string[] | null

Filter by space ID. Can be repeated for OR semantics, e.g. space_id=a&space_id=b

name
string | null

Filter by name (case-insensitive substring match)

type
enum<string>[] | null

Filter by environment type. Can be repeated, e.g. type=K8S&type=ECS

Available options:
K8S,
ECS,
S3,
lambda,
server,
docker,
azure-apps,
cloud-run,
logical
tag
string[] | null

Filter by tag key or key:value. Can be repeated, e.g. tag=team or tag=team:platform

Response

200 - application/json

Successful Response

page
integer
required
per_page
integer
required
total_pages
integer
required
total_count
integer
required
environments
GetEnvironmentResponse · object[]
required
Last modified on May 20, 2026