/
Contact usSee pricingStart building
    Introduction
    Overview
    Postman
    Organizations
      Organization object
      Create an organization
      Get an organization
      Update an organization
      Search for organizations
      Delete an organization
    Members
      Member object
      Create a Member
      Get a Member
      Get a Member (Dangerous)
      Update a Member
      Reactivate a Member
      Search for Members
      Unlink Retired Email
    • Delete

      • Delete a Member
        Delete Member password
        Delete Member MFA phone number
        Delete Member MFA TOTP
    RBAC
      Resource object
      Role object
      Scope object
      Get RBAC Policy
    Email magic links
    • Organization

      • Send login or signup email
        Send invite email
        Authenticate Magic Link
    • Discovery

      • Send discovery email
        Authenticate discovery Magic Link
    Email one-time passcodes (OTP)
    • Organization

      • Send login or signup OTP
        Authenticate OTP
    • Discovery

      • Send discovery OTP
        Authenticate discovery OTP
    OAuth
    • Discovery

      • Use Google for discovery
        Use Microsoft for discovery
        Use HubSpot for discovery
        Use Slack for discovery
        Use GitHub for discovery
        Authenticate discovery OAuth
    • Organization

      • Login with Google
        Login with Microsoft
        Login with HubSpot
        Login with Slack
        Login with GitHub
        Authenticate OAuth
    • Token

      • Get Google Access Token
        Get Microsoft Access Token
        Get HubSpot Access Token
        Get Slack Access Token
        Get GitHub Access Token
    Session management
      Session object
      Get JWKS
      Get Session
      Authenticate Session
      Exchange Session
      Revoke Session
      Migrate Session
    Single sign-on (SS0)
      SAML Connection object
      OIDC Connection object
      External Connection object
    • SAML

      • Create SAML Connection
        Update SAML Connection
        Update SAML Connection by Metadata URL
        Delete SAML Verification Certificate
    • OIDC

      • Create OIDC Connection
        Update OIDC Connection
        Get OIDC Access Token
    • External

      • Create External Connection
        Update External Connection
    • Shared

      • Get SSO Connections
        Delete SSO Connection
        Start SSO Authenticate
        Complete SSO Authenticate
    SCIM
      SCIM Connection Object
    • Connection management

      • Create SCIM Connection
        Update SCIM Connection
        Delete SCIM Connection
        Get SCIM Connection
    • Token management

      • Start SCIM Token Rotation
        Complete SCIM Token Rotation
        Cancel SCIM Token Rotation
    • SCIM groups

      • Get SCIM Connection Groups
    Discovery
      Discovered Organization object
      Create Organization via Discovery
      List Organizations
      Exchange Intermediate Session
    Passwords
      Authenticate
      Discovery Authenticate
      Strength check
      Migrate
    • Reset Options

      • Password reset by email start
        Password reset by email
        Password reset by existing password
        Password reset by session
        Discovery Password reset by email start
        Discovery Password reset by email
        Require Password reset by email
    Multi-Factor Authentication (MFA)
    • One-time passcodes

      • Send SMS OTP
        Authenticate SMS OTP
    • Time-based one-time passcodes

      • Create TOTP
        Authenticate TOTP
        Migrate TOTP
    • Recovery codes

      • Get recovery codes
        Recover
        Rotate recovery codes
    M2M Authentication
      M2M Client Object
    • TOKEN

      • Get Access Token
        Authenticate Access Token
    • M2M Client

      • Create M2M client
        Get M2M client
        Search M2M clients
        Update M2M client
        Delete M2M client
    • Rotate secret

      • Start secret rotation
        Rotate secret
        Cancel secret rotation
    Connected AppsBeta
      Get Access Token
    • Tokens

      • Connected App ID Token Object
        Connected App Access Token Object
    • Configuration

      • Get JWKS
        Get OpenID Configuration
    • Methods

      • Introspect Token
        Authenticate Access Token (Local)
        Exchange Access Token
        Revoke Token
        Get UserInfo
    Impersonation
      Authenticate Token
    Resources
      Organization authentication settings
      Common email domains
      Member states
      Email templates
      URL validation
      Metadata
      SAML overview
      SAML Certificates
    Errors
      Overview
      Error object
      400
      401
      403
      404
      405
      429
      499
      500
      503
