Get a test version
curl --request GET \
--url https://app.egma.ai/v1/test-versions/{versionId} \
--header 'Authorization: Bearer <token>'{
"id": "<string>",
"testId": "<string>",
"suiteId": "<string>",
"testName": "<string>",
"version": 2,
"current": true,
"scenario": "<string>",
"expectedBehaviors": [
"<string>"
],
"personas": [
{
"id": "<string>",
"name": "<string>",
"archivedAt": "2023-11-07T05:31:56Z"
}
],
"mockTools": [
{
"tool": "<string>",
"answer": "<unknown>",
"error": "<unknown>"
}
],
"env": {
"retell_dynamic_variables": {},
"job_dispatch_metadata": {}
},
"createdAt": "2023-11-07T05:31:56Z"
}{
"error": "<string>",
"message": "<string>",
"details": {}
}{
"error": "<string>",
"message": "<string>",
"details": {}
}{
"error": "<string>",
"message": "<string>",
"details": {}
}{
"error": "<string>",
"message": "<string>",
"details": {}
}{
"error": "<string>",
"message": "<string>",
"details": {}
}{
"error": "<string>",
"message": "<string>",
"details": {}
}Tests
Get a test version
Read the frozen scenario, expected behaviors, persona selections, mocks, and context used by a simulation. Later test edits do not change this version.
GET
/
v1
/
test-versions
/
{versionId}
Get a test version
curl --request GET \
--url https://app.egma.ai/v1/test-versions/{versionId} \
--header 'Authorization: Bearer <token>'{
"id": "<string>",
"testId": "<string>",
"suiteId": "<string>",
"testName": "<string>",
"version": 2,
"current": true,
"scenario": "<string>",
"expectedBehaviors": [
"<string>"
],
"personas": [
{
"id": "<string>",
"name": "<string>",
"archivedAt": "2023-11-07T05:31:56Z"
}
],
"mockTools": [
{
"tool": "<string>",
"answer": "<unknown>",
"error": "<unknown>"
}
],
"env": {
"retell_dynamic_variables": {},
"job_dispatch_metadata": {}
},
"createdAt": "2023-11-07T05:31:56Z"
}{
"error": "<string>",
"message": "<string>",
"details": {}
}{
"error": "<string>",
"message": "<string>",
"details": {}
}{
"error": "<string>",
"message": "<string>",
"details": {}
}{
"error": "<string>",
"message": "<string>",
"details": {}
}{
"error": "<string>",
"message": "<string>",
"details": {}
}{
"error": "<string>",
"message": "<string>",
"details": {}
}Authorizations
bearerAuthsessionCookie
An Egma API key.
Path Parameters
Minimum string length:
1Query Parameters
Minimum string length:
1Response
The frozen test version.
Minimum string length:
1Minimum string length:
1Minimum string length:
1Required range:
x >= 1Show child attributes
Show child attributes
One named tool's fixed response for this test. Supply exactly one of answer or error. Tools without a mock run normally.
- Option 1
- Option 2
Show child attributes
Show child attributes
Show child attributes
Show child attributes