List test runs
curl --request GET \
--url https://guidinghand.ai/v1/test_runs \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://guidinghand.ai/v1/test_runs', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://guidinghand.ai/v1/test_runs"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": [
{
"object": "test_run",
"test_run_id": "tr_Vb7sT2Lc0aQ3",
"name": "<string>",
"test_set_id": "<string>",
"agents": [
"default",
"support-v2"
],
"cold": true,
"procedure_id": "<string>",
"status": "queued",
"app_version": "1.0.28",
"agent_version": "draft",
"agent_versions": {
"billing": {
"version": 4,
"draft": false
}
},
"progress": {
"total": 123,
"queued": 123,
"running": 123,
"passed": 123,
"failed": 123,
"error": 123,
"cancelled": 123
},
"pass_rate": {
"default": 0.54,
"support-v2": 0.63
},
"grounded_rate": {},
"metadata": {
"customer_id": "cus_42"
},
"created_at": "2023-11-07T05:31:56Z",
"started_at": "2023-11-07T05:31:56Z",
"finished_at": "2023-11-07T05:31:56Z",
"variants": [
{
"id": "advisor@claude-sonnet-5-5",
"agent_id": "advisor",
"model": "claude-sonnet-5-5"
}
]
}
],
"has_more": true,
"next_cursor": "<string>",
"total_count": 123
}{
"error": {
"type": "invalid_request",
"message": "<string>",
"code": "<string>",
"test_case_ids": [
"<string>"
],
"decided_by": {
"type": "person",
"email": "<string>",
"key_id": "<string>"
},
"conversation_id": "<string>",
"agent_id": "<string>",
"approval_id": "<string>",
"question_id": "<string>"
}
}Test runs
List test runs
Newest first.
GET
/
v1
/
test_runs
List test runs
curl --request GET \
--url https://guidinghand.ai/v1/test_runs \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://guidinghand.ai/v1/test_runs', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://guidinghand.ai/v1/test_runs"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": [
{
"object": "test_run",
"test_run_id": "tr_Vb7sT2Lc0aQ3",
"name": "<string>",
"test_set_id": "<string>",
"agents": [
"default",
"support-v2"
],
"cold": true,
"procedure_id": "<string>",
"status": "queued",
"app_version": "1.0.28",
"agent_version": "draft",
"agent_versions": {
"billing": {
"version": 4,
"draft": false
}
},
"progress": {
"total": 123,
"queued": 123,
"running": 123,
"passed": 123,
"failed": 123,
"error": 123,
"cancelled": 123
},
"pass_rate": {
"default": 0.54,
"support-v2": 0.63
},
"grounded_rate": {},
"metadata": {
"customer_id": "cus_42"
},
"created_at": "2023-11-07T05:31:56Z",
"started_at": "2023-11-07T05:31:56Z",
"finished_at": "2023-11-07T05:31:56Z",
"variants": [
{
"id": "advisor@claude-sonnet-5-5",
"agent_id": "advisor",
"model": "claude-sonnet-5-5"
}
]
}
],
"has_more": true,
"next_cursor": "<string>",
"total_count": 123
}{
"error": {
"type": "invalid_request",
"message": "<string>",
"code": "<string>",
"test_case_ids": [
"<string>"
],
"decided_by": {
"type": "person",
"email": "<string>",
"key_id": "<string>"
},
"conversation_id": "<string>",
"agent_id": "<string>",
"approval_id": "<string>",
"question_id": "<string>"
}
}