Get support on SlackVisit our developer forum

Contact us

B2B Saas Authentication

/

API reference

/

Errors

/

404

404 errors

billing_info_not_found

404
Not found

Billing info could not be found.

Error
{
  "status_code": 404,
  "request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
  "error_type": "billing_info_not_found",
  "error_message": "Billing info could not be found.",
  "error_url": "https://stytch.com/docs/b2b/api/errors/404#billing_info_not_found"
}
How to get help
Visit our forum
Stytch Forum

Send us an email
support@stytch.com

Ask in Slack
Slack

captcha_provider_not_found

404
Not found

Captcha Provider config could not be found.

Error
{
  "status_code": 404,
  "request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
  "error_type": "captcha_provider_not_found",
  "error_message": "Captcha Provider config could not be found.",
  "error_url": "https://stytch.com/docs/b2b/api/errors/404#captcha_provider_not_found"
}
How to get help
Visit our forum
Stytch Forum

Send us an email
support@stytch.com

Ask in Slack
Slack

cname_record_not_found

404
Not found

Could not find cname record using the values provided.

Error
{
  "status_code": 404,
  "request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
  "error_type": "cname_record_not_found",
  "error_message": "Could not find cname record using the values provided.",
  "error_url": "https://stytch.com/docs/b2b/api/errors/404#cname_record_not_found"
}
How to get help
Visit our forum
Stytch Forum

Send us an email
support@stytch.com

Ask in Slack
Slack

default_provider_not_allowed

404
Not found

The Stytch Default OAuth Provider is not compatible with this feature, which requires additional configuration for your project. Please configure your own OAuth provider in the dashboard at https://stytch.com/dashboard/oauth.

Error
{
  "status_code": 404,
  "request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
  "error_type": "default_provider_not_allowed",
  "error_message": "The Stytch Default OAuth Provider is not compatible with this feature, which requires additional configuration for your project. Please configure your own OAuth provider in the dashboard at https://stytch.com/dashboard/oauth.",
  "error_url": "https://stytch.com/docs/b2b/api/errors/404#default_provider_not_allowed"
}
How to get help
Visit our forum
Stytch Forum

Send us an email
support@stytch.com

Ask in Slack
Slack

email_not_found

404
Not found

There is not a user in this project associated with the supplied email or email_id.

Common causes

  • The user mistypes their email when trying to authenticate via an email-based method which does not fall back to creating a new user. This includes password, magic link (via send), and OTP (via send) authentication.

Troubleshooting steps

  • Prompt the user to check their inputted email, and try again

  • Consider using a loginOrCreate method if you would like new users to be able to authenticate

Error
{
  "status_code": 404,
  "request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
  "error_type": "email_not_found",
  "error_message": "Email could not be found.",
  "error_url": "https://stytch.com/docs/b2b/api/errors/404#email_not_found"
}
How to get help
Visit our forum
Stytch Forum

Send us an email
support@stytch.com

Ask in Slack
Slack

email_settings_not_found

404
Not found

Email Settings could not be found.

Error
{
  "status_code": 404,
  "request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
  "error_type": "email_settings_not_found",
  "error_message": "Email Settings could not be found.",
  "error_url": "https://stytch.com/docs/b2b/api/errors/404#email_settings_not_found"
}
How to get help
Visit our forum
Stytch Forum

Send us an email
support@stytch.com

Ask in Slack
Slack

email_template_not_found

404
Not found

Email Template could not be found.

