GET
/
v1
/
convai
/
agents
/
{agent_id}
/
link
from elevenlabs import ElevenLabs

client = ElevenLabs(
    api_key="YOUR_API_KEY",
)
client.conversational_ai.get_agent_link(
    agent_id="21m00Tcm4TlvDq8ikWAM",
)
{
  "agent_id": "<string>",
  "token": {
    "agent_id": "<string>",
    "conversation_token": "<string>",
    "expiration_time_unix_secs": 123,
    "purpose": "signed_url"
  }
}

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

agent_id
string
required

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

Response

200
application/json

Successful Response

The response is of type object.