Enable TOTP

POST /auth/totp

Enable TOTP (Time-based One-Time Password) authentication. It requires verification code from authenticator app.

application/json

Body Required

  • totp string Required

    TOTP verification code from authenticator app

Responses

  • 200

    TOTP enabled

  • 400

    TOTP already enabled or verification failed

POST /auth/totp
curl \
 --request POST 'http://api.example.com/auth/totp' \
 --header "Authorization: $API_KEY" \
 --header "Content-Type: application/json" \
 --data '{"totp":"string"}'
Request examples
{
  "totp": "string"
}