Test Cases
Create Test Case
Changed onCreates a simulation test case for the specified agent. Define the scenario using user persona, goals, and evaluation criteria. Returns the created test case, including its testCaseId for subsequent get, update, delete, and batch-run calls.
post/v1/test-cases
Request
- Base URLhttps://api.sigmamind.ai
- AuthAPI key in header X-API-Key
Request body
Example request
{
"label": "Angry Customer - Cancellation Flow",
"agentId": "agent_D5D0p7TUs66TTAEAx",
"mockData": [
{
"variableName": "customer_name",
"value": "John Doe"
},
{
"variableName": "account_status",
"value": "active"
}
],
"mockToolData": [
"mock_dpKjqjKnY3z6gABF"
],
"userPrompt": "You are an angry customer who wants to cancel their subscription.",
"attempt": 5,
"successCriteria": [
"Agent was able to successfully look up the order.",
"Agent was able to successfully close the call."
]
}Response
Created
Example response
{
"testCaseId": "tc_d17T6uReChpyfFeP",
"label": "Angry Customer - Cancellation Flow",
"agent": {
"name": "New AI Agent",
"agentId": "agent_D5D0p7TUs66TTAEAx",
"status": "Live"
},
"workspaceId": "org_V6eZ2zg8ziDx5pft",
"llmModel": "gpt-5.6-luna",
"mockData": [
{
"variableName": "customer_name",
"value": "John Doe"
},
{
"variableName": "account_status",
"value": "active"
}
],
"mockToolData": [
{
"toolAlias": "get_order",
"mockToolDataId": "mock_dpKjqjKnY3z6gABF",
"name": "Success - Empty List",
"statusCode": 200
}
],
"userPrompt": "You are an angry customer who wants to cancel your subscription.",
"attempt": 5,
"successCriteria": [
"Agent was able to successfully look up the order.",
"Agent was able to successfully close the call."
]
}Changes
- breaking
the
request property type changed fromstringtoarray - breaking
the
response's property type changed fromstringtoarrayfor status - warning
removed the request property
- breaking
- info
added the new optional request property
- info
added the optional property
to the response with the status
- info