Skip to main content
POST
/
v1
/
users
/
{id}
/
mfa
/
verify
Verify MFA Passcode
curl --request POST \
  --url https://identity.sandbox.lerian.net/v1/users/{id}/mfa/verify \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "passcode": "123456",
  "secret": "JBSWY3DPEHPK3PXP",
  "mfaType": "app"
}
'
{
  "verified": true
}

Documentation Index

Fetch the complete documentation index at: https://docs.lerian.studio/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

The authorization token in the 'Bearer ' format.

Path Parameters

id
string
required

The unique identifier of the user you want to retrieve.

Body

application/json

Information required to verify an MFA passcode during setup.

passcode
string
required

The OTP passcode to verify.

Required string length: 6 - 8
mfaType
enum<string>
required

The type of MFA being verified.

Available options:
app,
email,
sms
secret
string

The TOTP secret (required for app-based MFA).

countryCode
string

The country code for SMS-based MFA (e.g. +1).

Response

MFA passcode verified successfully.

verified
boolean