Skip to main content
POST
/
api
/
calls
/
voice-ai
/
phone-number
/
toggle
Toggle AI on/off for a phone number (superadmin)
curl --request POST \
  --url https://your-instance.example.com/api/calls/voice-ai/phone-number/toggle \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "userId": "64f0a1b2c3d4e5f6a7b8c9d4",
  "phoneNumber": "+14165550100",
  "aiEnabled": true,
  "aiAgentId": "64f0a1b2c3d4e5f6a7b8cc00"
}
'
{
  "success": true,
  "message": "Configuration saved"
}

Documentation Index

Fetch the complete documentation index at: https://docs.tetherai.ca/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

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

Body

application/json
userId
string
required

User whose voicePhoneNumbers entry is being toggled.

phoneNumber
string
required

Exact phone number string to match against voicePhoneNumbers.phoneNumber.

aiEnabled
boolean
required
aiAgentId
string

Prompt._id to link when enabling AI. Required to switch agents on an already-AI-enabled number.

Response

Toggle applied

success
enum<boolean>
required
Available options:
true
message
string