Verify SMS, Email Verification Code
POST/auth/v1/verification/verify
API Description
Verification code verification interface, used to verify whether the verification code received by mobile phone or email is correct. Returns verification_token.
- When the API reports captcha_required, the verification code token needs to be passed. The verification code needs to be obtained first. Refer to the API, Send SMS, Email Verification Code
Request
- application/json
Body
verification_id Verification Code ID (string)required
Obtained from the response of the Send SMS, Email Verification Code API
verification_code Verification Code (string)required
Verification code received by phone or email, expiration time defaults to 600 seconds
Responses
- 200
Response Headers
- application/json
- Schema
- Example (from schema)
Schema
verification_token Verification code token (string)
Used to pass to the verify SMS, email verification code /auth/v1/signin interface login when logging in with phone number + verification code or email + verification code
expires_in Expiration Time (integer)
default 600 seconds
{
"verification_token": "string",
"expires_in": 0
}
Loading...