v1 · OpenAPI 3.1Dashboard

Die API-Referenz ist auf Englisch.

End-user API (SDK)

Enable TOTP

POST/v1/client/mfa/totp/enable

Basis-URL: https://eu.auth.foxlogin.app, https://tr.auth.foxlogin.app

Turns TOTP on after the first correct code and returns 10 one-time recovery codes, shown only here.

Authentifizierung
User session token

Body application/json

  • codestringerforderlich

    For disable, a current TOTP code or a recovery code; for enable, a TOTP code only.

Antworten

  • 200OKTotpEnabled

    Recovery codes

    • recovery_codesstring[]

      10 one-time codes. Shown only in this response; store them or ask the user to.

  • 400Bad RequestError

    invalid_mfa_code.

    • errorobjecterforderlich

      5 Felder
      • codestringerforderlich

        Stable machine code, e.g. email_exists, country_not_allowed, user_moved, method_not_available, region_unavailable

        Beispiel: region_unavailable

      • messagestringerforderlich

        Plain English, for developers

      • regionstringnullable

        Region that produced the error, if any

        Werte: EU TR

      • retryablebooleanerforderlich

      • detailsobject

  • 401UnauthorizedError

    Missing or invalid key or token. The Management API answers missing_api_key (no Bearer token) or invalid_api_key (unknown or revoked secret key or organization API key).

    • errorobjecterforderlich

      5 Felder
      • codestringerforderlich

        Stable machine code, e.g. email_exists, country_not_allowed, user_moved, method_not_available, region_unavailable

        Beispiel: region_unavailable

      • messagestringerforderlich

        Plain English, for developers

      • regionstringnullable

        Region that produced the error, if any

        Werte: EU TR

      • retryablebooleanerforderlich

      • detailsobject

  • 409ConflictError

    mfa_already_enabled.

    • errorobjecterforderlich

      5 Felder
      • codestringerforderlich

        Stable machine code, e.g. email_exists, country_not_allowed, user_moved, method_not_available, region_unavailable

        Beispiel: region_unavailable

      • messagestringerforderlich

        Plain English, for developers

      • regionstringnullable

        Region that produced the error, if any

        Werte: EU TR

      • retryablebooleanerforderlich

      • detailsobject