Skip to content
HelicarrierDevelopers

List environments

List environments visible to the caller within a project.

GET/api/projects/{projectSlug}/environmentsHTTPS
Request & response examples
Request exampleServer-side
curl --fail-with-body --request GET \
'https://app.helicarrier.xyz/api/projects/my-project/environments' \
-H "Authorization: Bearer $HELI_API_KEY"
Response example200
[
{
"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

projectSlugstringrequired

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.

idstring

Unique identifier of this resource.

projectIdstring

Project that owns the resource.

namestring

Human-readable resource name.

slugstring

URL-safe resource identifier.

isDefaultboolean

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