Get Single Testset
GEThttps://cloud.agenta.ai/api/testsets/:testset_id
Fetch a specific testset in a MongoDB collection using its _id.
Args: testset_id (str): The _id of the testset to fetch.
Returns: The requested testset if found, else an HTTPException.
Request
Path Parameters
testset_id Testset Idrequired
Responses
- 200
- 422
Successful Response
- application/json
- Schema
Schema
any
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/testsets/:testset_id' \
-H 'Accept: application/json' \
-H 'Authorization: <API_KEY_VALUE>'
ResponseClear