Skip to content

发送/验证短信验证码

POST
/user/auth_code

发送短信验证码或校验验证码

请求体

application/json
JSON
{
  
"message_id": "1bd5d003-31b9-476f-ad03-71d471922820",
  
"user_id": "53102fb4bf1044ed8b0ba36c",
  
"params": {
  
  
"access_token": "string",
  
  
"client_id": "string",
  
  
"auth_model": 0,
  
  
"code_model": 0,
  
  
"area_code": "string",
  
  
"phone": "string",
  
  
"auth_code": "string"
  
}
}

响应

操作成功

application/json
JSON
{
  
"error_code": 200,
  
"message_id": "1bd5d003-31b9-476f-ad03-71d471922820",
  
"data": {
  
  
"public_key": "string"
  
}
}

试验场

主体

示例