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

# POST /api/auth/register/phone — create account with phone

> Create an Aria Compute account with a phone number, password, and SMS OTP. First call POST /api/auth/phone/send-otp for the verification code.

Create an Aria Compute account with a phone number, a password, and an SMS OTP code. Call `POST /api/auth/phone/send-otp` first to have the verification code sent to the phone.

**Method:** `POST` **Path:** `/api/auth/register/phone` **Auth:** None

## Request

<ParamField body="phone" type="string" required>
  E.164-formatted phone number (for example `+8613800138000`).
</ParamField>

<ParamField body="password" type="string" required>
  Account password.
</ParamField>

<ParamField body="code" type="string" required>
  SMS OTP from `POST /api/auth/phone/send-otp`.
</ParamField>

<ParamField body="name" type="string">
  Optional display name.
</ParamField>

## Response

<ResponseField name="token" type="string">
  Session JWT.
</ResponseField>

<ResponseField name="user" type="object">
  New user profile.
</ResponseField>

## Example

```bash theme={null}
curl -X POST https://ariacompute.com/api/auth/register/phone \
  -H "Content-Type: application/json" \
  -d '{"phone": "+8613800138000", "password": "...", "code": "123456"}'
```

## Errors

| Status | Meaning                   |
| ------ | ------------------------- |
| `400`  | Missing field.            |
| `401`  | Invalid or expired OTP.   |
| `409`  | Phone already registered. |
| `429`  | Too many attempts.        |


## Related topics

- [POST /api/auth/phone/send-otp — send SMS verification code](/api-reference/auth/send-otp.md)
- [POST /api/auth/register/email — create account with email](/api-reference/auth/register-email.md)
- [POST /api/auth/login — sign in with email or phone](/api-reference/auth/login.md)
- [Authenticate requests to the Aria Compute API](/authentication.md)
- [Get started with Aria Compute in minutes](/quickstart.md)
