provider Agents Platform PATCH /v1/convai/phone-numbers/{phone_number_id}
@utdk/elevenlabs /v1/convai/phone-numbers/{phone_number_id}
Update Phone Number
Update assigned agent of a phone number
phone_number_id path required
The id of an agent. This is returned on agent creation.
string
xi-api-key header
Your API key. This is required by most endpoints to access our API programmatically. You can view your xi-api-key using the 'Profile' tab on the website.

Try it

Authentication
Configure credentials for ElevenLabs API Documentation
Gateway
The gateway proxies requests and injects credentials server-side. Configure credentials above, then enter your gateway URL.

Saved automatically to browser storage.

updatePhoneNumberRoute
PATCH/v1/convai/phone-numbers/{phone_number_id}
Update assigned agent of a phone number

Parameters

required

The id of an agent. This is returned on agent creation.

Input

Environment to use for resolving environment variables on calls to this number.

Agent branch to use for calls to this number.

Enter a gateway URL above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import elevenlabs from '@utdk/elevenlabs';

await elevenlabs.updatePhoneNumberRoute()