Skip to main content
POST
/
evaluations
/
fromVersion
Evaluate a version
curl --request POST \
  --url https://api.galtea.ai/evaluations/fromVersion \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "versionId": "ver_123",
  "specificationIds": [
    "spec_123",
    "spec_456"
  ]
}
'
{
  "jobId": "<string>",
  "testCaseCount": 123,
  "message": "<string>",
  "specifications": [
    {
      "specificationId": "<string>",
      "testCount": 123,
      "metricCount": 123
    }
  ]
}

Authorizations

Authorization
string
header
required

API key authorization. Pass your API key in the Authorization header as a Bearer token. Both new (gsk_*) and legacy (gsk-) API keys are accepted, e.g. Authorization: Bearer gsk_... or Authorization: Bearer gsk-....

Body

application/json
versionId
string
required

The version ID to evaluate

Example:

"ver_123"

specificationIds
string[]

Optional list of specification IDs to evaluate. If omitted, all product specifications with linked metrics and tests are used.

Example:
["spec_123", "spec_456"]

Response

Evaluation job queued successfully

jobId
string
testCaseCount
integer
message
string
specifications
object[]

Summary of specifications that were evaluated