Authentication
All endpoints require an API key withagents_config:read or agents_config:write scope.
Quick Test
Run a single ad-hoc test against an agent. Returns the response synchronously (may take 10-30 seconds).agents_config:write
Datasets
Datasets group related test cases for batch simulation runs.List Datasets
agents_config:read
Create Dataset
Scope:
agents_config:write
Get, Update, Delete Dataset
Test Cases
Each test case defines a question and the expected agent behavior.Expected Types
Create Test Case
agents_config:write
List Test Cases
agents_config:read
Bulk Create
Import from Conversation
Extract a test case from an existing conversation thread:agents_config:write
Personas
Personas simulate different user profiles during testing. They can override the agent, LLM temperature, available tools, and user attributes.Create Persona
Scope:
agents_config:write
List, Get, Update, Delete Personas
Simulation Runs
Start a Run
status: "pending".
Scope: agents_config:write
Poll Run Status
status is "completed" or "failed".
Scope:
agents_config:read
Get Run Details
Get Run Results
List Runs, Delete Run
MCP Tools
All simulation endpoints are available as MCP tools. Connect to the MCP server at/api/v1/mcp with an API key that has agents_config scopes.
Workflow: Run a Simulation via MCP
- Start the run: Call
start_simulation_runwithdataset_idandagent_id - Poll for completion: Call
get_simulation_run_statuswithrun_iduntilstatusis"completed"or"failed" - Get results: Call
get_simulation_run_resultswithrun_idto see individual test results
Available MCP Tools
Error Responses
Errors follow the standard API v1 format:Related
- Simulation Testing Overview - Testing concepts and UI guide
- MCP Integration - How to set up MCP clients
- Agents API - Agent management endpoints
