> ## Documentation Index
> Fetch the complete documentation index at: https://stytch.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# 401

> Reference for Stytch API Unauthorized errors

export const PUBLIC_SLACK_INVITE_URL = "https://join.slack.com/t/stytch/shared_invite/zt-3rhtjctw4-a9bF_HUXHXm8vtizsMTMeQ";

## attribute\_mismatch

<Columns cols={2}>
  <div>
    <p><Badge color="red">401</Badge> <strong>Attribute mismatch</strong></p>

    <p>Unable to authenticate because attributes on request don't match stored attributes.</p>
  </div>

  ```js theme={null}
  {
    "status_code": 401,
    "request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
    "error_type": "attribute_mismatch",
    "error_message": "Unable to authenticate because attributes on request don't match stored attributes.",
    "error_url": "https://stytch.com/docs/api-reference/b2b/api/errors/401#attribute_mismatch"
  }
  ```
</Columns>

<Heading noAnchor={true} level={3}>Need help?</Heading>

<Columns cols={2}>
  <Card title="Send us an email" icon="mail" horizontal href="mailto:support@stytch.com" />

  <Card title="Contact us on slack" icon="slack" horizontal href={PUBLIC_SLACK_INVITE_URL} />
</Columns>

***

## cname\_invalid\_for\_http\_only\_cookies

<Columns cols={2}>
  <div>
    <p><Badge color="red">401</Badge> <strong>Cname invalid for http only cookies</strong></p>

    <p>You didn't provide a valid CNAME with your HTTP-only cookies setting set to 'ENFORCED'. Consider updating the HTTP-only cookies setting to 'ENABLED' or making a request via the project's configured CNAME.</p>
  </div>

  ```js theme={null}
  {
    "status_code": 401,
    "request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
    "error_type": "cname_invalid_for_http_only_cookies",
    "error_message": "You didn't provide a valid CNAME with your HTTP-only cookies setting set to 'ENFORCED'. Consider updating the HTTP-only cookies setting to 'ENABLED' or making a request via the project's configured CNAME.",
    "error_url": "https://stytch.com/docs/api-reference/b2b/api/errors/401#cname_invalid_for_http_only_cookies"
  }
  ```
</Columns>

<Heading noAnchor={true} level={3}>Need help?</Heading>

<Columns cols={2}>
  <Card title="Send us an email" icon="mail" horizontal href="mailto:support@stytch.com" />

  <Card title="Contact us on slack" icon="slack" horizontal href={PUBLIC_SLACK_INVITE_URL} />
</Columns>

***

## cname\_required\_for\_http\_only\_cookies

<Columns cols={2}>
  <div>
    <p><Badge color="red">401</Badge> <strong>Cname required for http only cookies</strong></p>

    <p>You may not make a request via the default API URL ('api.stytch.com' or 'test.stytch.com') with your HTTP-only cookies setting set to 'ENFORCED'. Consider updating the HTTP-only cookies setting to 'ENABLED' or making a request via the project's configured CNAME.</p>
  </div>

  ```js theme={null}
  {
    "status_code": 401,
    "request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
    "error_type": "cname_required_for_http_only_cookies",
    "error_message": "You may not make a request via the default API URL ('api.stytch.com' or 'test.stytch.com') with your HTTP-only cookies setting set to 'ENFORCED'. Consider updating the HTTP-only cookies setting to 'ENABLED' or making a request via the project's configured CNAME.",
    "error_url": "https://stytch.com/docs/api-reference/b2b/api/errors/401#cname_required_for_http_only_cookies"
  }
  ```
</Columns>

<Heading noAnchor={true} level={3}>Need help?</Heading>

<Columns cols={2}>
  <Card title="Send us an email" icon="mail" horizontal href="mailto:support@stytch.com" />

  <Card title="Contact us on slack" icon="slack" horizontal href={PUBLIC_SLACK_INVITE_URL} />
</Columns>

***

## connected\_app\_consent\_revoked

<Columns cols={2}>
  <div>
    <p><Badge color="red">401</Badge> <strong>Connected app consent revoked</strong></p>

    <p>The Connected App's permission has been revoked. Complete another authorization flow to re-enable access.</p>
  </div>

  ```js theme={null}
  {
    "status_code": 401,
    "request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
    "error_type": "connected_app_consent_revoked",
    "error_message": "The Connected App's permission has been revoked. Complete another authorization flow to re-enable access.",
    "error_url": "https://stytch.com/docs/api-reference/b2b/api/errors/401#connected_app_consent_revoked"
  }
  ```
</Columns>

