POST /api/auth/register/phone 创建账户,或配合基于手机的登录流程使用。
方法: POST 路径: /api/auth/phone/send-otp 认证: 无
请求
string
required
E.164 格式的手机号。
响应
成功时返回202 Accepted,响应体为空。短信异步投递。
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
向手机号发送一次性短信验证码,用于手机注册或登录。受限流保护以防止滥用。
POST /api/auth/register/phone 创建账户,或配合基于手机的登录流程使用。
方法: POST 路径: /api/auth/phone/send-otp 认证: 无
202 Accepted,响应体为空。短信异步投递。
curl -X POST https://ariacompute.cn/api/auth/phone/send-otp \
-H "Content-Type: application/json" \
-d '{"phone": "+8613800138000"}'
| 状态 | 含义 |
|---|---|
400 | 缺失或格式错误的 phone。 |
429 | 同一号码请求过多。 |
Was this page helpful?