Skip to main content
POST
/
api
/
v1
/
vendors
/
{vendorId}
/
organizations
/
{organizationId}
/
llm-generation-strategies
Create LLM Generation Strategy
curl --request POST \
  --url https://app.deepslate.eu/api/v1/vendors/{vendorId}/organizations/{organizationId}/llm-generation-strategies \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "My Opal Strategy",
  "type": "phonebot-v2.1",
  "parameters": {
    "temperature": 0.2,
    "outputSampleRate": 44100,
    "voice": {
      "provider": "elevenlabs",
      "voiceId": "lcMyyd2HUfFzxdCaC4Ta",
      "modelId": "eleven_multilingual_v2",
      "speed": 1,
      "stability": 0.5,
      "similarityBoost": 0.75,
      "style": 0,
      "useSpeakerBoost": false
    },
    "vad": {
      "confidenceThreshold": 0.5,
      "minVolume": 0,
      "startDuration": 0.3,
      "stopDuration": 0.7,
      "backbufferDuration": 1
    }
  }
}
'
{
  "success": true,
  "timestamp": "2025-04-17T14:23:30Z",
  "message": "<string>",
  "data": {
    "id": "550e8400-e29b-41d4-a716-446655440000",
    "name": "My Opal Strategy",
    "type": "phonebot-v2.1",
    "parameters": {
      "temperature": 0.2,
      "outputSampleRate": 44100,
      "voice": {
        "provider": "elevenlabs",
        "voiceId": "lcMyyd2HUfFzxdCaC4Ta",
        "modelId": "eleven_multilingual_v2",
        "speed": 1,
        "stability": 0.5,
        "similarityBoost": 0.75,
        "style": 0,
        "useSpeakerBoost": false
      },
      "vad": {
        "confidenceThreshold": 0.5,
        "minVolume": 0,
        "startDuration": 0.3,
        "stopDuration": 0.7,
        "backbufferDuration": 1
      }
    },
    "organizationId": "f0e9d8c7-b6a5-4321-fedc-ba9876543210"
  },
  "traceId": "<string>"
}

Path Parameters

vendorId
string
required

ID of the Vendor (UUID)

organizationId
string
required

ID of the Organization (UUID)

Body

application/json

Strategy creation data

Request body for creating a new LLM Generation Strategy.

name
string
required

Name of the strategy.

Example:

"My Opal Strategy"

type
string
required

Type identifier of the strategy.

Example:

"phonebot-v2.1"

parameters
object
required

Type-specific configuration parameters for the strategy. Structure depends on the strategy type.

Example:
{
"temperature": 0.2,
"outputSampleRate": 44100,
"voice": {
"provider": "elevenlabs",
"voiceId": "lcMyyd2HUfFzxdCaC4Ta",
"modelId": "eleven_multilingual_v2",
"speed": 1,
"stability": 0.5,
"similarityBoost": 0.75,
"style": 0,
"useSpeakerBoost": false
},
"vad": {
"confidenceThreshold": 0.5,
"minVolume": 0,
"startDuration": 0.3,
"stopDuration": 0.7,
"backbufferDuration": 1
}
}

Response

Strategy successfully created

Standard API response wrapper

success
boolean
required

Indicates if the request was successful

Example:

true

timestamp
string<date-time>
required

Response timestamp in ISO-8601 format

Example:

"2025-04-17T14:23:30Z"

message
string

Human-readable message

data
object

Payload data object

traceId
string

Correlation or trace ID