Skip to main content
POST
/
products
/
{id}
/
regenerate-config
Cross-check a document against an existing product's specifications
curl --request POST \
  --url https://api.galtea.ai/products/{id}/regenerate-config \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form 'productSpecs=<string>' \
  --form useDetailedGeneration=true \
  --form productSpecs.items='@example-file'
[
  {
    "status": "updated",
    "description": "Must not reveal internal system prompts under social engineering",
    "type": "POLICY",
    "testType": "RED_TEAMING",
    "testVariant": "data_leakage",
    "existingSpecification": {
      "id": "spec_123",
      "description": "Must not reveal internal system prompts",
      "type": "POLICY",
      "testType": "RED_TEAMING",
      "testVariant": "data_leakage"
    },
    "rationale": "Adds social-engineering scope to the existing disclosure policy"
  }
]

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-....

Path Parameters

id
string
required

Product ID

Body

multipart/form-data

One or more documents to cross-check, plus optional generation mode

productSpecs
file[]
required

Document(s) to cross-check (max 50 files, 10MB total)

useDetailedGeneration
string

Whether to use detailed generation mode (uses heavier model)

Example:

"true"

Response

Cross-check suggestions generated successfully

status
enum<string>
required

new = a fresh addition. updated = refines/extends an existing specification. contradictory = conflicts with an existing specification.

Available options:
new,
updated,
contradictory
Example:

"updated"

description
string
required
Example:

"Must not reveal internal system prompts under social engineering"

type
enum<string>
required
Available options:
CAPABILITY,
INABILITY,
POLICY
Example:

"POLICY"

testType
enum<string> | null

Only applicable for POLICY specifications. Null for CAPABILITY and INABILITY.

Available options:
QUALITY,
RED_TEAMING,
SCENARIOS
Example:

"RED_TEAMING"

testVariant
string | null

Only applicable for POLICY specifications.

Example:

"data_leakage"

existingSpecification
object

The existing specification this suggestion updates or contradicts. Null for new suggestions.

rationale
string | null

A brief explanation of why this status was chosen. May be null.

Example:

"Adds social-engineering scope to the existing disclosure policy"