Error
{
  "status_code": 404,
  "request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
  "error_type": "email_template_not_found",
  "error_message": "Email Template could not be found.",
  "error_url": "https://stytch.com/docs/b2b/api/errors/404#email_template_not_found"
}
How to get help
Visit our forum
Stytch Forum

Send us an email
support@stytch.com

Ask in Slack
Slack

idp_access_token_could_not_be_exchanged

404
Not found

The access token could not be exchanged.

Error
{
  "status_code": 404,
  "request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
  "error_type": "idp_access_token_could_not_be_exchanged",
  "error_message": "The access token could not be exchanged.",
  "error_url": "https://stytch.com/docs/b2b/api/errors/404#idp_access_token_could_not_be_exchanged"
}
How to get help
Visit our forum
Stytch Forum

Send us an email
support@stytch.com

Ask in Slack
Slack

idp_access_token_not_found

404
Not found

The access token could not be found.

Error
{
  "status_code": 404,
  "request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
  "error_type": "idp_access_token_not_found",
  "error_message": "The access token could not be found.",
  "error_url": "https://stytch.com/docs/b2b/api/errors/404#idp_access_token_not_found"
}
How to get help
Visit our forum
Stytch Forum

Send us an email
support@stytch.com

Ask in Slack
Slack

idp_auth_code_not_found

404
Not found

The authorization code could not be found.

Error
{
  "status_code": 404,
  "request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
  "error_type": "idp_auth_code_not_found",
  "error_message": "The authorization code could not be found.",
  "error_url": "https://stytch.com/docs/b2b/api/errors/404#idp_auth_code_not_found"
}
How to get help
Visit our forum
Stytch Forum

Send us an email
support@stytch.com

Ask in Slack
Slack

idp_client_not_found

404
Not found

The IDP client requested could not be found.

Error
{
  "status_code": 404,
  "request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
  "error_type": "idp_client_not_found",
  "error_message": "The IDP client requested could not be found.",
  "error_url": "https://stytch.com/docs/b2b/api/errors/404#idp_client_not_found"
}
How to get help
Visit our forum
Stytch Forum

Send us an email
support@stytch.com

Ask in Slack
Slack

idp_refresh_token_not_found

404
Not found

The refresh token could not be found.

Error
{
  "status_code": 404,
  "request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
  "error_type": "idp_refresh_token_not_found",
  "error_message": "The refresh token could not be found.",
  "error_url": "https://stytch.com/docs/b2b/api/errors/404#idp_refresh_token_not_found"
}
How to get help
Visit our forum
Stytch Forum

Send us an email
support@stytch.com

Ask in Slack
Slack

insufficient_factors_for_session_exchange

404
Not found

Session exchange is only supported with sessions containing magic link or OAuth factors. Complete a magic link flow or OAuth flow and try again.

Error
{
  "status_code": 404,
  "request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
  "error_type": "insufficient_factors_for_session_exchange",
  "error_message": "Session exchange is only supported with sessions containing magic link or OAuth factors. Complete a magic link flow or OAuth flow and try again.",
  "error_url": "https://stytch.com/docs/b2b/api/errors/404#insufficient_factors_for_session_exchange"
}
How to get help
Visit our forum
Stytch Forum

Send us an email
support@stytch.com

Ask in Slack
Slack

intermediate_session_not_found

404
Not found

Intermediate session could not be found.

Error
{
  "status_code": 404,
  "request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
  "error_type": "intermediate_session_not_found",
  "error_message": "Intermediate session could not be found.",
  "error_url": "https://stytch.com/docs/b2b/api/errors/404#intermediate_session_not_found"
}
How to get help
Visit our forum
Stytch Forum

Send us an email
support@stytch.com

Ask in Slack
Slack

magic_link_not_found

404
Not found

The magic link could not be authenticated, try sending another magic link to the user.

Error
{
  "status_code": 404,
  "request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
  "error_type": "magic_link_not_found",
  "error_message": "The magic link could not be authenticated, try sending another magic link to the user.",
  "error_url": "https://stytch.com/docs/b2b/api/errors/404#magic_link_not_found"
}
How to get help
Visit our forum
Stytch Forum

