Pinter
ENID
Authentication
Lihat sebagai 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.

Parameter

Header

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

Body permintaan

application/json

mfa_tokenstringwajib
codestringwajib
{
  "mfa_token": "string",
  "code": "string"
}

Respons

200 MFA verified, tokens issued

400 Invalid or expired OTP code

422 Validation Error

detailobject[]
detail[].locstring | integer[]wajib
detail[].msgstringwajib
detail[].typestringwajib
detail[].inputobject
detail[].ctxobject
{
  "detail": [
    {
      "loc": [
        null
      ],
      "msg": "string",
      "type": "string",
      "input": null,
      "ctx": {}
    }
  ]
}

Contoh

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"}'