公共接口

API - 获取验证码

描述:发送手机或邮件验证码

请求方式:POST

请求地址:/v1/code

版本:v1

内部API调用方法名:Public_code

请求参数

参数类型验证规则最大长度描述示例
   action string 必填 - 验证码支持的方式:
login_phone_code 手机验证码登录
register_email 邮箱注册
register_phone 手机注册
pwreset_email 邮箱找回密码
pwreset_phone 手机找回密码
second_phone 手机二次验证
second_email 邮箱二次验证
bind_phone 手机绑定
bind_email 邮箱绑定
login_notice_phone 登录短信提醒
login_notice_email 登录邮件提醒
   type string 必填 - 发送类型有:
phone 手机
email 邮箱
phone
   phone_code string - 发送类型是手机号时要传手机区号,不传默认+86
   account string 必填 - 手机号或者邮箱
   captcha string 开启状态验证码必填 - 图形验证码,对应的接口开启了才需要
   idtoken string 开启状态验证码必填 - 获取图形验证码图片时返回的idtoken的值