Atomically enables or disables AI handling on a single user-owned phone number. When enabling: validates the number is assigned to the Sinch EST trunk, imports it into ElevenLabs (linking to the chosen agent), and assigns it to the Sinch EST trunk. When disabling: removes it from ElevenLabs and the trunk. Fails fast (without DB writes) if the selected agent isn’t synced to ElevenLabs or if provider-side operations error — preventing silent drift. Superadmin only.
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.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
User whose voicePhoneNumbers entry is being toggled.
Exact phone number string to match against voicePhoneNumbers.phoneNumber.
Prompt._id to link when enabling AI. Required to switch agents on an already-AI-enabled number.