发送验证码
开发中
POST
/auth/send-sms-code
请求参数
Body 参数application/json
mobile
string
必需
示例
{
"mobile": "string"
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/auth/send-sms-code' \
--header 'Content-Type: application/json' \
--data-raw '{
"mobile": "string"
}'
返回响应
🟢200成功
application/json
Body
code
integer
必需
默认值:
200
data
object
必需
expireTime
integer
验证码过期时间
message
string
必需
示例
{
"code": 200,
"data": {
"expireTime": 300
},
"message": "Verification code sent successfully."
}
🟠400参数不正确
修改于 2025-06-06 05:49:26