Send us an email
support@stytch.com

Ask in Slack
Slack

member_does_not_exist_in_organization

404
Not found

Member does not exist in the specified organization.

Error
{
  "status_code": 404,
  "request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
  "error_type": "member_does_not_exist_in_organization",
  "error_message": "Member does not exist in the specified organization.",
  "error_url": "https://stytch.com/docs/b2b/api/errors/404#member_does_not_exist_in_organization"
}
How to get help
Visit our forum
Stytch Forum

Send us an email
support@stytch.com

Ask in Slack
Slack

member_not_found

404
Not found

Member could not be found.

Error
{
  "status_code": 404,
  "request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
  "error_type": "member_not_found",
  "error_message": "Member could not be found.",
  "error_url": "https://stytch.com/docs/b2b/api/errors/404#member_not_found"
}
How to get help
Visit our forum
Stytch Forum

Send us an email
support@stytch.com

Ask in Slack
Slack

member_oauth_token_not_found

404
Not found

Member OAuth Token not found

Error
{
  "status_code": 404,
  "request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
  "error_type": "member_oauth_token_not_found",
  "error_message": "Member OAuth Token not found",
  "error_url": "https://stytch.com/docs/b2b/api/errors/404#member_oauth_token_not_found"
}
How to get help
Visit our forum
Stytch Forum

Send us an email
support@stytch.com

Ask in Slack
Slack

member_oidc_token_not_found

404
Not found

Member OIDC Token not found

Error
{
  "status_code": 404,
  "request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
  "error_type": "member_oidc_token_not_found",
  "error_message": "Member OIDC Token not found",
  "error_url": "https://stytch.com/docs/b2b/api/errors/404#member_oidc_token_not_found"
}
How to get help
Visit our forum
Stytch Forum

Send us an email
support@stytch.com

Ask in Slack
Slack

member_phone_number_not_found

404
Not found

Member Phone Number could not be found.

Error
{
  "status_code": 404,
  "request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
  "error_type": "member_phone_number_not_found",
  "error_message": "Member Phone Number could not be found.",
  "error_url": "https://stytch.com/docs/b2b/api/errors/404#member_phone_number_not_found"
}
How to get help
Visit our forum
Stytch Forum

Send us an email
support@stytch.com

Ask in Slack
Slack

no_captcha_provider_configured

404
Not found

There's no Captcha Provider configured for this platform. Please configure the captcha config at https://stytch.com/dashboard/captcha/recaptcha.

Error
{
  "status_code": 404,
  "request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
  "error_type": "no_captcha_provider_configured",
  "error_message": "There's no Captcha Provider configured for this platform. Please configure the captcha config at https://stytch.com/dashboard/captcha/recaptcha.",
  "error_url": "https://stytch.com/docs/b2b/api/errors/404#no_captcha_provider_configured"
}
How to get help
Visit our forum
Stytch Forum

Send us an email
support@stytch.com

Ask in Slack
Slack

oauth_config_not_found

404
Not found

The OAuth config was not found. You can configure your OAuth providers in the dashboard at https://stytch.com/dashboard/oauth.

Error
{
  "status_code": 404,
  "request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
  "error_type": "oauth_config_not_found",
  "error_message": "The OAuth config was not found. You can configure your OAuth providers in the dashboard at https://stytch.com/dashboard/oauth.",
  "error_url": "https://stytch.com/docs/b2b/api/errors/404#oauth_config_not_found"
}
How to get help
Visit our forum
Stytch Forum

Send us an email
support@stytch.com

Ask in Slack
Slack

oauth_token_not_found

404
Not found

The OAuth token provided can not be found. This may be because the token never existed, or has already been used successfully.

Common causes

  • The web app is attempting to authenticate the token multiple times. In this case, the first attempt results in a successful response, but all following attempts result in this error.

