application/json

Body Required

  • otp_code string Required

    6-digit TOTP code

Responses

  • 200

    OTP verified successfully

  • 400

    Invalid OTP

  • 401

    Unauthorized

POST /2fa/verify-otp
curl \
 --request POST 'https://middleware.example.com/api/2fa/verify-otp' \
 --header "Authorization: Bearer $ACCESS_TOKEN" \
 --header "Content-Type: application/json" \
 --data '{"otp_code":"string"}'
Request examples
{
  "otp_code": "string"
}