# Phone registration: send SMS — `POST /v1/account/register/phone/send`

> Provisions a fresh API 34+ Android (or EEA iOS) context over your BYO residential/mobile proxy, syncs /passport/app/region/, and sends an SMS registration OTP. Enforces the same locked auth client and region matrix as email registration.

- **Endpoint:** `POST https://api.tikultra.com/v1/account/register/phone/send`
- **Auth Header:** `x-api-key: $TIKULTRA_KEY`
- **Pool:** Your Account (Runs on a connected account you own)
- **Plan Access:** Scale and up
- **Quota Weight:** 15 reqs (`0` req on any failed call)
- **Upstream Mobile Path(s):** `/passport/app/region/`, `/passport/mobile/send_code/v1/`

## Parameters

| Parameter | Type | Required | Description & How to Get | Example |
| --- | --- | --- | --- | --- |
| `mobile` | `string` | required | E.164 phone number you control. | `+14155550199` |
| `password` | `string` | required | Account password (8+ characters). | `StrongPassword!2026` |
| `birthday` | `string` | required | Date of birth in YYYY-MM-DD format. | `1999-04-15` |
| `proxy` | `string` | required | Caller-supplied residential or mobile proxy URL (required; never runs on shared pool IPs). | `http://user:pass@res-us-miami.proxy.example:8080` |
| `context_id` | `string` | optional | Optional existing caller-owned device context ID to reuse. Get from: [Provision device (`POST /v1/devices/provision`)](https://tikultra.com/docs/api/provision-device) → `device.context_id`, [List devices (`GET /v1/devices`)](https://tikultra.com/docs/api/list-devices) → `devices[].context_id`. | `—` |
| `warmup` | `boolean` | optional | Run initial device bootstrap & warm-up if fresh. | `true` |

### Optional client & region overrides

Pass any of `os`, `app_flavour`, `app_version`, `region`, `city` to set the client version or where the account or device is based (defaults to `android · tiktok · 47.5.41`).

## What it returns

Returns JSON decoded from `/passport/app/region/`. Identifier fields (`aweme_id`, `uid`, `sec_uid`, `room_id`, `product_id`) match input names on follow-up endpoints.

### Billing & telemetry headers on every response

- `x-request-id`: Unique gateway trace ID for support and debugging.
- `x-ratelimit-remaining`: Remaining requests in your current rate-limit window.
- `x-quota-weight`: Request weight for this call (15 reqs on 200 OK; always 0 on failed calls).

### Key decoded response fields

| Field | Type | Description |
| --- | --- | --- |
| `status` | `string` | Decoded `status` value returned from /passport/app/region/. |
| `otp_channel` | `string` | Decoded `otp_channel` value returned from /passport/app/region/. |
| `context_id` | `string` | Dedicated mobile device context identifier. |
| `device_id` | `string` | 64-bit registered mobile `device_id` bound to the context. |
| `os` | `string` | Decoded `os` value returned from /passport/app/region/. |
| `app_flavour` | `string` | Decoded `app_flavour` value returned from /passport/app/region/. |
| `app_version` | `string` | Decoded `app_version` value returned from /passport/app/region/. |
| `region` | `string` | Decoded `region` value returned from /passport/app/region/. |

## How to use it: 2-Step Scale+ Email Registration with BYO Proxy

Register a brand-new account on a fresh FullPool hardware profile routed strictly through your own residential or mobile proxy, verify the email OTP, and immediately configure the profile.

1. **Check desired @username availability** *(optional)* — [`GET /v1/user/check-username`](https://tikultra.com/docs/api/check-username) (1 req): Verify your target handle is free with GET /v1/user/check-username (1 req) before starting registration.
2. **Bootstrap device & send registration code** — [`POST /v1/account/register/email/send`](https://tikultra.com/docs/api/register-email-send) (15 reqs): Pass email, password, birthday (YYYY-MM-DD), region/city, and your residential/mobile proxy URL. Save the returned context_id.
3. **Verify email OTP & persist account_id** — [`POST /v1/account/register/email/verify`](https://tikultra.com/docs/api/register-email-verify) (35 reqs): Submit the 6-digit email code along with the exact same context_id and proxy URL to finalize registration and mint account_id.
4. **Claim @username & set bio/avatar** *(optional)* — [`POST /v1/account/profile/username`](https://tikultra.com/docs/api/profile-username) (6 reqs): Set your handle (/v1/account/profile/username), bio (/v1/account/profile/update), and avatar (/v1/account/profile/avatar).
5. **Phone registration: send SMS** **(THIS ENDPOINT)** — [`POST /v1/account/register/phone/send`](https://tikultra.com/docs/api/register-phone-send) (15 reqs): Provisions a fresh API 34+ Android (or EEA iOS) context over your BYO residential/mobile proxy, syncs /passport/app/region/, and sends an SMS registration OTP. Enforces the same locked auth client and region matrix as email registration. (POST /v1/account/register/phone/send).
6. **Calibrate initial For You niche** *(optional)* — [`POST /v1/account/warm/niche`](https://tikultra.com/docs/api/warm-niche) (6 reqs): Warm the newly registered session with organic topic searches and feed dwells via POST /v1/account/warm/niche.

> **Agent Tip:** Registration requires Scale or Enterprise plus a caller-supplied residential/mobile proxy (byo_proxy_required). Always pass the identical context_id and proxy in both step 1 and step 2.

## Code examples (cURL, TypeScript SDK, Python SDK)

### TypeScript SDK
```ts
import { TikUltra } from 'tikultra'

const client = new TikUltra({
  apiKey: process.env.TIKULTRA_KEY,
  os: 'android',
  appFlavour: 'tiktok',
  appVersion: '47.7.3',
})

const res = await client.request('POST', '/v1/account/register/phone/send', {
  body: {
    mobile: '+14155550199',
    password: 'StrongPassword!2026',
    birthday: '1999-04-15',
    proxy: 'http://user:pass@res-us-miami.proxy.example:8080',
    region: 'US',
    city: 'miami',
    warmup: true,
  },
})
console.log(res.data)
```

### Python SDK
```python
import os
from tikultra import TikUltra

with TikUltra(
    api_key=os.environ["TIKULTRA_KEY"],
    os="android",
    app_flavour="tiktok",
    app_version="47.7.3",
) as client:
    res = client.request(
        "POST",
        "/v1/account/register/phone/send",
        json_body={
            "mobile": "+14155550199",
            "password": "StrongPassword!2026",
            "birthday": "1999-04-15",
            "proxy": "http://user:pass@res-us-miami.proxy.example:8080",
            "region": "US",
            "city": "miami",
            "warmup": True,
        },
    )
    print(res.data)
```

### cURL
```bash
curl -X POST https://api.tikultra.com/v1/account/register/phone/send \
  -H "x-api-key: $TIKULTRA_KEY" \
  -H "content-type: application/json" \
  -d '{"mobile":"+14155550199","password":"StrongPassword!2026","birthday":"1999-04-15","proxy":"http://user:pass@res-us-miami.proxy.example:8080","os":"android","app_flavour":"tiktok","app_version":"47.7.3","region":"US","city":"miami","warmup":true}'
```

### Python (HTTP)
```python
import os, requests

r = requests.post(
    "https://api.tikultra.com/v1/account/register/phone/send",
    json={
        "mobile": "+14155550199",
        "password": "StrongPassword!2026",
        "birthday": "1999-04-15",
        "proxy": "http://user:pass@res-us-miami.proxy.example:8080",
        "os": "android",
        "app_flavour": "tiktok",
        "app_version": "47.7.3",
        "region": "US",
        "city": "miami",
        "warmup": True,
    },
    headers={"x-api-key": os.environ["TIKULTRA_KEY"]},
)
print(r.json())
```

### JavaScript
```bash
const res = await fetch('https://api.tikultra.com/v1/account/register/phone/send', {
  method: 'POST',
  headers: { 'x-api-key': process.env.TIKULTRA_KEY, 'content-type': 'application/json' },
  body: JSON.stringify({"mobile":"+14155550199","password":"StrongPassword!2026","birthday":"1999-04-15","proxy":"http://user:pass@res-us-miami.proxy.example:8080","os":"android","app_flavour":"tiktok","app_version":"47.7.3","region":"US","city":"miami","warmup":true}),
})
console.log(await res.json())
```

## Sample 200 JSON response

```json
{
  "status": "registration_code_sent",
  "otp_channel": "phone",
  "context_id": "7392011847562901234",
  "device_id": "7392011847562901234",
  "os": "android",
  "app_flavour": "tiktok",
  "app_version": "47.5.41",
  "region": "US",
  "city": "miami",
  "mobile": "+14155550199",
  "code_type": 24,
  "result": {
    "message": "success",
    "data": {
      "next_send_sec": 60
    }
  }
}
```
