post
/v1/my/totp/setupSet up TOTP
Requires Authentication
My
Generates a new TOTP secret for the current user. Returns the secret, otpauth URI, and a QR code image for scanning with an authenticator app. The user must confirm setup by calling the confirm endpoint with a valid code.
Responses
TOTP setup data
Response Bodyapplication/json
secretstring
- Base32-encoded TOTP secreturistring
- otpauth:// URI for importing into authenticator appsqrCodestring
- Base64-encoded PNG data URI of the QR codeCode Examples
curl -X POST 'https://api-next.checkio.co.uk/v1/my/totp/setup' \
-H 'Authorization: Bearer {token}'