Verify verification code
Verify the provided verification code against the 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.
Additional properties are allowed.
-
The verification ID of the CodeVerification record.
-
The verification code to be verified.
POST /api/verifications/verification-code/verify
curl \
-X POST https://[tenant_id].logto.app/api/verifications/verification-code/verify \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-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)
{
"verificationRecordId": "string"
}