版本 2.1.1792967583 · 最新 下载 OpenAPI Markdown 版

验证码

无需认证。发送邮件或短信验证码,用于注册绑定、找回密码和登录二次验证;短信须带图形验证码。

verify-codes用户账号鉴权: 无需鉴权1 个接口

发邮件/短信验证码

POST/api/v2/verify-codes
鉴权: 无需鉴权

请求体 application/json

字段类型必填说明
accountstring— 登录名(login 必填)。
captcha_codestring— 图形验证码上显示的字符(发短信必填)。
captcha_idstring— 图形验证码 id(发短信必填)。
channelstring必填 发送通道:email 邮件,sms 短信。
可选值 ["email","sms"]
purposestring必填 用途:bind 注册或改绑,reset_password 找回密码,login 登录二次验证。
可选值 ["bind","reset_password","login"]
targetstring— 邮箱或手机号(bind、reset_password 必填)。

验证码对象

字段类型必填说明
accountstring— 登录名(login 必填)。
captcha_codestring— 图形验证码上显示的字符(发短信必填)。
captcha_idstring— 图形验证码 id(发短信必填)。
channelstring必填 发送通道:email 邮件,sms 短信。
可选值 ["email","sms"]
expires_ininteger— 有效期,秒。
purposestring必填 用途:bind 注册或改绑,reset_password 找回密码,login 登录二次验证。
可选值 ["bind","reset_password","login"]
resend_ininteger— 多少秒后可以重发。
targetstring— 邮箱或手机号(bind、reset_password 必填)。
tostring— 打码后的收件地址。