> 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.

# Register A2P

POST https://api.agentphone.ai/v1/register
Content-Type: application/json

Submit an SMS registration. Standard one-time fees are \$25 for sole_proprietor or standard_brand and \$70 for high_volume. Carrier review and number attachment must complete before outbound SMS is ready. Parent-account requests create a dedicated sub-account by default: save sub_account_id and use X-Sub-Account-Id for that campaign’s agents, numbers, and status. High-volume registration requests vetting; assigned capacity varies. Use PATCH /v1/register to correct an existing submission without another registration fee. See [SMS registration](/sms-registration) for the workflow and troubleshooting.

Reference: https://docs.agentphone.ai/api-reference/registration/register-a-2-p-v-1-register-post

## Authentication

- `Authorization` header (bearer token, required) — Bearer authentication of the form `Bearer <token>`, where token is your auth token.

## Request

### Body (application/json)

This endpoint expects a RegistrationRequest.

- `registration_type` (enum, required) — `sole_proprietor` (\$25) for individuals without an EIN, `standard_brand` (\$25) for EIN businesses with lighter volume, or `high_volume` (\$70) for EIN businesses sending at scale with third-party brand vetting.
  - Allowed values: `sole_proprietor`, `standard_brand`, `high_volume`
- `first_name` (string, required) — Your first name (or business contact's first name).
- `last_name` (string, required) — Your last name (or business contact's last name).
- `email` (string, required) — Contact email address.
- `phone_number` (string, required) — Contact phone number in E.164 format (e.g. `+15551234567`).
- `street_address` (string, required) — Street address of the individual or business.
- `city` (string, required) — City of the individual or business.
- `state` (string, required) — US state abbreviation (e.g. `CA`, `NY`).
- `zip_code` (string, required) — ZIP code (e.g. `94105`).
- `description` (string, required) — What your business does, who you message, and what types of messages you send. 40-4096 characters.
- `use_cases` (list of enum, required) — 1-5 specific use cases: `customer_care`, `account_notification`, `delivery_notification`, `fraud_alert`, `higher_education`, `marketing`, `polling_voting`, `public_service_announcement`, `security_alert`, `two_factor_authentication`.
  - Allowed values: `account_notification`, `customer_care`, `delivery_notification`, `fraud_alert`, `higher_education`, `marketing`, `polling_voting`, `public_service_announcement`, `security_alert`, `two_factor_authentication`
- `message_samples` (list of string, required) — 2-5 example messages you would send. Each 20-1024 chars, include your brand name. Include opt-out language like 'Reply STOP to unsubscribe' in at least one.
- `consent_flow` (string, required) — How users opt in to receive messages. 40-4096 characters.
- `opt_in_image_url` (string, required) — Publicly accessible HTTPS URL to a screenshot of your opt-in flow (PNG, JPG, WEBP, or GIF, max 2MB). Google Drive sharing links are supported.
- `business_name` (string, optional, nullable) — Legal/registered business name. Required for `standard_brand` and `high_volume`.
- `brand_name` (string, optional, nullable) — Public-facing brand name if different from `business_name`.
- `organization_type` (enum, optional, nullable) — Business structure: `sole_proprietor`, `private_corporation`, `public_corporation`, `llc`, `partnership`, `non_profit`, `co_op`, `government`. Required for `standard_brand` and `high_volume`.
  - Allowed values: `sole_proprietor`, `private_corporation`, `public_corporation`, `llc`, `partnership`, `non_profit`, `co_op`, `government`
- `contact_title` (enum, optional, nullable) — Your role: `ceo`, `cfo`, `cto`, `coo`, `vp`, `gm`, `director`, `other`. Required for `standard_brand` and `high_volume`.
  - Allowed values: `ceo`, `cfo`, `cto`, `coo`, `vp`, `gm`, `director`, `other`
- `contact_title_other` (string, optional, nullable) — Custom title when `contact_title` is `other`.
- `ein` (string, optional, nullable) — EIN / Tax ID number. Required for `standard_brand` and `high_volume`.
- `website_url` (string, optional, nullable) — Business website URL.
- `industry` (string, optional, nullable) — Industry category (e.g. `technology`, `real_estate`, `retail`, `healthcare`).
- `business_regions` (list of string, optional, default: ["usa_and_canada"]) — Regions where the business operates. Defaults to `["usa_and_canada"]`.
- `street_address_2` (string, optional, nullable)
- `country` (string, optional, default: US) — Country code for the registration address. See the request schema and registration form for accepted values.
- `planned_numbers` (integer, optional, default: 1) — Number of phone numbers you plan to use. Defaults to `1`. `sole_proprietor` campaigns are limited to 1 number.
- `volume` (enum, optional, default: low) — Expected message volume: `low` (default) or `high`.
  - Allowed values: `low`, `high`
- `privacy_policy_url` (string, optional, nullable) — URL to your privacy policy. Required for `standard_brand` and `high_volume`.
- `terms_of_service_url` (string, optional, nullable) — URL to your terms of service. Required for `standard_brand` and `high_volume`.
- `includes` (list of enum, optional, default: []) — Content types in messages: `links`, `phone_numbers`, `age_gated`, `direct_lending`. Defaults to `[]`.
  - Allowed values: `links`, `phone_numbers`, `age_gated`, `direct_lending`
- `link_sample` (string, optional, nullable) — Example URL if messages contain links. Max 255 characters.
- `create_sub_account` (boolean, optional, default: true) — Create a dedicated sub-account for this campaign. Defaults to `true`. Set `false` to register on your main account.

## Response

### 200

Successful Response

- `ok` (boolean, required)
- `message` (string, required)
- `campaign_status` (string, required)
- `fee_cents` (integer, required)
- `sub_account_id` (string, optional, nullable)

## Errors

### 422 Unprocessable Entity Error

Validation Error

- `detail` (list of ValidationError, optional)

## Types

### ValidationError

- `loc` (list of ValidationErrorLocItems, required)
- `msg` (string, required)
- `type` (string, required)

### ValidationErrorLocItems

- string
- integer

## Examples

**Request**

```json
{
  "registration_type": "sole_proprietor",
  "first_name": "string",
  "last_name": "string",
  "email": "string",
  "phone_number": "string",
  "street_address": "string",
  "city": "string",
  "state": "string",
  "zip_code": "string",
  "description": "string",
  "use_cases": [
    "account_notification"
  ],
  "message_samples": [
    "string"
  ],
  "consent_flow": "string",
  "opt_in_image_url": "string"
}
```

**Response**

```json
{
  "ok": true,
  "message": "string",
  "campaign_status": "string",
  "fee_cents": 1,
  "sub_account_id": "string"
}
```

**SDK Code**

```python
import requests

url = "https://api.agentphone.ai/v1/register"

payload = {
    "registration_type": "sole_proprietor",
    "first_name": "string",
    "last_name": "string",
    "email": "string",
    "phone_number": "string",
    "street_address": "string",
    "city": "string",
    "state": "string",
    "zip_code": "string",
    "description": "string",
    "use_cases": ["account_notification"],
    "message_samples": ["string"],
    "consent_flow": "string",
    "opt_in_image_url": "string"
}
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript
const url = 'https://api.agentphone.ai/v1/register';
const options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{"registration_type":"sole_proprietor","first_name":"string","last_name":"string","email":"string","phone_number":"string","street_address":"string","city":"string","state":"string","zip_code":"string","description":"string","use_cases":["account_notification"],"message_samples":["string"],"consent_flow":"string","opt_in_image_url":"string"}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://api.agentphone.ai/v1/register"

	payload := strings.NewReader("{\n  \"registration_type\": \"sole_proprietor\",\n  \"first_name\": \"string\",\n  \"last_name\": \"string\",\n  \"email\": \"string\",\n  \"phone_number\": \"string\",\n  \"street_address\": \"string\",\n  \"city\": \"string\",\n  \"state\": \"string\",\n  \"zip_code\": \"string\",\n  \"description\": \"string\",\n  \"use_cases\": [\n    \"account_notification\"\n  ],\n  \"message_samples\": [\n    \"string\"\n  ],\n  \"consent_flow\": \"string\",\n  \"opt_in_image_url\": \"string\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("Authorization", "Bearer <token>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://api.agentphone.ai/v1/register")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"registration_type\": \"sole_proprietor\",\n  \"first_name\": \"string\",\n  \"last_name\": \"string\",\n  \"email\": \"string\",\n  \"phone_number\": \"string\",\n  \"street_address\": \"string\",\n  \"city\": \"string\",\n  \"state\": \"string\",\n  \"zip_code\": \"string\",\n  \"description\": \"string\",\n  \"use_cases\": [\n    \"account_notification\"\n  ],\n  \"message_samples\": [\n    \"string\"\n  ],\n  \"consent_flow\": \"string\",\n  \"opt_in_image_url\": \"string\"\n}"

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://api.agentphone.ai/v1/register")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{\n  \"registration_type\": \"sole_proprietor\",\n  \"first_name\": \"string\",\n  \"last_name\": \"string\",\n  \"email\": \"string\",\n  \"phone_number\": \"string\",\n  \"street_address\": \"string\",\n  \"city\": \"string\",\n  \"state\": \"string\",\n  \"zip_code\": \"string\",\n  \"description\": \"string\",\n  \"use_cases\": [\n    \"account_notification\"\n  ],\n  \"message_samples\": [\n    \"string\"\n  ],\n  \"consent_flow\": \"string\",\n  \"opt_in_image_url\": \"string\"\n}")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://api.agentphone.ai/v1/register', [
  'body' => '{
  "registration_type": "sole_proprietor",
  "first_name": "string",
  "last_name": "string",
  "email": "string",
  "phone_number": "string",
  "street_address": "string",
  "city": "string",
  "state": "string",
  "zip_code": "string",
  "description": "string",
  "use_cases": [
    "account_notification"
  ],
  "message_samples": [
    "string"
  ],
  "consent_flow": "string",
  "opt_in_image_url": "string"
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://api.agentphone.ai/v1/register");
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"registration_type\": \"sole_proprietor\",\n  \"first_name\": \"string\",\n  \"last_name\": \"string\",\n  \"email\": \"string\",\n  \"phone_number\": \"string\",\n  \"street_address\": \"string\",\n  \"city\": \"string\",\n  \"state\": \"string\",\n  \"zip_code\": \"string\",\n  \"description\": \"string\",\n  \"use_cases\": [\n    \"account_notification\"\n  ],\n  \"message_samples\": [\n    \"string\"\n  ],\n  \"consent_flow\": \"string\",\n  \"opt_in_image_url\": \"string\"\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = [
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = [
  "registration_type": "sole_proprietor",
  "first_name": "string",
  "last_name": "string",
  "email": "string",
  "phone_number": "string",
  "street_address": "string",
  "city": "string",
  "state": "string",
  "zip_code": "string",
  "description": "string",
  "use_cases": ["account_notification"],
  "message_samples": ["string"],
  "consent_flow": "string",
  "opt_in_image_url": "string"
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://api.agentphone.ai/v1/register")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```