Troubleshooting steps

  • Review your code which grabs the token from the redirect URL query params and authenticates the token. Each token can only be authenticated once.

Error
{
  "status_code": 404,
  "request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
  "error_type": "oauth_token_not_found",
  "error_message": "OAuth Token could not be found.",
  "error_url": "https://stytch.com/docs/b2b/api/errors/404#oauth_token_not_found"
}
How to get help
Visit our forum
Stytch Forum

Send us an email
support@stytch.com

Ask in Slack
Slack

oauth_user_registration_not_found

404
Not found

OAuth user registration could not be found.

Error
{
  "status_code": 404,
  "request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
  "error_type": "oauth_user_registration_not_found",
  "error_message": "OAuth user registration could not be found.",
  "error_url": "https://stytch.com/docs/b2b/api/errors/404#oauth_user_registration_not_found"
}
How to get help
Visit our forum
Stytch Forum

Send us an email
support@stytch.com

Ask in Slack
Slack

oidc_connection_not_found

404
Not found

OIDC Connection could not be found.

Error
{
  "status_code": 404,
  "request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
  "error_type": "oidc_connection_not_found",
  "error_message": "OIDC Connection could not be found.",
  "error_url": "https://stytch.com/docs/b2b/api/errors/404#oidc_connection_not_found"
}
How to get help
Visit our forum
Stytch Forum

Send us an email
support@stytch.com

Ask in Slack
Slack

organization_not_found

404
Not found

Organization could not be found.

Error
{
  "status_code": 404,
  "request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
  "error_type": "organization_not_found",
  "error_message": "Organization could not be found.",
  "error_url": "https://stytch.com/docs/b2b/api/errors/404#organization_not_found"
}
How to get help
Visit our forum
Stytch Forum

Send us an email
support@stytch.com

Ask in Slack
Slack

organization_user_not_found

404
Not found

Organization User could not be found.

Error
{
  "status_code": 404,
  "request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
  "error_type": "organization_user_not_found",
  "error_message": "Organization User could not be found.",
  "error_url": "https://stytch.com/docs/b2b/api/errors/404#organization_user_not_found"
}
How to get help
Visit our forum
Stytch Forum

Send us an email
support@stytch.com

Ask in Slack
Slack

otp_code_not_found

404
Not found

The passcode provided was incorrect and could not be authenticated.

Common causes

  • The user is not providing the correct OTP code for their authentication attempt. They may have mistyped the value, or are referencing an old or unassociated OPT code.

Troubleshooting steps

  • Ask the user to try again. Additionally, provide an option for the user to send a new code if they are unable to authenticate.

Error
{
  "status_code": 404,
  "request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
  "error_type": "otp_code_not_found",
  "error_message": "The passcode was incorrect and could not be authenticated, encourage the user to try inputting the passcode again or send another passcode.",
  "error_url": "https://stytch.com/docs/b2b/api/errors/404#otp_code_not_found"
}
How to get help
Visit our forum
Stytch Forum

Send us an email
support@stytch.com

Ask in Slack
Slack

password_not_found

404
Not found

The password could not be found.

Error
{
  "status_code": 404,
  "request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
  "error_type": "password_not_found",
  "error_message": "The password could not be found.",
  "error_url": "https://stytch.com/docs/b2b/api/errors/404#password_not_found"
}
How to get help
Visit our forum
Stytch Forum

Send us an email
support@stytch.com

Ask in Slack
Slack

phone_number_not_found

404
Not found

The provided phone number is not attached to an existing User.

Common causes

  • Calling a /send instead of a login_or_create endpoint for a new user; /send will only succeed given a phone number which is already attached to an existing User.

Error
{
  "status_code": 404,
  "request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
  "error_type": "phone_number_not_found",
  "error_message": "Phone Number could not be found.",
  "error_url": "https://stytch.com/docs/b2b/api/errors/404#phone_number_not_found"
}
How to get help
Visit our forum
Stytch Forum

