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

Body permintaan

application/json

mfa_tokenstringwajib
method_idstringwajib
{
  "mfa_token": "string",
  "method_id": "string"
}

Respons

200 OTP verification code dispatched successfully

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