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

# Phone

> Provision numbers on carrier-registered messaging, receive and send SMS. Numbers and texts are billed in credits.

> [!NOTE]
>
> **Available now:** numbers, inbound SMS, which is verified, stored and [wakes the number's agent](https://vetta.sh/docs/identity/inbound.md), and outbound SMS once the carrier approves the campaign. Every number and text is billed in credits (see [Pricing](#pricing)).

An identity can own a phone number for SMS. US messaging runs over **carrier-registered (A2P) messaging**, which requires a registered brand and campaign before outbound texts are allowed. Managed Agents handles the sequence; you choose a registration tier.

## Provisioning tiers

Numbers run under the deployment's one shared carrier registration: registering your own brand is **not available yet**. `legal_name` must be the legal name that registration was filed under; any other name is refused with `validation_failed` on `legal_name` before anything is bought. `tax_id` and `contact_phone` are checked for shape and then discarded — nothing is filed with them, and no passcode is sent. Buying a number needs a live company (an `sk_live_` key; a test company is refused with `validation_failed`) and its first 30 days in the balance (`insufficient_credits`, 402, otherwise).

> [tab] Sole proprietor
>
> ```bash CLI theme={"system"}
> naive identity phone provision --identity ava --tier sole_prop \
>   --legal-name "<registered legal name>" --contact-phone +15551234567
> ```

> [tab] Standard (business)
>
> ```bash CLI theme={"system"}
> naive identity phone provision --identity ava --tier standard \
>   --legal-name "<registered legal name>" --tax-id 12-3456789 --country US
> ```

The number answers `202` with `brand_status` showing where the shared registration stands; it receives SMS straight away.

## Inbound vs outbound

| Capability | Available |
| - | - |
| **Inbound SMS** | Immediately after the number is purchased. |
| **Outbound SMS** | Only once the messaging campaign is `approved`/`active`. |

> [!WARNING]
>
> Outbound texts before campaign approval are refused with a `compliance_pending` error. Inbound works right away, so an agent can start receiving before it can reply.

Campaign approval arrives asynchronously and unlocks outbound automatically — no re-provisioning needed.

## Pricing

Billed in credits at what the carrier network costs us, on the `phone` tier of your usage:

| What | Price |
| - | - |
| A US local number | \$1.15 (5,750 credits) per 30 days: the first period when you buy it, then every 30 days. A number whose period the balance cannot pay is released. |
| Received SMS | \$0.0114 (57 credits) per segment |
| Received picture message (MMS) | \$0.03 (150 credits) per message |
| Sent SMS | \$0.0129 (64.5 credits) per segment |

A segment is 160 plain characters (153 each when a text runs longer), or 70 characters (67 each) when the text has an
emoji or a character outside the basic SMS set. A released number is not refunded for the rest of its period.

## Sending and receiving

```bash CLI theme={"system"}
naive identity phone send --identity ava --phone pho_... --to +14155550142 --text "Your order shipped."
naive identity phone list --identity ava
```

Every send (the API, CLI and SDK send, and the agent's `phone.send` tool) is billed per segment once the ownership and `compliance_pending` checks pass; a balance below the price is refused `insufficient_credits` before the text goes out. Inbound texts wake the number's owning agent (`owning_agent_id`, set at provision or with `update`), the same way inbound [email](https://vetta.sh/docs/identity/email.md) does — see [Inbound events](https://vetta.sh/docs/identity/inbound.md).

## From an agent

A session whose identity owns a number is offered `phone.numbers` and `phone.read`. `phone.send` is offered when outbound messaging is configured, asks a person by default, and is refused with `compliance_pending` until the campaign is `approved`. Like `POST /v1/identities/{id}/phones/{pid}/send`, each send is then billed per segment (above). The SDK is [Phones](https://vetta.sh/docs/sdk/phones.md); the CLI is [Phone](https://vetta.sh/docs/cli/phone.md).

> [card] [Next: connections](https://vetta.sh/docs/identity/connections.md)
>
> Act through third-party OAuth apps.


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