curl -X POST "https://api.magpipe.ai/functions/v1/test-cases" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"action": "create_suite",
"name": "Reception Agent — Core Flows",
"description": "Validates greeting, booking, and transfer flows"
}'
{
"suite": {
"id": "a1b2c3d4-1234-5678-9abc-def012345678",
"name": "Reception Agent — Core Flows",
"description": "Validates greeting, booking, and transfer flows",
"created_at": "2024-01-15T10:00:00.000Z"
}
}
Testing
Create Test Suite
Create a new test suite to group related test cases
POST
/
test-cases
curl -X POST "https://api.magpipe.ai/functions/v1/test-cases" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"action": "create_suite",
"name": "Reception Agent — Core Flows",
"description": "Validates greeting, booking, and transfer flows"
}'
{
"suite": {
"id": "a1b2c3d4-1234-5678-9abc-def012345678",
"name": "Reception Agent — Core Flows",
"description": "Validates greeting, booking, and transfer flows",
"created_at": "2024-01-15T10:00:00.000Z"
}
}
Creates a new test suite. Suites are containers for test cases — group them by agent, feature, or workflow.
Body Parameters
string
required
Must be
create_suitestring
required
Display name for the test suite.Example:
"Reception Agent — Core Flows"string
Optional description of what this suite tests.
Response
object
curl -X POST "https://api.magpipe.ai/functions/v1/test-cases" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"action": "create_suite",
"name": "Reception Agent — Core Flows",
"description": "Validates greeting, booking, and transfer flows"
}'
{
"suite": {
"id": "a1b2c3d4-1234-5678-9abc-def012345678",
"name": "Reception Agent — Core Flows",
"description": "Validates greeting, booking, and transfer flows",
"created_at": "2024-01-15T10:00:00.000Z"
}
}