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).client_context uses the client context entries format. It is also accepted when creating or updating a test case, returned with test cases, and supported by JSON import. Omit it on update to keep the saved context, or send null to clear it. Dataset runs inject the saved context on every turn.
Response:
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
{"default_persona_id": "persona-uuid"}. This field is not accepted when creating a dataset.
Deleting a dataset removes all its test cases and runs.
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 and simulated 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
