v1

latestOpenAPI 3.0.12026-07-24501176.6 MB

Generate MFA token

Generates MFA token for devices.

post/auth/v1/mfa/token/generate

Request body

identifierType'MOBILE' | 'EMAIL' | 'USERNAME' | 'EXTERNALID' required

Identifier used for MFA token generation.

identifierValuestring required

Value of the identifier.

deviceIdstring required

Unique ID of the device from which the customer generates the token.

brandstring required

Name of the brand or organisation that needs verification.

authorizedTokenstring required

Authentication token from /otp/validate\ of First factor.

Response

200

Example response

{
  "status": {
    "success": true,
    "code": 200,
    "message": "SUCCESS"
  },
  "auth": {
    "token": "eyJpZHYiOlsiTU9CSUxFfDE4Nzk1Nzc0NzU0Il0sImRldiI6IjEyMzQiLCJvcmciOiJCVUtMIiwiYWxnIjoiSFMyNTYifQ.eyJpc3MiOiJDQVBJTExBUlkgVEVDSE5PTE9HSUVTIiwib2djIjpbIjEwMDQ1OHxidWtsLmluZC5zb2x1dGlvbiJdLCJleHAiOjE3MTY4OTA4MjIsImlhdCI6MTcxNjg4OTkyMiwicm9sIjoiVklFVyJ9.nL6iCjXIrfEb02uDnnJTyj0uPi8teQjAgnQPVU0_aqQ"
  },
  "user": {
    "sessionId": "P-a2996f83-a72d-405c-aa23-0eed7a7dba1e",
    "role": "VIEW"
  }
}