Add a MFA verification
Add a MFA verification to the user, a logto-verification-id in header is required for checking sensitive permissions.
POST
/api/my-account/mfa-verifications
curl \
--request POST 'https://[tenant_id].logto.app/api/my-account/mfa-verifications' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--data '{"type":"string","newIdentifierVerificationRecordId":"string","name":"string"}'
Request examples
Object-1
{
"type": "string",
"newIdentifierVerificationRecordId": "string",
"name": "string"
}
{
"type": "string",
"secret": "string"
}
{
"type": "string",
"codes": [
"string"
]
}
{
"type": "WebAuthn",
"newIdentifierVerificationRecordId": "string",
"name": "string"
}
{
"type": "TOTP",
"secret": "string"
}
{
"type": "BackupCode",
"codes": [
"string"
]
}