AccountService

发送验证码

向手机号或邮箱发送 6 位数字验证码(5 分钟有效,同一目标 60 秒内只能发送一次)。 公开接口,无需登录。type=phone 需管理端已启用短信服务(阿里云);type=email 需已配置 SMTP。

post/v1/account/verification/send

Request body

targetstring required

手机号(type=phone)或邮箱地址(type=email)

type'phone' | 'email' required

验证码类型:phone 短信验证码 / email 邮箱验证码

Response

OK

messagestring
successboolean

Changes

No recorded changes to this endpoint across all 1 revision of this API.