POST
/
v1
/
convai
/
phone-numbers
/
create
from elevenlabs import ElevenLabs

client = ElevenLabs(
    api_key="YOUR_API_KEY",
)
client.conversational_ai.create_phone_number(
    phone_number="phone_number",
    label="label",
    sid="sid",
    token="token",
)
{
  "phone_number_id": "<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.

Body

application/json

Create Phone Request Information

Response

200
application/json

Successful Response

The response is of type object.