Send us an email
support@stytch.com

Ask in Slack
Slack

project_not_found

404
Not found

Project could not be found.

Error
{
  "status_code": 404,
  "request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
  "error_type": "project_not_found",
  "error_message": "Project could not be found.",
  "error_url": "https://stytch.com/docs/b2b/api/errors/404#project_not_found"
}
How to get help
Visit our forum
Stytch Forum

Send us an email
support@stytch.com

Ask in Slack
Slack

project_user_not_found

404
Not found

Project User could not be found.

Error
{
  "status_code": 404,
  "request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
  "error_type": "project_user_not_found",
  "error_message": "Project User could not be found.",
  "error_url": "https://stytch.com/docs/b2b/api/errors/404#project_user_not_found"
}
How to get help
Visit our forum
Stytch Forum

Send us an email
support@stytch.com

Ask in Slack
Slack

public_token_not_found

404
Not found

public_token could not be found.

Error
{
  "status_code": 404,
  "request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
  "error_type": "public_token_not_found",
  "error_message": "public_token could not be found.",
  "error_url": "https://stytch.com/docs/b2b/api/errors/404#public_token_not_found"
}
How to get help
Visit our forum
Stytch Forum

Send us an email
support@stytch.com

Ask in Slack
Slack

recovery_codes_already_exist

404
Not found

The member you are attempting to migrate recovery codes into already has recovery codes attached. Please delete the existing authentication method associated with these codes before attempting to migrate new ones.

Error
{
  "status_code": 404,
  "request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
  "error_type": "recovery_codes_already_exist",
  "error_message": "The member you are attempting to migrate recovery codes into already has recovery codes attached. Please delete the existing authentication method associated with these codes before attempting to migrate new ones.",
  "error_url": "https://stytch.com/docs/b2b/api/errors/404#recovery_codes_already_exist"
}
How to get help
Visit our forum
Stytch Forum

Send us an email
support@stytch.com

Ask in Slack
Slack

recovery_codes_not_found

404
Not found

Recovery codes could not be found.

Error
{
  "status_code": 404,
  "request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
  "error_type": "recovery_codes_not_found",
  "error_message": "Recovery codes could not be found.",
  "error_url": "https://stytch.com/docs/b2b/api/errors/404#recovery_codes_not_found"
}
How to get help
Visit our forum
Stytch Forum

Send us an email
support@stytch.com

Ask in Slack
Slack

redirect_url_not_found

404
Not found

Redirect URL could not be found.

Error
{
  "status_code": 404,
  "request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
  "error_type": "redirect_url_not_found",
  "error_message": "Redirect URL could not be found.",
  "error_url": "https://stytch.com/docs/b2b/api/errors/404#redirect_url_not_found"
}
How to get help
Visit our forum
Stytch Forum

Send us an email
support@stytch.com

Ask in Slack
Slack

route_not_found

404
Not found

The route provided is not supported.

Error
{
  "status_code": 404,
  "request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
  "error_type": "route_not_found",
  "error_message": "The route provided is not supported.",
  "error_url": "https://stytch.com/docs/b2b/api/errors/404#route_not_found"
}
How to get help
Visit our forum
Stytch Forum

Send us an email
support@stytch.com

Ask in Slack
Slack

route_not_supported_in_test

404
Not found

This route is not supported in the test environment. Please use api.stytch.com instead.

Error
{
  "status_code": 404,
  "request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
  "error_type": "route_not_supported_in_test",
  "error_message": "This route is not supported in the test environment. Please use api.stytch.com instead.",
  "error_url": "https://stytch.com/docs/b2b/api/errors/404#route_not_supported_in_test"
}
How to get help
Visit our forum
Stytch Forum

Send us an email
support@stytch.com

Ask in Slack
Slack

saml_connection_not_found

404
Not found

SAML Connection could not be found.

