Skip to content
Helicarrier Developers

List environments

List environments visible to the caller within a project.

GET /api/projects/{projectSlug}/environments HTTPS
Request & response examples
Request example Server-side
curl --fail-with-body --request GET \
'https://app.helicarrier.xyz/api/projects/my-project/environments' \
-H "Authorization: Bearer $HELI_API_KEY"
Response example 200
[
{
"id": "env_example",
"projectId": "prj_example",
"name": "Staging",
"slug": "staging",
"isDefault": false
}
]

Illustrative values · selected fields

Authorization

An account key with project access, or a project key for this project. Environment restrictions still apply.

Authorization: Bearer <key> Key setup ↗

Path parameters

projectSlug string required

Project slug.

Response 200

Returns environments visible to the caller. Use a returned slug to select an environment in a project read or creation request.

Examples show selected response fields with illustrative values. Your response can contain additional fields.

id string

Unique identifier of this resource.

projectId string

Project that owns the resource.

name string

Human-readable resource name.

slug string

URL-safe resource identifier.

isDefault boolean

Errors

401

The API key is missing, invalid, or revoked.

403

The caller or key scope does not permit this operation.

404

The resource does not exist or is not visible to this caller.

Error handling and safe retries
ALSO AVAILABLE VIA MCP

list_environments

Required MCP arguments: projectSlug. Send path, query, and body fields together as tool arguments.

Connect your agent ↗