Create an MFA verification for a user
Create a new MFA verification for a given user ID.
Path parameters
-
The unique identifier of the user.
POST /api/users/{userId}/mfa-verifications
curl \
-X POST https://[tenant_id].logto.app/api/users/{userId}/mfa-verifications \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"type":"string"}'
Request examples
{
"type": "string"
}
Response examples (200)
Object-1 (generated)
{
"type": "string",
"secret": "string",
"secretQrCode": "string"
}
{
"type": "string",
"codes": [
"string"
]
}