Pinter
ENID
Authentication
View as Markdown

Dispatch MFA Verification Code (OTP)

POST/api/identity/mfa/send

Overview

Sends a one-time passcode (OTP) to the user's selected MFA channel (e.g., registered email or SMS).

Authentication & Headers

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

Parameters & Request Body

  • mfa_token (string, required): Temporary session token issued by /api/identity/token.
  • method_id (string, required): Verification method chosen by user (email_otp or totp).

Request body

application/json

mfa_tokenstringrequired
method_idstringrequired
{
  "mfa_token": "string",
  "method_id": "string"
}

Responses

200 OTP verification code dispatched successfully

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/send" \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"mfa_token":"string","method_id":"string"}'