OTP
Authorizations
apiKeystringRequired
Your DM Champ API key. Obtain from Settings → API Keys.
Query parameters
secretstringRequiredExample:
Base32-encoded TOTP secret key
JBSWY3DPEHPK3PXPResponses
200
OTP generated successfully
application/json
OTP generation response
successbooleanOptionalExample:
truecurrent_otpstringOptionalExample:
Current 6-digit TOTP code
123456expires_inintegerOptionalExample:
Seconds until the current code expires (0-30)
15400
Missing or invalid secret parameter
application/json
500
Error generating OTP
application/json
get
/otp/generateAuthorizations
apiKeystringRequired
Your DM Champ API key. Obtain from Settings → API Keys.
Query parameters
secretstringRequiredExample:
Base32-encoded TOTP secret key
JBSWY3DPEHPK3PXPResponses
200
HTML OTP generator interface
text/html
stringOptional
Interactive HTML page with auto-refreshing TOTP display
400
Missing secret parameter
text/plain
get
/otpLast updated
Was this helpful?

