> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.agentphone.ai/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.agentphone.ai/_mcp/server.

# API Reference

> Explore the AgentPhone API with interactive examples and SDK snippets.

## Introduction

AgentPhone provides a REST API for provisioning phone numbers, managing AI agents, sending SMS, and placing voice calls. All endpoints return JSON and require Bearer token authentication.

## Base URL

```
https://api.agentphone.ai/v1
```

## Available SDKs

#### [TypeScript / JavaScript](https://www.npmjs.com/package/agentphone)

Install with npm install agentphone — works in Node.js 18+, Deno, Bun, and Cloudflare Workers.

#### [Python](https://pypi.org/project/agentphone/)

Install with pip install agentphone — supports both sync and async clients, Python 3.9+.

## Contribute

We welcome contributions to our SDKs. If you have suggestions or improvements, feel free to open a pull request on [GitHub](https://github.com/AgentPhone-AI).

If there are other languages you'd like us to support, let us know!