Environments from a project.
/v1/projects/{projectID}/environments
Last environments.
Environments before the given cursor.
Name matching environments.
curl -L \ --url 'https://cloud-api.calyptia.com/v1/projects/{projectID}/environments' \ --header 'Authorization: Bearer YOUR_SECRET_TOKEN'
[ { "id": "123e4567-e89b-12d3-a456-426614174000", "name": "development", "createdAt": "2025-03-12T03:44:41.641Z", "updatedAt": "2025-03-12T03:44:41.641Z" } ]
Create a environment to a given project.
curl -L \ --request POST \ --url 'https://cloud-api.calyptia.com/v1/projects/{projectID}/environments' \ --header 'Authorization: Bearer YOUR_SECRET_TOKEN' \ --header 'Content-Type: application/json' \ --data '{ "name": "text" }'
{ "id": "123e4567-e89b-12d3-a456-426614174000", "createdAt": "2025-03-12T03:44:41.641Z" }