Skip to main content
GET
/
v2
/
environments
List Environments
curl --request GET \
  --url https://api.tusky.io/v2/environments
{
  "data": [
    {
      "id": "<string>",
      "name": "<string>",
      "encrypted": true,
      "createdAt": "<string>",
      "updatedAt": "<string>"
    }
  ],
  "nextCursor": "<string>",
  "hasMore": true
}
List all environments accessible to the authenticated user. Results are returned in reverse chronological order and paginated using cursor-based pagination.

Query Parameters

cursor
string
Opaque cursor from a previous response to fetch the next page of results.
limit
number
default:"20"
Number of environments to return per page. Minimum 1, maximum 100.

Response

data
array
Array of environment objects.
nextCursor
string
Cursor to pass as a query parameter to retrieve the next page. null if there are no more results.
hasMore
boolean
Whether there are more results beyond this page.

Example

curl "https://api.tusky.io/v2/environments?limit=10" \
  -H "Api-Key: YOUR_API_KEY"

Response

{
  "data": [
    {
      "id": "env_abc123def456",
      "name": "My First Environment",
      "encrypted": false,
      "createdAt": "2025-07-01T12:00:00.000Z",
      "updatedAt": "2025-07-01T12:00:00.000Z"
    },
    {
      "id": "env_ghi789jkl012",
      "name": "Encrypted Environment",
      "encrypted": true,
      "createdAt": "2025-06-15T08:30:00.000Z",
      "updatedAt": "2025-06-20T14:00:00.000Z"
    }
  ],
  "nextCursor": "eyJpZCI6InZhdWx0X2doaTc4OWprbDAxMiJ9",
  "hasMore": true
}