Import assistants from external provider
POST/ai/assistants/import
Import assistants from external providers. Any assistant that has already been imported will be overwritten with its latest version from the importing provider.
Request
- application/json
Body
required
provider stringrequired
Possible values: [elevenlabs
, vapi
]
The external provider to import assistants from.
api_key_ref stringrequired
Integration secret pointer that refers to the API key for the external provider. This should be an identifier for an integration secret created via /v2/integration_secrets.
Responses
200: Successful Response
- application/json
422: Validation Error
- application/json
Request samples
curl -L 'https://api.telnyx.com/v2/ai/assistants/import' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
-d '{
"provider": "elevenlabs",
"api_key_ref": "string"
}'
Response samples
{
"data": [
{
"id": "string",
"name": "string",
"created_at": "2024-07-29T15:51:28.071Z",
"description": "string",
"model": "string",
"instructions": "string",
"tools": [
{},
{},
{},
{},
{},
{},
{}
],
"greeting": "string",
"llm_api_key_ref": "string",
"voice_settings": {
"voice": "string",
"voice_speed": 1,
"api_key_ref": "string"
},
"transcription": {
"model": "string",
"language": "string"
},
"telephony_settings": {
"default_texml_app_id": "string"
},
"messaging_settings": {
"default_messaging_profile_id": "string",
"delivery_status_webhook_url": "string"
},
"enabled_features": [
"telephony"
],
"insight_settings": {
"insight_group_id": "string"
},
"privacy_settings": {
"data_retention": true
},
"dynamic_variables_webhook_url": "string",
"dynamic_variables": {},
"import_metadata": {
"import_provider": "elevenlabs",
"import_id": "string"
}
}
]
}
{
"detail": [
{
"loc": [
"string",
0
],
"msg": "string",
"type": "string"
}
]
}