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

# POST /api/auth/phone/send-otp — 发送短信验证码

> 向手机号发送一次性短信验证码，用于手机注册或登录。受限流保护以防止滥用。

向手机号发送一次性短信验证码。将返回的验证码配合 `POST /api/auth/register/phone` 创建账户，或配合基于手机的登录流程使用。

**方法：** `POST` **路径：** `/api/auth/phone/send-otp` **认证：** 无

## 请求

<ParamField body="phone" type="string" required>
  E.164 格式的手机号。
</ParamField>

## 响应

成功时返回 `202 Accepted`，响应体为空。短信异步投递。

## 示例

```bash theme={null}
curl -X POST https://ariacompute.cn/api/auth/phone/send-otp \
  -H "Content-Type: application/json" \
  -d '{"phone": "+8613800138000"}'
```

## 错误

| 状态    | 含义                |
| ----- | ----------------- |
| `400` | 缺失或格式错误的 `phone`。 |
| `429` | 同一号码请求过多。         |
