---
title: "Get all environments"
method: GET
path: "/api/v2/environments"
tags: ["Hosting"]
---

# Get all environments

`GET /api/v2/environments`

## Request

- Base URL: `https://api.simplelocalize.io`
- URL: `https://api.simplelocalize.io/api/v2/environments`
- Auth: API key in header `X-SimpleLocalize-Token`
- TypeScript: <https://skmtc.dev/simplelocalize/apis/simplelocalize-api/docs/api/v2/environments/get.ts> (a function with typed inputs; its response is checked against the schema)

The endpoint is used for getting all environments in the project.
It returns a list of environments with their details, including the latest and production environments.

## Response `200`

OK

- object
  - `msg` string
  - `status` integer
  - `data` CdnEnvironmentApiDetails[]
    - `key` string
    - `name` string
    - `color` string
    - `type` 'DEFAULT' | 'CUSTOM'

## Other responses

- `400`: Bad Request
- `402`: Payment Required
- `403`: Forbidden
- `404`: Not Found
- `409`: Conflict
- `429`: Too Many Requests
- `500`: Internal Server Error

## Changes

- **2025-11-12** `0329534cd557`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/simplelocalize/apis/simplelocalize-api/changes/api/v2/environments/get.md)

---

[API](https://skmtc.dev/simplelocalize/apis/simplelocalize-api.md) - [All operations](https://skmtc.dev/simplelocalize/apis/simplelocalize-api/llms.txt) - [OpenAPI document](https://skmtc.dev/simplelocalize/apis/simplelocalize-api/revisions/67a25a25863a?raw)
