curl --request GET \
--url https://app2.freyavoice.ai/api/v2/simulations/{simulationId} \
--header 'Authorization: Bearer <token>'{
"success": true,
"data": {
"message": "<string>",
"result": {
"simulation": {
"id": "<string>",
"workspaceId": "<string>",
"agentId": "<string>",
"name": "<string>",
"status": "draft",
"settings": {
"maxConcurrentCalls": 10,
"maxCallDurationSeconds": 600,
"hangupOnTransfer": false
},
"createdAt": "<string>",
"updatedAt": "<string>",
"description": "<string>",
"metrics": {
"totalRuns": 0,
"passedRuns": 0,
"failedRuns": 0,
"averageLatencyMs": null,
"averageDurationSeconds": null,
"agentSpeakingPercent": null
},
"createdBy": "<string>",
"updatedBy": "<string>"
},
"personas": [
{
"id": "<string>",
"workspaceId": "<string>",
"name": "<string>",
"prompt": "<string>",
"successCriteria": "<string>",
"tags": [
"<string>"
],
"agentIds": [
"<string>"
],
"createdAt": "<string>",
"updatedAt": "<string>",
"createdBy": "<string>",
"updatedBy": "<string>"
}
],
"assertions": [
{
"id": "<string>",
"name": "<string>",
"prompt": "<string>",
"points": 123,
"createdAt": "<string>",
"updatedAt": "<string>"
}
],
"metrics": {
"totalRuns": 0,
"passedRuns": 0,
"failedRuns": 0,
"averageLatencyMs": null,
"averageDurationSeconds": null,
"agentSpeakingPercent": null
}
}
}
}Returns detailed simulation information including personas and assertions.
curl --request GET \
--url https://app2.freyavoice.ai/api/v2/simulations/{simulationId} \
--header 'Authorization: Bearer <token>'{
"success": true,
"data": {
"message": "<string>",
"result": {
"simulation": {
"id": "<string>",
"workspaceId": "<string>",
"agentId": "<string>",
"name": "<string>",
"status": "draft",
"settings": {
"maxConcurrentCalls": 10,
"maxCallDurationSeconds": 600,
"hangupOnTransfer": false
},
"createdAt": "<string>",
"updatedAt": "<string>",
"description": "<string>",
"metrics": {
"totalRuns": 0,
"passedRuns": 0,
"failedRuns": 0,
"averageLatencyMs": null,
"averageDurationSeconds": null,
"agentSpeakingPercent": null
},
"createdBy": "<string>",
"updatedBy": "<string>"
},
"personas": [
{
"id": "<string>",
"workspaceId": "<string>",
"name": "<string>",
"prompt": "<string>",
"successCriteria": "<string>",
"tags": [
"<string>"
],
"agentIds": [
"<string>"
],
"createdAt": "<string>",
"updatedAt": "<string>",
"createdBy": "<string>",
"updatedBy": "<string>"
}
],
"assertions": [
{
"id": "<string>",
"name": "<string>",
"prompt": "<string>",
"points": 123,
"createdAt": "<string>",
"updatedAt": "<string>"
}
],
"metrics": {
"totalRuns": 0,
"passedRuns": 0,
"failedRuns": 0,
"averageLatencyMs": null,
"averageDurationSeconds": null,
"agentSpeakingPercent": null
}
}
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.