Welcome

Welcome to AgentPhone!

Give your AI agents their own phone numbers to send SMS, receive calls, and have voice conversations — all through a simple API.

AgentPhone is an API platform that provisions phone numbers for AI agents. Attach numbers to agent personas, manage SMS conversations, place and receive voice calls, and get real-time webhook notifications — all with a few API calls.

Get Started

Core Concepts

Quick Start

1

Create an agent

Define your AI persona with a name and optional voice configuration.

$curl -X POST "https://api.agentphone.to/v1/agents" \
> -H "Authorization: Bearer YOUR_API_KEY" \
> -H "Content-Type: application/json" \
> -d '{"name": "Support Bot"}'
2

Provision a phone number

Get an SMS- and voice-enabled phone number.

$curl -X POST "https://api.agentphone.to/v1/numbers" \
> -H "Authorization: Bearer YOUR_API_KEY" \
> -H "Content-Type: application/json" \
> -d '{}'
3

Attach the number to your agent

Link the number so it can send and receive on behalf of the agent.

$curl -X POST "https://api.agentphone.to/v1/agents/{agent_id}/numbers" \
> -H "Authorization: Bearer YOUR_API_KEY" \
> -H "Content-Type: application/json" \
> -d '{"numberId": "NUMBER_ID"}'
4

Configure a webhook

Set up a URL to receive inbound message and call notifications.

$curl -X POST "https://api.agentphone.to/v1/webhooks" \
> -H "Authorization: Bearer YOUR_API_KEY" \
> -H "Content-Type: application/json" \
> -d '{"url": "https://your-server.com/webhook"}'
5

Start receiving messages and calls

Your agent is live! Inbound SMS and calls will be forwarded to your webhook.

Authentication

Include your API key as a Bearer token in every request:

Authorization: Bearer YOUR_API_KEY

Base URL

https://api.agentphone.to/v1

Resource Relationships

Need Help?