Skip to main content
To route phone calls to a voice agent, you first import a phone number from your Twilio account into XUNA AI. Once imported, you can assign any agent to that number — the agent answers every inbound call automatically.
XUNA AI does not provision phone numbers. You must own the number in Twilio before importing it here.

List phone numbers

Return all phone numbers imported into your XUNA AI account.
Response fields:
string
The unique identifier for the imported phone number. Use this ID when assigning an agent or initiating batch calls.
string
The E.164-formatted phone number (e.g., +15551234567).
string
The human-readable label you assigned when importing the number.
string
The ID of the agent currently assigned to this number, if any.

Import a phone number

Connect a Twilio phone number to your XUNA AI account by providing your Twilio credentials. XUNA AI configures the number’s webhook automatically.
string
required
A descriptive name for this number in your XUNA AI dashboard.
string
required
The phone number in E.164 format (e.g., +15551234567).
string
required
Your Twilio Account SID. Found in the Twilio Console.
string
required
Your Twilio Auth Token. Found in the Twilio Console.
Your Twilio Auth Token is sensitive. Store it securely and never log it. XUNA AI stores it encrypted to configure your Twilio webhook.

Assign an agent to a phone number

Update an imported phone number to route inbound calls to a specific agent.
string
required
The ID of the phone number to update.
string
required
The ID of the agent that should handle inbound calls on this number.
You can reassign a phone number to a different agent at any time. The change takes effect immediately for new calls.
Once assigned, every inbound call to that number starts a conversation with the specified agent. To launch outbound calls, see Batch calls.