Home โ€บAPI Hub โ€บAPI AI Agent Integration

๐Ÿค– Give Your AI Agent a Real Phone Number

Connect any AI voice agent or LLM to a real local phone number in 145 countries. Provision via API, route inbound calls to your AI system in real time via SIP or webhook.

Why AI Agents Need a Real Phone Number

๐Ÿ“ž Real Inbound Calls

AI agents built on Bland.ai, Vapi, Retell, or custom LLMs need a real dialable number. Without one, they can only work inside apps โ€” not on actual phone networks.

๐ŸŒ Local Presence in 145 Countries

Provision local numbers in any country via API. Your AI agent appears local to callers โ€” boosting answer rates and trust.

โšก Real-Time Call Routing

Incoming calls are delivered to your AI system instantly via SIP URI or webhook โ€” zero human involvement required.

๐Ÿ” Dynamic Forwarding

Change where calls route at any time via API โ€” reassign numbers between agents, update destinations, or release numbers programmatically.

How It Works โ€” Call Flow

๐Ÿ“ฑ Caller

Dials your local number

โ†’

๐Ÿ”ข PBXme Number

Virtual number in 145 countries

โ†’

๐Ÿ”€ SIP / Webhook

Real-time call delivery

โ†’

๐Ÿค– AI Agent

Bland.ai / Vapi / Retell / Custom LLM

โ†’

โœ… Response

Agent handles the call

3-Step Integration Guide

1

Provision a Virtual Number via API

Use the Login API to get your account_token, then call the Available DIDs endpoint to find a number in your target country. Use did/assign to add it to your account. This takes seconds and works fully programmatically โ€” no dashboard needed.

2

Point the Number to Your AI Agent

Use the did/forward API to route incoming calls to your AI agent’s SIP URI (e.g. agent@yourplatform.com) or to a PSTN number your platform provides. This can be updated at any time via API without releasing the number โ€” enabling dynamic agent assignment.

3

Your AI Agent Answers Live Calls

When someone dials your number, PBXme forwards the call to your configured SIP destination in real time. Your AI agent picks up, handles the conversation, and can push webhook events back to your system for logging, CRM updates, or follow-up actions.

Code Examples

import requests

BASE = "https://newsip.pbxme.com/api"
# Step 1: Authenticate
login = requests.post(f"{BASE}/login", data={
    "username": "YOUR_USERNAME",
    "password": "YOUR_PASSWORD"
})
token = login.json()["account_token"]

# Step 2: Find available numbers in the UK
available = requests.post(f"{BASE}/did/available", data={
    "token": token,
    "country": "GB"
})
dids = available.json()["dids"]
chosen = dids[0]

# Step 3: Assign the number to your account
assign = requests.post(f"{BASE}/did/assign", data={
    "token": token,
    "did_id": chosen["did_id"]
})

# Step 4: Route calls to your AI agent's SIP URI
AI_SIP_URI = "sip:agent@your-ai-platform.com"

forward = requests.post(f"{BASE}/did/forward", data={
    "token": token,
    "did_id":      chosen["did_id"],
    "destination": AI_SIP_URI,
    "type":        "sip"
})
print(f"โœ… {chosen['did_number']} now routes to your AI agent!")

Full API reference: pbxme.com/api/

Compatible AI Voice Agent Platforms

๐ŸŸฃ

Bland.ai

Connect via SIP trunk. Point your Bland.ai agent endpoint to your PBXme number.

๐Ÿ”ต

Vapi

Use PBXme SIP credentials in Vapi’s phone number settings for inbound call handling.

๐ŸŸข

Retell AI

Import your PBXme SIP trunk into Retell to assign numbers to your voice agents.

๐Ÿง 

Custom LLM

Route calls via SIP to any custom voice pipeline โ€” Whisper, GPT-4o, ElevenLabs, and more.

โš™๏ธ

Any SIP Platform

PBXme delivers calls via standard SIP โ€” compatible with any platform that accepts SIP trunking.

๐Ÿ”—

Webhook / PSTN

No SIP? Forward calls to a PSTN number or HTTP webhook your platform provides.

Frequently Asked Questions

Can I use PBXme to give my AI agent a phone number?
Yes. PBXme provides virtual phone numbers in 145+ countries that can be provisioned via API and routed to any AI voice agent platform via SIP or PSTN forwarding. Your agent receives live calls in real time.
Which AI voice platforms does PBXme work with?
PBXme works with any platform that accepts SIP trunking or PSTN call forwarding โ€” including Bland.ai, Vapi, Retell AI, Twilio Flex, and custom LLM pipelines built on Whisper, GPT-4o, or ElevenLabs.
How do I route calls from a PBXme number to my AI agent?
Use the PBXme REST API to set the forwarding destination on your number to your agent’s SIP URI (e.g. sip:agent@yourplatform.com) or PSTN number. This can be updated at any time without releasing the number.
Can I provision numbers programmatically at scale?
Yes. The PBXme API supports full programmatic number management โ€” search available numbers by country, assign, configure forwarding, and release numbers via REST API calls. No manual dashboard steps required.
What countries can I get AI agent phone numbers in?
PBXme offers local virtual numbers in 145+ countries. Your AI agent can have a local number in the US, UK, Germany, France, Israel, Australia, and 140+ more countries โ€” giving callers a local experience regardless of where your agent runs.
Is there a SIP trunk included?
Yes. Every PBXme account includes SIP trunk access at no extra cost. You can connect your AI platform directly via SIP credentials without any additional subscription.

Ready to Give Your AI Agent a Phone Number?

Instant number provisioning ยท 145 countries ยท Full REST API ยท SIP trunk included ยท No contracts

Get Started Free

    Sales, click to chat