> ## Documentation Index
> Fetch the complete documentation index at: https://docs.webrouter.net/llms.txt
> Use this file to discover all available pages before exploring further.

# AgentPhone

> Phone numbers for AI agents: SMS/iMessage/WhatsApp messages, conversations, voice calls with transcripts, and usage.

![](https://mintcdn.com/webrouter/Wx0iBZkUGX_VAFTN/logo/data-apis/agentphone.webp?fit=max\&auto=format\&n=Wx0iBZkUGX_VAFTN\&q=85\&s=f89a2083854f0273d19e34aca26bbdbf)

[Web Catalog · Messaging](https://docs.webrouter.net/data-apis.md?category=messaging)

Needs&#x20;

`AGENTPHONE_API_KEY`

Endpoints

8

Auth

Key in header

[Vendor docs](https://docs.agentphone.to/api-reference.md)

## Setup

| Variable | | What it is |
| - | - | - |
| `AGENTPHONE_API_KEY` | required | An AgentPhone API key (see the Authentication page). Sent as a Bearer token. |

Put them in your environment or `.env`; [Data APIs](https://docs.webrouter.net/vendors.md) covers the other ways.

## Notes

* Every path is under /v1. Lists of numbers, agents, conversations and calls page by limit (max 100, default 20) and offset (max 10000).
* Message lists page by cursor: pass the previous response's nextCursor as cursor; it wins over before/after.
* Field names are camelCase on most endpoints, but Send Message takes snake\_case (agent\_id, to\_number).
* Every endpoint accepts an optional X-Sub-Account-Id header to act on a sub-account.

## Endpoints

GET

List phone numbers

Active numbers held by the account; released numbers are left out.

[Open](#agentphone-numbers-list)

GET

Get messages for a number

Messages sent and received on one number, newest first.

[Open](#agentphone-numbers-messages)

GET

List conversations

Conversations of the account, most recent activity first.

[Open](#agentphone-conversations-list)

GET

Get a conversation's messages

Messages in one conversation; each page is oldest-first.

[Open](#agentphone-conversations-messages)

GET

List calls

Calls of the account, filterable by status, direction, type and number.

[Open](#agentphone-calls-list)

GET

Get a call

One call with its transcripts.

[Open](#agentphone-calls-get)

GET

Get a call transcript

The complete ordered transcript: each caller utterance with the agent's response.

[Open](#agentphone-calls-transcript)

GET

Get account usage

Number limits used and remaining, message, call and webhook delivery counts.

[Open](#agentphone-usage-get)

### List phone numbers

GET

`/v1/numbers`

`agentphone.numbers.list`

Active numbers held by the account; released numbers are left out.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `limit`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Max 100, default 20.
      </td>
    </tr>

    <tr>
      <td>
        `offset`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        0 to 10000.
      </td>
    </tr>

    <tr>
      <td>
        `externalId`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Only the number tagged with this externalId.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://docs.agentphone.to/api-reference/numbers/list-numbers-v-1-numbers-get.md)

```python Python theme={null}
router.call_data_api("agentphone.numbers.list")
```

```text MCP theme={null}
call_data_api(endpoint="agentphone.numbers.list")
```

### Get messages for a number

GET

`/v1/numbers/{number_id}/messages`

`agentphone.numbers.messages`

Messages sent and received on one number, newest first.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `number_id`

        required
      </td>

      <td>
        string
      </td>

      <td>
        path
      </td>

      <td>
        The number id.
      </td>
    </tr>

    <tr>
      <td>
        `limit`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        1 to 200, default 50.
      </td>
    </tr>

    <tr>
      <td>
        `before`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Only messages before this date-time.
      </td>
    </tr>

    <tr>
      <td>
        `after`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Only messages after this date-time.
      </td>
    </tr>

    <tr>
      <td>
        `cursor`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        nextCursor from the previous page.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://docs.agentphone.to/api-reference/numbers/get-messages-v-1-numbers-number-id-messages-get.md) · Same job: [AgentMail](https://docs.webrouter.net/data-apis/agentmail.md#agentmail-messages-list), [Resend](https://docs.webrouter.net/data-apis/resend.md#resend-emails-received-list), [Saperly](https://docs.webrouter.net/data-apis/saperly.md#saperly-messages-list), [Slack](https://docs.webrouter.net/data-apis/slack.md#slack-conversations-history), [Sprout Social](https://docs.webrouter.net/data-apis/sprout-social.md#sprout-social-messages-list), [Twilio](https://docs.webrouter.net/data-apis/twilio.md#twilio-messages-list)

### List conversations

GET

`/v1/conversations`

`agentphone.conversations.list`

Conversations of the account, most recent activity first.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `limit`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Max 100, default 20.
      </td>
    </tr>

    <tr>
      <td>
        `offset`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        0 to 10000.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://docs.agentphone.to/api-reference/conversations/list-conversations-v-1-conversations-get.md) · Same job: [AgentMail](https://docs.webrouter.net/data-apis/agentmail.md#agentmail-inboxes-list), [Slack](https://docs.webrouter.net/data-apis/slack.md#slack-conversations-list)

```python Python theme={null}
router.call_data_api("agentphone.conversations.list")
```

```text MCP theme={null}
call_data_api(endpoint="agentphone.conversations.list")
```

### Get a conversation's messages

GET

`/v1/conversations/{conversation_id}/messages`

`agentphone.conversations.messages`

Messages in one conversation; each page is oldest-first.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `conversation_id`

        required
      </td>

      <td>
        string
      </td>

      <td>
        path
      </td>

      <td>
        The conversation id.
      </td>
    </tr>

    <tr>
      <td>
        `limit`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        1 to 200, default 50.
      </td>
    </tr>

    <tr>
      <td>
        `before`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Only messages before this date-time.
      </td>
    </tr>

    <tr>
      <td>
        `after`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Only messages after this date-time.
      </td>
    </tr>

    <tr>
      <td>
        `cursor`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        nextCursor from the previous page; walks to older history.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://docs.agentphone.to/api-reference/conversations/get-conversation-messages-v-1-conversations-conversation-id-messages-get.md) · Same job: [AgentMail](https://docs.webrouter.net/data-apis/agentmail.md#agentmail-threads-get), [Slack](https://docs.webrouter.net/data-apis/slack.md#slack-conversations-replies)

### List calls

GET

`/v1/calls`

`agentphone.calls.list`

Calls of the account, filterable by status, direction, type and number.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `limit`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Max 100, default 20.
      </td>
    </tr>

    <tr>
      <td>
        `offset`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        0 to 10000.
      </td>
    </tr>

    <tr>
      <td>
        `status`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        completed, in-progress or failed.
      </td>
    </tr>

    <tr>
      <td>
        `direction`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        inbound or outbound.
      </td>
    </tr>

    <tr>
      <td>
        `type`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        pstn or web.
      </td>
    </tr>

    <tr>
      <td>
        `search`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Substring of fromNumber or toNumber.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://docs.agentphone.to/api-reference/calls/list-calls-v-1-calls-get.md)

```python Python theme={null}
router.call_data_api("agentphone.calls.list")
```

```text MCP theme={null}
call_data_api(endpoint="agentphone.calls.list")
```

### Get a call

GET

`/v1/calls/{call_id}`

`agentphone.calls.get`

One call with its transcripts.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `call_id`

        required
      </td>

      <td>
        string
      </td>

      <td>
        path
      </td>

      <td>
        The call id.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://docs.agentphone.to/api-reference/calls/get-call-v-1-calls-call-id-get.md)

### Get a call transcript

GET

`/v1/calls/{call_id}/transcript`

`agentphone.calls.transcript`

The complete ordered transcript: each caller utterance with the agent's response.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `call_id`

        required
      </td>

      <td>
        string
      </td>

      <td>
        path
      </td>

      <td>
        The call id.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://docs.agentphone.to/api-reference/calls/get-call-transcript-v-1-calls-call-id-transcript-get.md)

### Get account usage

GET

`/v1/usage`

`agentphone.usage.get`

Number limits used and remaining, message, call and webhook delivery counts.

Input

No inputs.

[Vendor docs](https://docs.agentphone.to/api-reference/usage/get-usage-v-1-usage-get.md)

```python Python theme={null}
router.call_data_api("agentphone.usage.get")
```

```text MCP theme={null}
call_data_api(endpoint="agentphone.usage.get")
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.