Skip to main content
POST
/
tests
/
generate-config
Generate test configuration from specifications
curl --request POST \
  --url https://api.galtea.ai/tests/generate-config \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "specificationIds": [
    "spec_123",
    "spec_456"
  ],
  "automaticCreation": false
}
'
{}

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
specificationIds
string[]
required

IDs of the specifications to generate test configs for

Example:
["spec_123", "spec_456"]
automaticCreation
boolean

When true, creates tests from generated config

Example:

false

Response

Test configuration generated successfully

Generated test configuration suggestion