Skip to main content
GET
/
versions
Get versions
curl --request GET \
  --url https://api.galtea.ai/versions \
  --header 'Authorization: Bearer <token>'
[
  {
    "id": "ver_123",
    "productId": "prod_123",
    "userId": "user_123",
    "name": "1.0.0",
    "description": "Version description",
    "modelId": "model_123",
    "systemPrompt": "You are a helpful assistant",
    "datasetUri": "https://example.com/dataset.csv",
    "datasetDescription": "Training dataset",
    "guardrails": "Safety guidelines",
    "initializationEndpointConnectionId": "ec_123",
    "conversationEndpointConnectionId": "ec_123",
    "finalizationEndpointConnectionId": "ec_123",
    "createdAt": "2023-11-07T05:31:56Z",
    "deletedAt": "2023-11-07T05:31:56Z"
  }
]

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

Query Parameters

ids
string[]

Filter by version IDs

productIds
string[]

Filter by product IDs

conversationEndpointConnectionIds
string[]

Filter by conversation endpoint connection IDs (include only). Use an empty string ("") to select versions without a conversation endpoint connection

excludeConversationEndpointConnectionIds
string[]

Omit versions with the specified conversation endpoint connection IDs. Use an empty string ("") to omit versions without a conversation endpoint connection

names
string[]

Filter by version names (exact match, multiple)

name
string

Filter by version name (partial match)

existentInEvaluations
boolean

Filter versions that have evaluations

hasInferenceResults
boolean

Filter versions that have inference results

sort
string[]

Sort instructions (field and direction pairs)

limit
integer

Maximum number of results

offset
integer

Number of results to skip

fromCreatedAt
string<date-time>

Filter versions created at or after this timestamp (ISO 8601 format)

toCreatedAt
string<date-time>

Filter versions created at or before this timestamp (ISO 8601 format)

Response

Versions retrieved successfully

id
string
Example:

"ver_123"

productId
string
Example:

"prod_123"

userId
string | null
Example:

"user_123"

name
string
Example:

"1.0.0"

description
string | null
Example:

"Version description"

modelId
string | null
Example:

"model_123"

systemPrompt
string | null
Example:

"You are a helpful assistant"

datasetUri
string | null
Example:

"https://example.com/dataset.csv"

datasetDescription
string | null
Example:

"Training dataset"

guardrails
string | null
Example:

"Safety guidelines"

initializationEndpointConnectionId
string | null
Example:

"ec_123"

conversationEndpointConnectionId
string | null
Example:

"ec_123"

finalizationEndpointConnectionId
string | null
Example:

"ec_123"

createdAt
string<date-time>
deletedAt
string<date-time> | null