Skip to main content
POST
Create version

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

otelOutputSourceRule
object | null

Recover a turn's user-visible output for templated or non-LLM replies whose final answer lives on a non-LLM span. Set per product or version (version wins). Applied only when no LLM output is present.

Example:
initializationEndpointConnectionId
string | null
Example:

"ec_123"

conversationEndpointConnectionId
string | null
Example:

"ec_123"

finalizationEndpointConnectionId
string | null
Example:

"ec_123"

phoneConnectionId
string | null

The version's phone connection (telephony conversation target). At most one conversation target may be set across conversationEndpointConnectionId, phoneConnectionId, and webRtcConnectionId.

Example:

"phoneConnection_123"

webRtcConnectionId
string | null

The version's WebRTC connection (live two-way audio conversation target). At most one conversation target may be set across conversationEndpointConnectionId, phoneConnectionId, and webRtcConnectionId.

Example:

"webRtcConnection_123"

parentVersionId
string | null

Id of the version this one was revised from (its direct parent in the revision lineage). On create, providing this value records the parent edge; the parent must belong to the same product. Omit or null to create a root version with no parent. On responses, this is the recorded parent edge (null for roots).

Example:

"ver_122"

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

Response

Version created 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"

otelOutputSourceRule
object | null

Recover a turn's user-visible output for templated or non-LLM replies whose final answer lives on a non-LLM span. Set per product or version (version wins). Applied only when no LLM output is present.

Example:
initializationEndpointConnectionId
string | null
Example:

"ec_123"

conversationEndpointConnectionId
string | null
Example:

"ec_123"

finalizationEndpointConnectionId
string | null
Example:

"ec_123"

phoneConnectionId
string | null

The version's phone connection (telephony conversation target). At most one conversation target may be set across conversationEndpointConnectionId, phoneConnectionId, and webRtcConnectionId.

Example:

"phoneConnection_123"

webRtcConnectionId
string | null

The version's WebRTC connection (live two-way audio conversation target). At most one conversation target may be set across conversationEndpointConnectionId, phoneConnectionId, and webRtcConnectionId.

Example:

"webRtcConnection_123"

parentVersionId
string | null

Id of the version this one was revised from (its direct parent in the revision lineage). On create, providing this value records the parent edge; the parent must belong to the same product. Omit or null to create a root version with no parent. On responses, this is the recorded parent edge (null for roots).

Example:

"ver_122"

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