接口地址
POST https://lanshi.bokexia.com/api/send_code.php
请求参数
| 参数名 | 类型 | 必填 | 说明 |
|---|---|---|---|
| string | 是 | 接收验证码的邮箱地址 | |
| type | string | 是 | 验证码类型:register/login/reset |
| codeType | string | 否 | 验证码类型:numeric(数字)/alphanumeric(字母数字),默认numeric |
| senderName | string | 否 | 发送方名称(1-8字符) |
| logo_token | string | 否 | 已审核通过的Logo Token |
返回示例
{
"status": "success",
"message": "验证码已发送,请查收邮件"
}
错误码说明
| 错误码 | 说明 |
|---|---|
| invalid_email | 邮箱格式不正确 |
| invalid_type | 验证码类型不正确 |
| rate_limit | 发送频率限制,请稍后再试 |
| token_not_found | Logo Token不存在或未审核 |