POST
/
bots
/
twilio-config
curl --request POST \
  --url https://api.daily.co/v1/bots/twilio-config \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "bot_profile": "<string>",
  "services": {
    "llm": "<string>",
    "stt": "<string>",
    "tts": "<string>"
  },
  "config": [
    {
      "service": "vad",
      "options": [
        {
          "name": "<string>",
          "value": "<string>"
        }
      ]
    }
  ],
  "max_duration": 600,
  "rtvi_client_version": "<string>",
  "api_keys": {},
  "dialin_settings": {},
  "dialout_settings": [
    "<any>"
  ],
  "webhook_tools": {},
  "service_options": {},
  "room": {
    "geo": "<string>",
    "x_mesh_sfu": "<string>"
  }
}'

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
bot_profile
string
required

Profile name of the bot.

services
object
required

Services associated with the bot. See supported services for more the most up-to-date options.

config
object[]
required

Array of configurations for the services provided in the "services" section. The values should match a key provided in the "services" section. e.g. "llm", "tts", "stt" or a pre-defined service provided by they bot. e.g. `"vad". See Configurations for more information and see each service page from the Supported Services for available configuration options.

max_duration
number
default:600

Maximum duration for the bot's operation in seconds.

Required range: 60 <= x <= 86400
rtvi_client_version
string

The RTVIClient version number. This can be optionally provided to confirm that your client and server versions are compatible.

api_keys
object

Optional set of API keys for the bot use for the given services. The key values should match a service name provided in the "services" section. e.g. {"cartesia": YOUR_CARTESIA_API_KEY}. See BYO API keys for more information.

dialin_settings
object

Dial-in settings for the bot. See Dial-in for more information.

dialout_settings
any[]

Optional dial-out settings. See Dial-out for more information.

webhook_tools
object

Used to configure webhook handlers for LLM function calls. See Webhooks for more information.

service_options
object

Optional service options for the services provided in the "services" section. The keys should match a service name provided in the "services" section. Each service can have either a single options object or an array of options objects. e.g. {"openai_tts": {"sample_rate": 24000}} or {"some_service": [{"option1": "value1"}, {"option2": "value2"}]}. See Service Options for more information.

room
object

The Daily room name used for the call.

Response

200
_mintlify/placeholder

Successfully created Twilio configuration