Create Assistant

To create assistant using the Teloai API, you must authenticate each request with an API key. This key must be included in the headers of your HTTP request.

Create Assistant

post

Provision a new assistant resource.

Body
titlestringRequired
AssistantInstructionsstringRequired
firstSentencestringRequired
lastSentencestringRequired
voiceIdstringRequired
languagestringRequired
timezonestringOptional
Responses
201

Assistant created

application/json
post
/api/assistant
cURL
curl --location 'https://api.teloai.app/api/assistant' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer your-api-key' \
--data '{
  "title": "Assistant Title",
  "AssistantInstructions": "Assistant Instructions",
  "firstSentence": "First Sentence",
  "lastSentence": "Last Sentence",
  "voiceId": "Voice ID",
  "language": "Language",
  "timezone": "Timezone",
  "dynamicVars": [
    {
      "key": "value Key",
      "value": "Variable Value"
    }
  ]
}'
201

Assistant created

{
  "title": "text",
  "firstMessage": "text",
  "endCallMessage": "text",
  "AssistantInstructions": "text",
  "voiceId": "text",
  "language": "text",
  "dynamicVariables": [
    {
      "key": "text",
      "value": "text"
    }
  ],
  "timezone": "text"
}