Pinter
ENID
Authentication
View as Markdown

Verify MFA Passcode & Complete Login

POST/api/identity/mfa/verify

Overview

Validates the user-submitted OTP code against the active MFA session. Returns full access and refresh tokens upon success.

Authentication & Headers

  • Auth: Public (Scoped to MFA challenge session token)
  • Required Header: API-Version: 1

Parameters & Request Body

  • mfa_token (string, required): The challenge session token.
  • otp_code (string, required): The 6-digit verification code received by user.

Parameters

Header

X-Device-IDstring
Unique client hardware or browser fingerprint UUID for device binding and audit security.

Request body

application/json

mfa_tokenstringrequired
codestringrequired
{
  "mfa_token": "string",
  "code": "string"
}

Responses

200 MFA verified, tokens issued

400 Invalid or expired OTP code

422 Validation Error

detailobject[]
detail[].locstring | integer[]required
detail[].msgstringrequired
detail[].typestringrequired
detail[].inputobject
detail[].ctxobject
{
  "detail": [
    {
      "loc": [
        null
      ],
      "msg": "string",
      "type": "string",
      "input": null,
      "ctx": {}
    }
  ]
}

Example

curl -X POST "$PINTER_URL/api/identity/mfa/verify" \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"mfa_token":"string","code":"string"}'