Verify verification code
Verify the provided verification code against the user's identifier. If successful, the verification record will be marked as verified.
Body Required
-
The identifier (email address or phone number) to verify the code against. Must match the identifier used to send the verification code.
-
The verification ID of the CodeVerification record.
-
The verification code to be verified.
Responses
-
200 application/json
The verification code was successfully verified.
-
The verification code is invalid or the maximum number of attempts has been exceeded. Check the error message for details.
-
Verification record not found.
-
The connector for sending the verification code is not configured.
POST /api/experience/verification/verification-code/verify
curl \
-X POST https://[tenant_id].logto.app/api/experience/verification/verification-code/verify \
-H "Content-Type: application/json" \
-d '{"identifier":{"type":"email","value":"string"},"verificationId":"string","code":"string"}'
Request examples
{
"identifier": {
"type": "email",
"value": "string"
},
"verificationId": "string",
"code": "string"
}
Response examples (200)
{
"verificationId": "string"
}