v1 · OpenAPI 3.1Panel

API referansı İngilizcedir.

End-user API (SDK)

Passwordless sign-in, step 2: verify the code

POST/v1/client/sign_in/email_code/verify

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

Kimlik doğrulama
Publishable key

Gövde application/json

  • emailstring (email)zorunlu

  • codestringzorunlu

    Six-digit code, valid 15 minutes.

    Örnek: 482913

Yanıtlar

  • 200OKSession | MfaRequired

    Signed in, or mfa_required

    • Session | MfaRequired

      A session, or mfa_required when the account has two-factor authentication on.

      Şunlardan biri:

      Session
      • 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

      MfaRequired
      • status"mfa_required"zorunlu

      • mfa_tokenstringzorunlu

        Opaque, 5-minute lifetime, 5 wrong codes invalidate it (invalid_mfa_token).

  • 401UnauthorizedError

    invalid_code: the code is wrong or has expired, or the account does not exist or is not active. (Returned as 401, unlike the 400 invalid_code of the other verify endpoints.)

    • 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

  • 429Too Many RequestsError

    rate_limited. Retry after Retry-After seconds.

    • 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