Toggle AI on/off for a phone number (superadmin)
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.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
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.