Error
{
  "status_code": 404,
  "request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
  "error_type": "saml_connection_not_found",
  "error_message": "SAML Connection could not be found.",
  "error_url": "https://stytch.com/docs/b2b/api/errors/404#saml_connection_not_found"
}
How to get help
Visit our forum
Stytch Forum

Send us an email
support@stytch.com

Ask in Slack
Slack

secret_not_found

404
Not found

Secret could not be found.

Error
{
  "status_code": 404,
  "request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
  "error_type": "secret_not_found",
  "error_message": "Secret could not be found.",
  "error_url": "https://stytch.com/docs/b2b/api/errors/404#secret_not_found"
}
How to get help
Visit our forum
Stytch Forum

Send us an email
support@stytch.com

Ask in Slack
Slack

session_not_found

404
Not found

The session could not be found. It could be revoked, expired, or nonexistent.

Common causes

  • When a session expires or is revoked, Stytch will return a session_not_found error for an attempt to authenticate it.

  • A user returns to a browser session after a long period of inactivity.

  • A user is deleted and their session is automatically revoked.

Troubleshooting steps

  • You can pull all of a user’s active sessions using the get sessions endpoint.

  • In most cases, a session_not_found error should prompt your app to re-authenticate the user; their session was either revoked, expired, or otherwise no longer exists. They’ll need to generate a new session.

Error
{
  "status_code": 404,
  "request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
  "error_type": "session_not_found",
  "error_message": "Session could not be found.",
  "error_url": "https://stytch.com/docs/b2b/api/errors/404#session_not_found"
}
How to get help
Visit our forum
Stytch Forum

Send us an email
support@stytch.com

Ask in Slack
Slack

sso_connection_not_found

404
Not found

SSO Connection could not be found.

Error
{
  "status_code": 404,
  "request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
  "error_type": "sso_connection_not_found",
  "error_message": "SSO Connection could not be found.",
  "error_url": "https://stytch.com/docs/b2b/api/errors/404#sso_connection_not_found"
}
How to get help
Visit our forum
Stytch Forum

Send us an email
support@stytch.com

Ask in Slack
Slack

sso_token_not_found

404
Not found

SSO Token could not be found.

Error
{
  "status_code": 404,
  "request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
  "error_type": "sso_token_not_found",
  "error_message": "SSO Token could not be found.",
  "error_url": "https://stytch.com/docs/b2b/api/errors/404#sso_token_not_found"
}
How to get help
Visit our forum
Stytch Forum

Send us an email
support@stytch.com

Ask in Slack
Slack

totp_not_found

404
Not found

The TOTP could not be found.

Error
{
  "status_code": 404,
  "request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
  "error_type": "totp_not_found",
  "error_message": "The TOTP could not be found.",
  "error_url": "https://stytch.com/docs/b2b/api/errors/404#totp_not_found"
}
How to get help
Visit our forum
Stytch Forum

Send us an email
support@stytch.com

Ask in Slack
Slack

totps_not_found_for_user

404
Not found

Unable to authenticate totp_code since no active or pending TOTPs could be found for the user.

Error
{
  "status_code": 404,
  "request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
  "error_type": "totps_not_found_for_user",
  "error_message": "Unable to authenticate totp_code since no active or pending TOTPs could be found for the user.",
  "error_url": "https://stytch.com/docs/b2b/api/errors/404#totps_not_found_for_user"
}
How to get help
Visit our forum
Stytch Forum

Send us an email
support@stytch.com

Ask in Slack
Slack

webauthn_registration_not_found

404
Not found

The WebAuthn registration could not be found.

Error
{
  "status_code": 404,
  "request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
  "error_type": "webauthn_registration_not_found",
  "error_message": "The WebAuthn registration could not be found.",
  "error_url": "https://stytch.com/docs/b2b/api/errors/404#webauthn_registration_not_found"
}
How to get help
Visit our forum
Stytch Forum

Send us an email
support@stytch.com

Ask in Slack
Slack