PATCH
/
v1
/
convai
/
phone-numbers
/
{phone_number_id}
from elevenlabs import ElevenLabs

client = ElevenLabs(
    api_key="YOUR_API_KEY",
)
client.conversational_ai.update_phone_number(
    phone_number_id="TeaqRRdTcIfIu2i7BYfT",
)
{
  "phone_number": "<string>",
  "provider": "twilio",
  "label": "<string>",
  "phone_number_id": "<string>",
  "assigned_agent": {
    "agent_id": "<string>",
    "agent_name": "<string>"
  }
}

Headers

xi-api-key
string

Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website.

Path Parameters

phone_number_id
string
required

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

Body

application/json

Patch Phone Request Information

Response

200
application/json

Successful Response

The response is of type object.