Verification codes
No authentication needed. Sends email or SMS codes for binding at registration, password reset and second-factor login; SMS needs a captcha.
verify-codesUser accountsAuthentication: No auth1 endpointsSend verification code
POST
/api/v2/verify-codesAuthentication: No auth
Request body application/json
| Field | Type | Required | Description |
|---|---|---|---|
| account | string | — | Login name (required for login) |
| captcha_code | string | — | Characters shown in the captcha image (required when sending SMS) |
| captcha_id | string | — | Captcha id (required when sending SMS) |
| channel | string | Required | Delivery channel: email or sms |
| purpose | string | Required | Purpose: bind (registration or rebinding), reset_password, or login (second factor) |
| target | string | — | Email or phone number (required for bind and reset_password) |
Verification codes object
| Field | Type | Required | Description |
|---|---|---|---|
| account | string | — | Login name (required for login) |
| captcha_code | string | — | Characters shown in the captcha image (required when sending SMS) |
| captcha_id | string | — | Captcha id (required when sending SMS) |
| channel | string | Required | Delivery channel: email or sms |
| expires_in | integer | — | Validity in seconds |
| purpose | string | Required | Purpose: bind (registration or rebinding), reset_password, or login (second factor) |
| resend_in | integer | — | Seconds before the code can be resent |
| target | string | — | Email or phone number (required for bind and reset_password) |
| to | string | — | Masked recipient address |