<Heading noAnchor={true} level={3}>Need help?</Heading>

<Columns cols={2}>
  <Card title="Send us an email" icon="mail" horizontal href="mailto:support@stytch.com" />

  <Card title="Contact us on slack" icon="slack" horizontal href={PUBLIC_SLACK_INVITE_URL} />
</Columns>

***

## connected\_app\_not\_allowed\_for\_org

<Columns cols={2}>
  <div>
    <p><Badge color="red">401</Badge> <strong>Connected app not allowed for org</strong></p>

    <p>The requested Connected App is not approved for use with this Organization. Please contact your administrator.</p>
  </div>

  ```js theme={null}
  {
    "status_code": 401,
    "request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
    "error_type": "connected_app_not_allowed_for_org",
    "error_message": "The requested Connected App is not approved for use with this Organization. Please contact your administrator.",
    "error_url": "https://stytch.com/docs/api-reference/b2b/api/errors/401#connected_app_not_allowed_for_org"
  }
  ```
</Columns>

<Heading noAnchor={true} level={3}>Need help?</Heading>

<Columns cols={2}>
  <Card title="Send us an email" icon="mail" horizontal href="mailto:support@stytch.com" />

  <Card title="Contact us on slack" icon="slack" horizontal href={PUBLIC_SLACK_INVITE_URL} />
</Columns>

***

## connected\_app\_supplied\_redirect\_url\_not\_found\_in\_client

<Columns cols={2}>
  <div>
    <p><Badge color="red">401</Badge> <strong>Connected app supplied redirect url not found in client</strong></p>

    <p>The redirect URL supplied in the request is not registered to the client.</p>
  </div>

  ```js theme={null}
  {
    "status_code": 401,
    "request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
    "error_type": "connected_app_supplied_redirect_url_not_found_in_client",
    "error_message": "The redirect URL supplied in the request is not registered to the client.",
    "error_url": "https://stytch.com/docs/api-reference/b2b/api/errors/401#connected_app_supplied_redirect_url_not_found_in_client"
  }
  ```
</Columns>

<Heading noAnchor={true} level={3}>Need help?</Heading>

<Columns cols={2}>
  <Card title="Send us an email" icon="mail" horizontal href="mailto:support@stytch.com" />

  <Card title="Contact us on slack" icon="slack" horizontal href={PUBLIC_SLACK_INVITE_URL} />
</Columns>

***

## endpoint\_not\_authorized\_for\_sdk

<Columns cols={2}>
  <div>
    <p><Badge color="red">401</Badge> <strong>Endpoint not authorized for sdk</strong></p>

    <p>The project owner hasn't authorized the Stytch SDK to call endpoints for this product.</p>

    <Heading noAnchor={true} level={3}>Common Causes</Heading>

    <ul>
      <li>You haven't yet configured your Stytch project to allow SDK access to this product.</li>
    </ul>

    <Heading noAnchor={true} level={3}>Troubleshooting</Heading>

    <ul>
      <li>Enable the product via the <a href="/dashboard/sdk-configuration">Frontend SDK page</a> in the Stytch Dashboard.</li>
      <li>Toggle on the corresponding Enabled methods in the <a href="/dashboard/sdk-configuration">Frontend SDK page</a>.</li>
      <li>If you're using our WebAuthn product, you'll also need to enable “Manage user data” via the <a href="/dashboard/sdk-configuration">Frontend SDK page</a>.</li>
    </ul>
  </div>

  ```js theme={null}
  {
    "status_code": 401,
    "request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
    "error_type": "endpoint_not_authorized_for_sdk",
    "error_message": "The project owner has not authorized the SDK to call this endpoint. Please enable it in the dashboard to continue: https://stytch.com/dashboard/sdk-configuration.",
    "error_url": "https://stytch.com/docs/api-reference/b2b/api/errors/401#endpoint_not_authorized_for_sdk"
  }
  ```
</Columns>

<Heading noAnchor={true} level={3}>Need help?</Heading>

<Columns cols={2}>
  <Card title="Send us an email" icon="mail" horizontal href="mailto:support@stytch.com" />

  <Card title="Contact us on slack" icon="slack" horizontal href={PUBLIC_SLACK_INVITE_URL} />
</Columns>

***

## enterprise\_endpoint

