List Environments
GEThttps://cloud.agenta.ai/api/apps/:app_id/environments
Retrieve a list of environments for a given app ID.
Args: app_id (str): The ID of the app to retrieve environments for. stoken_session (SessionContainer, optional): The session container. Defaults to Depends(verify_session()).
Returns: List[EnvironmentOutput]: A list of environment objects.
Request
Path Parameters
app_id App Idrequired
Responses
- 200
- 422
Successful Response
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
name Name (string)required
app_id App Id (string)required
project_id Project Id (string)required
deployed_app_variant_id
object
required
deployed_variant_name
object
required
deployed_app_variant_revision_id
object
required
revision
object
required
organization_id
object
workspace_id
object
[
{
"name": "string",
"app_id": "string",
"project_id": "string",
"deployed_app_variant_id": "string",
"deployed_variant_name": "string",
"deployed_app_variant_revision_id": "string",
"revision": 0,
"organization_id": "string",
"workspace_id": "string"
}
]
Validation Error
- application/json
- Schema
- Example (from schema)
Schema
detail
object[]
{
"detail": [
{
"loc": [
"string",
0
],
"msg": "string",
"type": "string"
}
]
}
- curl
- python
- go
- nodejs
- ruby
- csharp
- php
- java
- powershell
- CURL
curl -L 'https://cloud.agenta.ai/api/apps/:app_id/environments' \
-H 'Accept: application/json' \
-H 'Authorization: <API_KEY_VALUE>'
ResponseClear