POST
/
assistants
Create Assistant
curl --request POST \
  --url https://api.callhq.ai/api/assistants \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "name": "Test Assistant",
  "voice": {
    "provider": "CallHQ",
    "voiceId": "Priya",
    "speed": 1
  },
  "transcriber": {
    "provider": "google",
    "model": "gemini-1.5-pro",
    "language": "Multilingual"
  },
  "model": {
    "provider": "google",
    "model": "gemini-1.5-pro",
    "temperature": 0.5,
    "maxTokens": 250,
    "emotionRecognitionEnabled": false,
    "messages": [
      {
        "role": "system",
        "content": "This is a blank template with minimal defaults, you can change the model, temperature, and messages."
      }
    ]
  },
  "firstMessage": "Hello.",
  "firstMessageMode": "assistant-speaks-first",
  "backgroundSound": "office",
  "silenceTimeoutSeconds": 10,
  "backgroundDenoisingEnabled": true,
  "firstMessageInterruptionsEnabled": false,
  "maxDurationSeconds": 3600
}'

Authorizations

x-api-key
string
header
required

Body

application/json

Response

201

Assistant created successfully