Fetch Evaluation Ids
GEThttps://cloud.agenta.ai/api/evaluations/by_resource
Fetches evaluation ids for a given resource type and id.
Arguments: app_id (str): The ID of the app for which to fetch evaluations. resource_type (str): The type of resource for which to fetch evaluations. resource_ids List[ObjectId]: The IDs of resource for which to fetch evaluations.
Raises: HTTPException: If the resource_type is invalid or access is denied.
Returns: List[str]: A list of evaluation ids.
Request
Query Parameters
app_id App Idrequired
resource_type Resource Typerequired
resource_ids string[]
Responses
- 200
- 422
Successful Response
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
string
[
"5eb7cf5a86d9755df3a6c593"
]
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/evaluations/by_resource' \
-H 'Accept: application/json' \
-H 'Authorization: <API_KEY_VALUE>'
ResponseClear