curl --request POST \
--url https://app.kapso.ai/api/v1/test_suites \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '{
"test_suite": {
"name": "New Test Suite",
"description": "Description of the new test suite",
"agent_id": "agent-123abc"
}
}'
{
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "Basic Functionality Tests",
"description": "Tests for basic agent functionality",
"agent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"test_cases": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "Greeting Test",
"description": "Tests the agent's greeting response",
"script": "Ask the agent to introduce itself",
"rubric": "The agent should respond with a polite introduction",
"test_suite_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
]
}
}
Creates a new test suite for an agent
curl --request POST \
--url https://app.kapso.ai/api/v1/test_suites \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '{
"test_suite": {
"name": "New Test Suite",
"description": "Description of the new test suite",
"agent_id": "agent-123abc"
}
}'
{
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "Basic Functionality Tests",
"description": "Tests for basic agent functionality",
"agent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"test_cases": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "Greeting Test",
"description": "Tests the agent's greeting response",
"script": "Ask the agent to introduce itself",
"rubric": "The agent should respond with a polite introduction",
"test_suite_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
]
}
}
API key required for all endpoints
Test suite created successfully
The response is of type object
.
Was this page helpful?