<Columns cols={2}>
  <div>
    <p><Badge color="red">401</Badge> <strong>Enterprise endpoint</strong></p>

    <p>Thanks for trying Stytch! We're glad you're excited to try our new products, but this one requires approval before using. Please reach out to [support@stytch.com](mailto:support@stytch.com) if you're interested.</p>
  </div>

  ```js theme={null}
  {
    "status_code": 401,
    "request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
    "error_type": "enterprise_endpoint",
    "error_message": "Thanks for trying Stytch! We're glad you're excited to try our new products, but this one requires approval before using. Please reach out to support@stytch.com if you're interested.",
    "error_url": "https://stytch.com/docs/api-reference/b2b/api/errors/401#enterprise_endpoint"
  }
  ```
</Columns>

<Heading noAnchor={true} level={3}>Need help?</Heading>

<Columns cols={2}>
  <Card title="Send us an email" icon="mail" horizontal href="mailto:support@stytch.com" />

  <Card title="Contact us on slack" icon="slack" horizontal href={PUBLIC_SLACK_INVITE_URL} />
</Columns>

***

## insufficient\_factors

<Columns cols={2}>
  <div>
    <p><Badge color="red">401</Badge> <strong>Insufficient factors</strong></p>

    <p>User must be logged in with multiple categories of factors to call this endpoint.</p>
  </div>

  ```js theme={null}
  {
    "status_code": 401,
    "request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
    "error_type": "insufficient_factors",
    "error_message": "User must be logged in with multiple categories of factors to call this endpoint.",
    "error_url": "https://stytch.com/docs/api-reference/b2b/api/errors/401#insufficient_factors"
  }
  ```
</Columns>

<Heading noAnchor={true} level={3}>Need help?</Heading>

<Columns cols={2}>
  <Card title="Send us an email" icon="mail" horizontal href="mailto:support@stytch.com" />

  <Card title="Contact us on slack" icon="slack" horizontal href={PUBLIC_SLACK_INVITE_URL} />
</Columns>

***

## oauth\_unverified\_email

<Columns cols={2}>
  <div>
    <p><Badge color="red">401</Badge> <strong>Oauth unverified email</strong></p>

    <p>The user has not verified their email with the OAuth provider. Please encourage them to verify their email address and try again.</p>
  </div>

  ```js theme={null}
  {
    "status_code": 401,
    "request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
    "error_type": "oauth_unverified_email",
    "error_message": "The user has not verified their email with the OAuth provider. Please encourage them to verify their email address and try again.",
    "error_url": "https://stytch.com/docs/api-reference/b2b/api/errors/401#oauth_unverified_email"
  }
  ```
</Columns>

<Heading noAnchor={true} level={3}>Need help?</Heading>

<Columns cols={2}>
  <Card title="Send us an email" icon="mail" horizontal href="mailto:support@stytch.com" />

  <Card title="Contact us on slack" icon="slack" horizontal href={PUBLIC_SLACK_INVITE_URL} />
</Columns>

***

## oidc\_response\_unverified\_email

<Columns cols={2}>
  <div>
    <p><Badge color="red">401</Badge> <strong>Oidc response unverified email</strong></p>

    <p>The user has not verified their email with the external provider. Please encourage them to verify their email address and try again.</p>
  </div>

  ```js theme={null}
  {
    "status_code": 401,
    "request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
    "error_type": "oidc_response_unverified_email",
    "error_message": "The user has not verified their email with the external provider. Please encourage them to verify their email address and try again.",
    "error_url": "https://stytch.com/docs/api-reference/b2b/api/errors/401#oidc_response_unverified_email"
  }
  ```
</Columns>

<Heading noAnchor={true} level={3}>Need help?</Heading>

<Columns cols={2}>
  <Card title="Send us an email" icon="mail" horizontal href="mailto:support@stytch.com" />

  <Card title="Contact us on slack" icon="slack" horizontal href={PUBLIC_SLACK_INVITE_URL} />
</Columns>

***

## session\_too\_old\_to\_reset\_password

<Columns cols={2}>
  <div>
    <p><Badge color="red">401</Badge> <strong>Session too old to reset password</strong></p>

    <p>The provided session cannot be used to reset a password. It does not have an authentication\_factor that was authenticated within the last 5 minutes. Please prompt the user to authenticate again before retrying the endpoint.</p>
  </div>

  ```js theme={null}
  {
    "status_code": 401,
    "request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
    "error_type": "session_too_old_to_reset_password",
    "error_message": "The provided session cannot be used to reset a password. It does not have an authentication_factor that was authenticated within the last 5 minutes. Please prompt the user to authenticate again before retrying the endpoint.",
    "error_url": "https://stytch.com/docs/api-reference/b2b/api/errors/401#session_too_old_to_reset_password"
  }
  ```
</Columns>

<Heading noAnchor={true} level={3}>Need help?</Heading>

