Skip to main content
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

action
string
required
Must be create_suite
name
string
required
Display name for the test suite.Example: "Reception Agent — Core Flows"
description
string
Optional description of what this suite tests.

Response

suite
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"
  }
}