List Bases
GEThttps://cloud.agenta.ai/api/bases
Retrieve a list of bases filtered by app_id and base_name.
Args: request (Request): The incoming request. app_id (Optional[str], optional): The ID of the app to filter by. Defaults to None. base_name (Optional[str], optional): The name of the base to filter by. Defaults to None.
Returns: List[BaseOutput]: A list of BaseOutput objects representing the filtered bases.
Raises: HTTPException: If there was an error retrieving the bases.
Request
Query Parameters
app_id App Id
base_name Base Name
Responses
- 200
- 422
Successful Response
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
base_id Base Id (string)required
base_name Base Name (string)required
[
{
"base_id": "string",
"base_name": "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/bases' \
-H 'Accept: application/json' \
-H 'Authorization: <API_KEY_VALUE>'
ResponseClear