<Columns cols={2}>
  <Card title="Send us an email" icon="mail" horizontal href="mailto:support@stytch.com" />

  <Card title="Contact us on slack" icon="slack" horizontal href={PUBLIC_SLACK_INVITE_URL} />
</Columns>

***

## stale\_factors

<Columns cols={2}>
  <div>
    <p><Badge color="red">401</Badge> <strong>Stale factors</strong></p>

    <p>In order to call this endpoint, the user should have authenticated within the last hour. Please reauthenticate and try again.</p>
  </div>

  ```js theme={null}
  {
    "status_code": 401,
    "request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
    "error_type": "stale_factors",
    "error_message": "In order to call this endpoint, the user should have authenticated within the last hour. Please reauthenticate and try again.",
    "error_url": "https://stytch.com/docs/api-reference/b2b/api/errors/401#stale_factors"
  }
  ```
</Columns>

<Heading noAnchor={true} level={3}>Need help?</Heading>

<Columns cols={2}>
  <Card title="Send us an email" icon="mail" horizontal href="mailto:support@stytch.com" />

  <Card title="Contact us on slack" icon="slack" horizontal href={PUBLIC_SLACK_INVITE_URL} />
</Columns>

***

## too\_many\_m2m\_clients\_for\_billing\_tier

<Columns cols={2}>
  <div>
    <p><Badge color="red">401</Badge> <strong>Too many m2m clients for billing tier</strong></p>

    <p>You have exceeded the maximum number of M2M clients for your billing tier.</p>
  </div>

  ```js theme={null}
  {
    "status_code": 401,
    "request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
    "error_type": "too_many_m2m_clients_for_billing_tier",
    "error_message": "You have exceeded the maximum number of M2M clients for your billing tier.",
    "error_url": "https://stytch.com/docs/api-reference/b2b/api/errors/401#too_many_m2m_clients_for_billing_tier"
  }
  ```
</Columns>

<Heading noAnchor={true} level={3}>Need help?</Heading>

<Columns cols={2}>
  <Card title="Send us an email" icon="mail" horizontal href="mailto:support@stytch.com" />

  <Card title="Contact us on slack" icon="slack" horizontal href={PUBLIC_SLACK_INVITE_URL} />
</Columns>

***

## too\_many\_sso\_connections\_for\_billing\_tier

<Columns cols={2}>
  <div>
    <p><Badge color="red">401</Badge> <strong>Too many sso connections for billing tier</strong></p>

    <p>You have exceeded the maximum SSO connections for your billing tier.</p>
  </div>

  ```js theme={null}
  {
    "status_code": 401,
    "request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
    "error_type": "too_many_sso_connections_for_billing_tier",
    "error_message": "You have exceeded the maximum SSO connections for your billing tier.",
    "error_url": "https://stytch.com/docs/api-reference/b2b/api/errors/401#too_many_sso_connections_for_billing_tier"
  }
  ```
</Columns>

<Heading noAnchor={true} level={3}>Need help?</Heading>

<Columns cols={2}>
  <Card title="Send us an email" icon="mail" horizontal href="mailto:support@stytch.com" />

  <Card title="Contact us on slack" icon="slack" horizontal href={PUBLIC_SLACK_INVITE_URL} />
</Columns>

***

## twitter\_401

<Columns cols={2}>
  <div>
    <p><Badge color="red">401</Badge> <strong>Twitter 401</strong></p>

    <p>Twitter responded with a 401 Unauthorized error.</p>
  </div>

  ```js theme={null}
  {
    "status_code": 401,
    "request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
    "error_type": "twitter_401",
    "error_message": "Twitter responded with a 401 Unauthorized error.",
    "error_url": "https://stytch.com/docs/api-reference/b2b/api/errors/401#twitter_401"
  }
  ```
</Columns>

<Heading noAnchor={true} level={3}>Need help?</Heading>

<Columns cols={2}>
  <Card title="Send us an email" icon="mail" horizontal href="mailto:support@stytch.com" />

  <Card title="Contact us on slack" icon="slack" horizontal href={PUBLIC_SLACK_INVITE_URL} />
</Columns>

***

## unable\_to\_auth\_impersonation\_token

<Columns cols={2}>
  <div>
    <p><Badge color="red">401</Badge> <strong>Unable to auth impersonation token</strong></p>

    <p>The impersonation token could not be authenticated.</p>
  </div>

  ```js theme={null}
  {
    "status_code": 401,
    "request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
    "error_type": "unable_to_auth_impersonation_token",
    "error_message": "The impersonation token could not be authenticated.",
    "error_url": "https://stytch.com/docs/api-reference/b2b/api/errors/401#unable_to_auth_impersonation_token"
  }
  ```
