Checkio API
post/v1/my/totp/setup

Set 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
secret
string
- Base32-encoded TOTP secret
uri
string
- otpauth:// URI for importing into authenticator apps
qrCode
string
- Base64-encoded PNG data URI of the QR code

Code Examples

curl -X POST 'https://api-next.checkio.co.uk/v1/my/totp/setup' \
  -H 'Authorization: Bearer {token}'