106 lines
2.0 KiB
Markdown
106 lines
2.0 KiB
Markdown
[Skip to content](https://coolify.io/docs/api-reference/api/operations/get-environments#VPContent)
|
||
|
||
Return to top
|
||
|
||
List Environments[](https://coolify.io/docs/api-reference/api/operations/get-environments#list-environments)
|
||
|
||
==============================================================================================================
|
||
|
||
GET
|
||
|
||
/projects/{uuid}/environments
|
||
|
||
List all environments in a project.
|
||
|
||
Authorizations[](https://coolify.io/docs/api-reference/api/operations/get-environments#authorizations)
|
||
|
||
--------------------------------------------------------------------------------------------------------
|
||
|
||
bearerAuth
|
||
|
||
Go to `Keys & Tokens` / `API tokens` and create a new token. Use the token as the bearer token.
|
||
|
||
Type
|
||
|
||
HTTP (bearer)
|
||
|
||
Parameters[](https://coolify.io/docs/api-reference/api/operations/get-environments#parameters)
|
||
|
||
------------------------------------------------------------------------------------------------
|
||
|
||
### Path Parameters
|
||
|
||
uuid\*
|
||
|
||
Project UUID
|
||
|
||
Type
|
||
|
||
string
|
||
|
||
Required
|
||
|
||
Responses[](https://coolify.io/docs/api-reference/api/operations/get-environments#responses)
|
||
|
||
----------------------------------------------------------------------------------------------
|
||
|
||
200400401404422
|
||
|
||
List of environments
|
||
|
||
Content-Type
|
||
|
||
application/json
|
||
|
||
SchemaJSON
|
||
|
||
JSON
|
||
|
||
\[\
|
||
\
|
||
{\
|
||
\
|
||
"id": 0,\
|
||
\
|
||
"name": "string",\
|
||
\
|
||
"project\_id": 0,\
|
||
\
|
||
"created\_at": "string",\
|
||
\
|
||
"updated\_at": "string",\
|
||
\
|
||
"description": "string"\
|
||
\
|
||
}\
|
||
\
|
||
\]
|
||
|
||
GET
|
||
|
||
/projects/{uuid}/environments
|
||
|
||
Playground[](https://coolify.io/docs/api-reference/api/operations/get-environments#playground)
|
||
|
||
------------------------------------------------------------------------------------------------
|
||
|
||
Authorization
|
||
|
||
bearerAuth
|
||
|
||
Variables
|
||
|
||
Key
|
||
|
||
Value
|
||
|
||
uuid\*
|
||
|
||
Try it out
|
||
|
||
Samples[](https://coolify.io/docs/api-reference/api/operations/get-environments#samples)
|
||
|
||
------------------------------------------------------------------------------------------
|
||
|
||
Powered by [VitePress OpenAPI](https://github.com/enzonotario/vitepress-openapi)
|