</Columns>

<Heading noAnchor={true} level={3}>Need help?</Heading>

<Columns cols={2}>
  <Card title="Send us an email" icon="mail" horizontal href="mailto:support@stytch.com" />

  <Card title="Contact us on slack" icon="slack" horizontal href={PUBLIC_SLACK_INVITE_URL} />
</Columns>

***

## unable\_to\_auth\_magic\_link

<Columns cols={2}>
  <div>
    <p><Badge color="red">401</Badge> <strong>Unable to auth magic link</strong></p>

    <p>The magic link could not be authenticated because it was either used or expired.</p>

    <Heading noAnchor={true} level={3}>Common Causes</Heading>

    <ul>
      <li>A user clicks a magic link they already used before</li>
      <li>A user waits too long to click a magic link that has expired</li>
    </ul>

    <Heading noAnchor={true} level={3}>Troubleshooting</Heading>

    <ul>
      <li>Send a new magic link to the user</li>
    </ul>
  </div>

  ```js theme={null}
  {
    "status_code": 401,
    "request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
    "error_type": "unable_to_auth_magic_link",
    "error_message": "The magic link could not be authenticated because it was either already used or expired. Send another magic link to this user.",
    "error_url": "https://stytch.com/docs/api-reference/b2b/api/errors/401#unable_to_auth_magic_link"
  }
  ```
</Columns>

<Heading noAnchor={true} level={3}>Need help?</Heading>

<Columns cols={2}>
  <Card title="Send us an email" icon="mail" horizontal href="mailto:support@stytch.com" />

  <Card title="Contact us on slack" icon="slack" horizontal href={PUBLIC_SLACK_INVITE_URL} />
</Columns>

***

## unable\_to\_auth\_otp\_code

<Columns cols={2}>
  <div>
    <p><Badge color="red">401</Badge> <strong>Unable to auth otp code</strong></p>

    <p>The passcode could not be authenticated because it was either already used or expired. Send another passcode to this user.</p>

    <Heading noAnchor={true} level={3}>Common Causes</Heading>

    <ul>
      <li>The user may have inadvertently entered the same OTP code twice; either re-using a code they already authenticated or an expired code.</li>
      <li>If you wrapped the `OTPAuthenticate` call in a `useEffect` and you are using React 18 in StrictMode, you may be double calling the method. See <a href="https://github.com/facebook/react/issues/24502">here</a> for more details.</li>
    </ul>

    <Heading noAnchor={true} level={3}>Troubleshooting</Heading>

    <ul>
      <li>Review your code, and network requests (if using a frontend SDK) to determine if multiple requests are being made.</li>
      <li>Send a new code to the user.</li>
    </ul>
  </div>

  ```js theme={null}
  {
    "status_code": 401,
    "request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
    "error_type": "unable_to_auth_otp_code",
    "error_message": "The passcode could not be authenticated because it was either already used or expired. Send another passcode to this user.",
    "error_url": "https://stytch.com/docs/api-reference/b2b/api/errors/401#unable_to_auth_otp_code"
  }
  ```
</Columns>

<Heading noAnchor={true} level={3}>Need help?</Heading>

<Columns cols={2}>
  <Card title="Send us an email" icon="mail" horizontal href="mailto:support@stytch.com" />

  <Card title="Contact us on slack" icon="slack" horizontal href={PUBLIC_SLACK_INVITE_URL} />
</Columns>

***

## unable\_to\_auth\_password\_reset\_token

<Columns cols={2}>
  <div>
    <p><Badge color="red">401</Badge> <strong>Unable to auth password reset token</strong></p>

    <p>The password reset token could not be authenticated, try sending another password reset email to the user.</p>
  </div>

  ```js theme={null}
  {
    "status_code": 401,
    "request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
    "error_type": "unable_to_auth_password_reset_token",
    "error_message": "The password reset token could not be authenticated, try sending another password reset email to the user.",
    "error_url": "https://stytch.com/docs/api-reference/b2b/api/errors/401#unable_to_auth_password_reset_token"
  }
  ```
</Columns>

<Heading noAnchor={true} level={3}>Need help?</Heading>

<Columns cols={2}>
  <Card title="Send us an email" icon="mail" horizontal href="mailto:support@stytch.com" />

  <Card title="Contact us on slack" icon="slack" horizontal href={PUBLIC_SLACK_INVITE_URL} />
</Columns>

***

## unable\_to\_auth\_webauthn\_registration

