Skip to content

Get OTP Link

GetManagerOTP

Description: Generates a new OTP secret and provisioning URI for a manager to configure two-factor authentication (2FA). The OTP URI can be used in authenticator apps like Google Authenticator or Authy.

Access Control

🛡️ Access Level Required: SESSION_ADMIN or SESSION_MANAGER


Request Example



Response Parameters

Name Type Description
otp_url string OTP provisioning URI (for use with authenticator apps)
secret string Base32 encoded secret used to generate OTP codes

Response Example

{
  "otp_url": "otpauth://totp/ION%20Trader:1?secret=JBSWY3DPEHPK3PXP&issuer=ION%20Trader&algorithm=SHA1&digits=6",
  "secret": "JBSWY3DPEHPK3PXP"
}

Error Example

{
  "error": "MANAGER_NOT_FOUND"
}