v1 · OpenAPI 3.1Panel

API referansı İngilizcedir.

End-user API (SDK)

Second sign-in step: complete the TOTP or recovery-code challenge

POST/v1/client/sign_in/mfa

Temel URL: https://eu.auth.foxlogin.app, https://tr.auth.foxlogin.app

Completes an mfa_required challenge from sign-up, sign-in, the email code, Google sign-in or a password reset. mfa_token expires after 5 minutes or 5 wrong codes (401 invalid_mfa_token); a wrong code under that is 400 invalid_mfa_code.

Unlike the other sign-in steps, this one does not check X-Fox-Publishable-Key (or any other credential) — the possession of a valid, unexpired mfa_token is what authorizes the call. Documented as implemented; flagged separately as worth a second look.

Gövde application/json

  • mfa_tokenstringzorunlu

  • codestringzorunlu

    A current TOTP code or a recovery code.

Yanıtlar

  • 200OKSession

    Signed in

    • userEndUserProfile

      The end-user object returned by the End-user API (SDK). Has no phone field; phone sign-in is not implemented.

      10 alan
      • idstring

        Örnek: usr_tr_8f2c91a7

      • regionstring

        More regions will be added; clients must accept unknown values.

        Değerler: EU TR

      • emailstring

      • email_verifiedboolean

      • namestringboş olabilir

      • countrystring

        ISO 3166-1 alpha-2

      • statusstring

        Only active is reachable through the SDK; other statuses cannot sign in.

        Örnek: active

      • labelsLabels

      • created_atstring (date-time)

      • last_sign_in_atstringboş olabilir

    • session_idstring

    • access_tokenstring

    • refresh_tokenstring

    • token_type"Bearer"

    • expires_in600

  • 400Bad RequestError

    invalid_mfa_code.

    • errorobjectzorunlu

      5 alan
      • codestringzorunlu

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

        Örnek: region_unavailable

      • messagestringzorunlu

        Plain English, for developers

      • regionstringboş olabilir

        Region that produced the error, if any

        Değerler: EU TR

      • retryablebooleanzorunlu

      • detailsobject

  • 401UnauthorizedError

    invalid_mfa_token: the challenge expired, was already used, or had too many wrong codes. Sign in again.

    • errorobjectzorunlu

      5 alan
      • codestringzorunlu

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

        Örnek: region_unavailable

      • messagestringzorunlu

        Plain English, for developers

      • regionstringboş olabilir

        Region that produced the error, if any

        Değerler: EU TR

      • retryablebooleanzorunlu

      • detailsobject