<Columns cols={2}>
  <div>
    <p><Badge color="red">401</Badge> <strong>Unable to auth webauthn registration</strong></p>

    <p>WebAuthn registration could not be authenticated.</p>
  </div>

  ```js theme={null}
  {
    "status_code": 401,
    "request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
    "error_type": "unable_to_auth_webauthn_registration",
    "error_message": "WebAuthn registration could not be authenticated.",
    "error_url": "https://stytch.com/docs/api-reference/b2b/api/errors/401#unable_to_auth_webauthn_registration"
  }
  ```
</Columns>

<Heading noAnchor={true} level={3}>Need help?</Heading>

<Columns cols={2}>
  <Card title="Send us an email" icon="mail" horizontal href="mailto:support@stytch.com" />

  <Card title="Contact us on slack" icon="slack" horizontal href={PUBLIC_SLACK_INVITE_URL} />
</Columns>

***

## unable\_to\_authenticate\_recovery\_code

<Columns cols={2}>
  <div>
    <p><Badge color="red">401</Badge> <strong>Unable to authenticate recovery code</strong></p>

    <p>Unable to authenticate recovery code.</p>
  </div>

  ```js theme={null}
  {
    "status_code": 401,
    "request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
    "error_type": "unable_to_authenticate_recovery_code",
    "error_message": "Unable to authenticate recovery code.",
    "error_url": "https://stytch.com/docs/api-reference/b2b/api/errors/401#unable_to_authenticate_recovery_code"
  }
  ```
</Columns>

<Heading noAnchor={true} level={3}>Need help?</Heading>

<Columns cols={2}>
  <Card title="Send us an email" icon="mail" horizontal href="mailto:support@stytch.com" />

  <Card title="Contact us on slack" icon="slack" horizontal href={PUBLIC_SLACK_INVITE_URL} />
</Columns>

***

## unable\_to\_authenticate\_totp

<Columns cols={2}>
  <div>
    <p><Badge color="red">401</Badge> <strong>Unable to authenticate totp</strong></p>

    <p>Unable to authenticate TOTP.</p>
  </div>

  ```js theme={null}
  {
    "status_code": 401,
    "request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
    "error_type": "unable_to_authenticate_totp",
    "error_message": "Unable to authenticate TOTP.",
    "error_url": "https://stytch.com/docs/api-reference/b2b/api/errors/401#unable_to_authenticate_totp"
  }
  ```
</Columns>

<Heading noAnchor={true} level={3}>Need help?</Heading>

<Columns cols={2}>
  <Card title="Send us an email" icon="mail" horizontal href="mailto:support@stytch.com" />

  <Card title="Contact us on slack" icon="slack" horizontal href={PUBLIC_SLACK_INVITE_URL} />
</Columns>

***

## unable\_to\_verify\_member\_email\_update

<Columns cols={2}>
  <div>
    <p><Badge color="red">401</Badge> <strong>Unable to verify member email update</strong></p>

    <p>The member's new email could not be verified because the verification deadline has passed. Try updating the email again.</p>
  </div>

  ```js theme={null}
  {
    "status_code": 401,
    "request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
    "error_type": "unable_to_verify_member_email_update",
    "error_message": "The member's new email could not be verified because the verification deadline has passed. Try updating the email again.",
    "error_url": "https://stytch.com/docs/api-reference/b2b/api/errors/401#unable_to_verify_member_email_update"
  }
  ```
</Columns>

<Heading noAnchor={true} level={3}>Need help?</Heading>

<Columns cols={2}>
  <Card title="Send us an email" icon="mail" horizontal href="mailto:support@stytch.com" />

  <Card title="Contact us on slack" icon="slack" horizontal href={PUBLIC_SLACK_INVITE_URL} />
</Columns>

***

## unauthorized\_action

<Columns cols={2}>
  <div>
    <p><Badge color="red">401</Badge> <strong>Unauthorized action</strong></p>

    <p>Unauthorized action.</p>
  </div>

  ```js theme={null}
  {
    "status_code": 401,
    "request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
    "error_type": "unauthorized_action",
    "error_message": "Unauthorized action.",
    "error_url": "https://stytch.com/docs/api-reference/b2b/api/errors/401#unauthorized_action"
  }
  ```
</Columns>

<Heading noAnchor={true} level={3}>Need help?</Heading>

<Columns cols={2}>
  <Card title="Send us an email" icon="mail" horizontal href="mailto:support@stytch.com" />

  <Card title="Contact us on slack" icon="slack" horizontal href={PUBLIC_SLACK_INVITE_URL} />
</Columns>

***

## unauthorized\_billing\_permissions

