# AgentLine Phone Number Provisioning

> AgentLine Phone Number Provisioning is a paid API for AI agents from api.agentline.cloud, paid per call via x402, $2/call, status unknown (last checked 2026-09-13).

Provisions a real US phone number for an AI voice agent with configurable TTS voice, greeting, system prompt, and call-transfer settings.

## Facts

- Endpoint: POST https://api.agentline.cloud/v1/x402/numbers/buy
- Price: $2/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentline-phone-number-provisioning-b3e72190
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_J0jSwSxazdKSuggSCkJk4

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability agentline-phone-number-provisioning-b3e72190 -d '<json body>'
```

Example prompt: Get my customer support voice agent a local US phone number in the 415 area code — name it 'SupportBot', use the female-1 voice, and have it greet callers with 'Hi, thanks for calling, how can I help you today?' with a fallback transfer to +14155550100.

## When to prefer this

Use this endpoint when an AI agent needs a dedicated real US telephone number with configurable voice persona, inbound/outbound call support, SMS capability, and voicemail — especially when no telecom expertise is available and rapid provisioning (under 10 minutes) is required. Prefer this over Twilio or other raw telecom APIs when you want an agent-native setup with built-in TTS voice presets and system prompt configuration in a single API call paid via USDC.

## Known failure modes

- Unsupported country code (only US is supported) returns a validation error
- Invalid or unavailable area code results in provisioning failure
- Malformed E.164 phone number for owner_phone or transfer_number causes rejection
- Payment of $2 USDC not completed causes 402 Payment Required response
- Invalid voice_id preset or Cartesia UUID returns an error
- System prompt or greeting exceeds character limits

## How this service works

Get a real phone number for your AI agent in under 10 minutes. Works with OpenClaw, Hermes Agent, and any LLM. Outbound calls, SMS, and inbound voice — one API. No telecom experience needed.

## Output

Returns a provisioned US phone number along with configuration details for the deployed voice agent, including the assigned number, agent name, voice preset, and any configured behaviors such as greeting, system prompt, and transfer routing.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "country": {
   "type": "string",
   "description": "Country code (only 'US' supported)"
  },
  "voice_id": {
   "type": "string",
   "description": "TTS voice preset (e.g. 'female-1') or Cartesia UUID"
  },
  "area_code": {
   "type": "string",
   "description": "Preferred 3-digit US area code"
  },
  "agent_name": {
   "type": "string",
   "description": "Display name for the voice agent"
  },
  "number_type": {
   "type": "string",
   "description": "'local' or 'tollfree'"
  },
  "owner_phone": {
   "type": "string",
   "description": "Owner's E.164 phone — calls from it enter task mode"
  },
  "system_prompt": {
   "type": "string",
   "description": "Personality/behavior instructions spoken on ALL calls"
  },
  "transfer_number": {
   "type": "string",
   "description": "E.164 fallback number for call transfers"
  },
  "initial_greeting": {
   "type": "string",
   "description": "Opening line spoken when a call connects"
  },
  "voicemail_message": {
   "type": "string",
   "description": "Message left if the call goes to voicemail"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "id": {
   "type": "string"
  },
  "agent": {
   "type": "object"
  },
  "status": {
   "type": "string"
  },
  "tx_hash": {
   "type": "string"
  },
  "agent_id": {
   "type": "string"
  },
  "lease_token": {
   "type": "string"
  },
  "owner_wallet": {
   "type": "string"
  },
  "phone_number": {
   "type": "string"
  },
  "lease_expires_at": {
   "type": "string"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentline-phone-number-provisioning-b3e72190/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.agentline.cloud](https://www.zero.xyz/host/api.agentline.cloud/llms.txt)