<Columns cols={2}>
  <div>
    <p><Badge color="red">401</Badge> <strong>Unauthorized billing permissions</strong></p>

    <p>This action or feature is not supported by your billing tier. Please visit [https://stytch.com/dashboard/settings/pricing-plans](https://stytch.com/dashboard/settings/pricing-plans) for more information.</p>
  </div>

  ```js theme={null}
  {
    "status_code": 401,
    "request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
    "error_type": "unauthorized_billing_permissions",
    "error_message": "This action or feature is not supported by your billing tier. Please visit https://stytch.com/dashboard/settings/pricing-plans for more information.",
    "error_url": "https://stytch.com/docs/api-reference/b2b/api/errors/401#unauthorized_billing_permissions"
  }
  ```
</Columns>

<Heading noAnchor={true} level={3}>Need help?</Heading>

<Columns cols={2}>
  <Card title="Send us an email" icon="mail" horizontal href="mailto:support@stytch.com" />

  <Card title="Contact us on slack" icon="slack" horizontal href={PUBLIC_SLACK_INVITE_URL} />
</Columns>

***

## unauthorized\_credentials

<Columns cols={2}>
  <div>
    <p><Badge color="red">401</Badge> <strong>Unauthorized credentials</strong></p>

    <p>The provided credentials (`project_id` and `secret`) were invalid, an incorrect password was provided to an Authenticate Password request, or an invalid/expired session token was included in a request.</p>

    <Heading noAnchor={true} level={3}>Common Causes</Heading>

    <ul>
      <li>Working with multiple Stytch Projects can result in the `project_id` and `secret` getting mixed up.</li>
      <li>Improper clearing of revoked session cookies</li>
    </ul>

    <Heading noAnchor={true} level={3}>Troubleshooting</Heading>

    <ul>
      <li>Compare the `secret` and `project_id` you are using the the values in the Stytch Dashboard.</li>
      <li>Confirm that the password provided to our Authenticate Password endpoint was correct, or prompt the user to reset their password.</li>
      <li>Confirm the `secret` and `project_id` are associated within the same project.</li>
      <li>Generate a new `secret` for your `project_id` in the Stytch Dashboard.</li>
      <li>Ensure that there are no expired/invalid session tokens being included in requests.</li>
    </ul>
  </div>

  ```js theme={null}
  {
    "status_code": 401,
    "request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
    "error_type": "unauthorized_credentials",
    "error_message": "Unauthorized credentials.",
    "error_url": "https://stytch.com/docs/api-reference/b2b/api/errors/401#unauthorized_credentials"
  }
  ```
</Columns>

<Heading noAnchor={true} level={3}>Need help?</Heading>

<Columns cols={2}>
  <Card title="Send us an email" icon="mail" horizontal href="mailto:support@stytch.com" />

  <Card title="Contact us on slack" icon="slack" horizontal href={PUBLIC_SLACK_INVITE_URL} />
</Columns>

***

## unauthorized\_credentials\_homepage

<Columns cols={2}>
  <div>
    <p><Badge color="red">401</Badge> <strong>Unauthorized credentials homepage</strong></p>

    <p>Thanks for trying Stytch! Replace the project ID and secret with your credentials from the developer dashboard to start adding users. To get started, sign up here: [https://stytch.com/login](https://stytch.com/login)</p>
  </div>

  ```js theme={null}
  {
    "status_code": 401,
    "request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
    "error_type": "unauthorized_credentials_homepage",
    "error_message": "Thanks for trying Stytch! Replace the project ID and secret with your credentials from the developer dashboard to start adding users. To get started, sign up here: https://stytch.com/login",
    "error_url": "https://stytch.com/docs/api-reference/b2b/api/errors/401#unauthorized_credentials_homepage"
  }
  ```
</Columns>

<Heading noAnchor={true} level={3}>Need help?</Heading>

<Columns cols={2}>
  <Card title="Send us an email" icon="mail" horizontal href="mailto:support@stytch.com" />

  <Card title="Contact us on slack" icon="slack" horizontal href={PUBLIC_SLACK_INVITE_URL} />
</Columns>

***

## unauthorized\_project\_id\_live

<Columns cols={2}>
  <div>
    <p><Badge color="red">401</Badge> <strong>Unauthorized project id live</strong></p>

    <p>Unauthorized credentials. Looks like the project ID supplied in the request was a live project id. Try using a test project id when hitting test.stytch.com.</p>
  </div>

  ```js theme={null}
  {
    "status_code": 401,
    "request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
    "error_type": "unauthorized_project_id_live",
    "error_message": "Unauthorized credentials. Looks like the project ID supplied in the request was a live project id. Try using a test project id when hitting test.stytch.com.",
    "error_url": "https://stytch.com/docs/api-reference/b2b/api/errors/401#unauthorized_project_id_live"
  }
  ```
</Columns>

<Heading noAnchor={true} level={3}>Need help?</Heading>

<Columns cols={2}>
  <Card title="Send us an email" icon="mail" horizontal href="mailto:support@stytch.com" />

  <Card title="Contact us on slack" icon="slack" horizontal href={PUBLIC_SLACK_INVITE_URL} />
</Columns>

***

## unauthorized\_project\_id\_test

<Columns cols={2}>
  <div>
    <p><Badge color="red">401</Badge> <strong>Unauthorized project id test</strong></p>

    <p>Unauthorized credentials. Looks like the project ID supplied in the request was a test project id. Try using a live project id when hitting stytch.com.</p>
  </div>

  ```js theme={null}
  {
    "status_code": 401,
    "request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
    "error_type": "unauthorized_project_id_test",
    "error_message": "Unauthorized credentials. Looks like the project ID supplied in the request was a test project id. Try using a live project id when hitting stytch.com.",
    "error_url": "https://stytch.com/docs/api-reference/b2b/api/errors/401#unauthorized_project_id_test"
  }
  ```
</Columns>

<Heading noAnchor={true} level={3}>Need help?</Heading>

<Columns cols={2}>
  <Card title="Send us an email" icon="mail" horizontal href="mailto:support@stytch.com" />

  <Card title="Contact us on slack" icon="slack" horizontal href={PUBLIC_SLACK_INVITE_URL} />
</Columns>

***

## unavailable\_endpoint

<Columns cols={2}>
  <div>
    <p><Badge color="red">401</Badge> <strong>Unavailable endpoint</strong></p>

    <p>Thanks for trying Stytch! We're glad you're excited to try our new products, but this one is still under construction. Please reach out to [support@stytch.com](mailto:support@stytch.com) if you're interested.</p>
  </div>

  ```js theme={null}
  {
    "status_code": 401,
    "request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
    "error_type": "unavailable_endpoint",
    "error_message": "Thanks for trying Stytch! We're glad you're excited to try our new products, but this one is still under construction. Please reach out to support@stytch.com if you're interested.",
    "error_url": "https://stytch.com/docs/api-reference/b2b/api/errors/401#unavailable_endpoint"
  }
  ```
</Columns>

<Heading noAnchor={true} level={3}>Need help?</Heading>

<Columns cols={2}>
  <Card title="Send us an email" icon="mail" horizontal href="mailto:support@stytch.com" />

  <Card title="Contact us on slack" icon="slack" horizontal href={PUBLIC_SLACK_INVITE_URL} />
</Columns>

***

## user\_unauthenticated

<Columns cols={2}>
  <div>
    <p><Badge color="red">401</Badge> <strong>User unauthenticated</strong></p>

    <p>User must have an active Stytch session to call this method. Have you logged in yet?</p>
  </div>

  ```js theme={null}
  {
    "status_code": 401,
    "request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
    "error_type": "user_unauthenticated",
    "error_message": "User must have an active Stytch session to call this method. Have you logged in yet?",
    "error_url": "https://stytch.com/docs/api-reference/b2b/api/errors/401#user_unauthenticated"
  }
  ```
</Columns>

<Heading noAnchor={true} level={3}>Need help?</Heading>

<Columns cols={2}>
  <Card title="Send us an email" icon="mail" horizontal href="mailto:support@stytch.com" />

  <Card title="Contact us on slack" icon="slack" horizontal href={PUBLIC_SLACK_INVITE_URL} />
</Columns>

***

## weak\_factor\_combination

<Columns cols={2}>
  <div>
    <p><Badge color="red">401</Badge> <strong>Weak factor combination</strong></p>

    <p>This session does not contain a strong combination of factors.</p>
  </div>

  ```js theme={null}
  {
    "status_code": 401,
    "request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
    "error_type": "weak_factor_combination",
    "error_message": "This session does not contain a strong combination of factors.",
    "error_url": "https://stytch.com/docs/api-reference/b2b/api/errors/401#weak_factor_combination"
  }
  ```
</Columns>

<Heading noAnchor={true} level={3}>Need help?</Heading>

<Columns cols={2}>
  <Card title="Send us an email" icon="mail" horizontal href="mailto:support@stytch.com" />

  <Card title="Contact us on slack" icon="slack" horizontal href={PUBLIC_SLACK_INVITE_URL} />
</Columns>

***
