You may not attach an MFA factor to a member that is not active.
400 errors
action_available_only_for_active_members
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "action_available_only_for_active_members",
"error_message": "You may not attach an MFA factor to a member that is not active.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#action_available_only_for_active_members"
}
active_scim_connection_exists
Cannot create a new SCIM connection for the specified organization since the organization already has an active SCIM connection. Organizations may only have one active SCIM connection at a time.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "active_scim_connection_exists",
"error_message": "Cannot create a new SCIM connection for the specified organization since the organization already has an active SCIM connection. Organizations may only have one active SCIM connection at a time.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#active_scim_connection_exists"
}
active_totp_exists
Cannot create a new TOTP for the specified user since the user already has an active TOTP. Users may only have one active TOTP at a time.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "active_totp_exists",
"error_message": "Cannot create a new TOTP for the specified user since the user already has an active TOTP. Users may only have one active TOTP at a time.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#active_totp_exists"
}
allowed_auth_methods_required_for_restricted
Allowed auth methods must be set for 'RESTRICTED' auth methods
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "allowed_auth_methods_required_for_restricted",
"error_message": "Allowed auth methods must be set for 'RESTRICTED' auth methods",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#allowed_auth_methods_required_for_restricted"
}
allowed_mfa_methods_required_for_restricted
Allowed mfa methods must be set for 'RESTRICTED' auth methods
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "allowed_mfa_methods_required_for_restricted",
"error_message": "Allowed mfa methods must be set for 'RESTRICTED' auth methods",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#allowed_mfa_methods_required_for_restricted"
}
apple_oauth_config_not_found
The Apple OAuth config was not found.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "apple_oauth_config_not_found",
"error_message": "The Apple OAuth config was not found.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#apple_oauth_config_not_found"
}
argon_2_key_length_mismatch
The key_length value doesn't match the length of the provided hash.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "argon_2_key_length_mismatch",
"error_message": "The key_length value doesn't match the length of the provided hash.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#argon_2_key_length_mismatch"
}
bad_app_bundle_for_stytch_sdk
This app bundle ID has not been registered as an allowed app for the Stytch SDK. Please add it here: https://stytch.com/dashboard/sdk-configuration
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "bad_app_bundle_for_stytch_sdk",
"error_message": "This app bundle ID has not been registered as an allowed app for the Stytch SDK. Please add it here: https://stytch.com/dashboard/sdk-configuration",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#bad_app_bundle_for_stytch_sdk"
}
bad_domain_for_stytch_sdk
This website has not been registered as an allowed domain for the Stytch SDK. Please add it here: https://stytch.com/dashboard/sdk-configuration
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "bad_domain_for_stytch_sdk",
"error_message": "This website has not been registered as an allowed domain for the Stytch SDK. Please add it here: https://stytch.com/dashboard/sdk-configuration",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#bad_domain_for_stytch_sdk"
}
bad_request
The submitted request is invalid.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "bad_request",
"error_message": "The submitted request is invalid.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#bad_request"
}
bad_vertical_for_stytch_sdk
The credentials used match a different vertical than the one specified in the SDK configuration. Please check if you are using a B2B or B2C project.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "bad_vertical_for_stytch_sdk",
"error_message": "The credentials used match a different vertical than the one specified in the SDK configuration. Please check if you are using a B2B or B2C project.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#bad_vertical_for_stytch_sdk"
}
billing_not_verified
You cannot use this endpoint in the live environment until credit card details are added to your account, but you can try the endpoint in the test environment. Once your billing information is verified, this endpoint can be used in live. Your first 5,000 monthly active users are free every month, but collecting this information helps us prevent abuse of the platform. Please go to billing settings to provide billing information.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "billing_not_verified",
"error_message": "You cannot use this endpoint in the Live environment until credit card details are added to your account, but you can try the endpoint in the Test environment. Once your billing information is verified, this endpoint can be used in Live. Collecting this information helps us prevent abuse of the platform. Please go to https://stytch.com/settings/billing to provide billing information.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#billing_not_verified"
}
billing_not_verified_for_email
You can only send magic links to emails matching your project's domain until credit card details are added to your account. Once your billing information is verified, emails can be sent to anyone. Your first 5,000 monthly active users are free every month, but collecting this information helps us prevent abuse of the platform. Please go to billing settings to provide billing information.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "billing_not_verified_for_email",
"error_message": "You can only send magic links to emails matching your project's domain until credit card details are added to your account. Once your billing information is verified, emails can be sent to anyone. Collecting this information helps us prevent abuse of the platform. Please see https://stytch.com/settings/billing to provide billing information.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#billing_not_verified_for_email"
}
breached_password
Password doesn't meet the API's strength requirements. A password's strength could be tested with the password strength check endpoint.
Common causes
The password was previously leaked, and the password now appears in the HaveIBeenPwned dataset.
Troubleshooting steps
Use the password strength check endpoint endpoint to get actionable feedback on improving the strength of the password string. This feedback can be passed on to the end user via your UI.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "breached_password",
"error_message": "password appears in a list of breached passwords.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#breached_password"
}
cannot_assign_default_rbac_role_id
The default role is implicitly assigned to all members in the project and cannot be explicitly assigned.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "cannot_assign_default_rbac_role_id",
"error_message": "The default role is implicitly assigned to all members in the project and cannot be explicitly assigned.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#cannot_assign_default_rbac_role_id"
}
cannot_delete_default_sso_connection
Please update the default SSO connection setting for this organization to a different SSO connection before deleting.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "cannot_delete_default_sso_connection",
"error_message": "Please update the default SSO connection setting for this organization to a different SSO connection before deleting.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#cannot_delete_default_sso_connection"
}
cannot_delete_email
Cannot delete the last email for a user with a password. This ensures they can complete a password reset.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "cannot_delete_email",
"error_message": "Cannot delete the last email for a user with a password. This ensures they can complete a password reset.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#cannot_delete_email"
}
cannot_delete_last_primary_factor
You cannot delete the last primary factor (email, phone number, crypto wallet) for a user because that would make their account difficult or impossible to recover. If you want to remove the user from your project, delete the user instead.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "cannot_delete_last_primary_factor",
"error_message": "Cannot delete the last primary factor (email, phone number, crypto wallet) for a user. If you want to delete the user instead, use the DeleteUser endpoint: https://stytch.com/docs/api/delete-user",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#cannot_delete_last_primary_factor"
}
cannot_delete_last_sso_verification_key
Cannot delete the last verification certificate for a connection. Please pass in another one before deleting this one.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "cannot_delete_last_sso_verification_key",
"error_message": "Cannot delete the last verification certificate for a connection. Please pass in another one before deleting this one.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#cannot_delete_last_sso_verification_key"
}
cannot_preserve_existing_sessions
preserve_existing_sessions cannot be set to true if attempting to update a member's email.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "cannot_preserve_existing_sessions",
"error_message": "preserve_existing_sessions cannot be set to true if attempting to update a member's email.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#cannot_preserve_existing_sessions"
}
cannot_reset_password_with_existing_password
Cannot reset user's password using their existing password. This could be because their existing password was part of a data breach or to prevent password squatting. Please reset the password via a session or email reset.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "cannot_reset_password_with_existing_password",
"error_message": "Cannot reset user's password using their existing password. This could be because their existing password was part of a data breach or to prevent password squatting. Please reset the password via a session or email reset.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#cannot_reset_password_with_existing_password"
}
cannot_use_webauthn_with_pending_user
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "cannot_use_webauthn_with_pending_user",
"error_message": "WebAuthn can only be used for active users. To learn more about WebAuthn and user states read more at https://stytch.com/docs/api/webauthn-register-start and https://stytch.com/docs/api/user-states.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#cannot_use_webauthn_with_pending_user"
}
client_secret_too_long
Client secret is too long. Please make sure you have the correct value.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "client_secret_too_long",
"error_message": "Client secret is too long. Please make sure you have the correct value.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#client_secret_too_long"
}
cross_org_passwords_enabled
Cross-organization passwords are enabled for this project. This endpoint is not valid for projects using cross-organization passwords.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "cross_org_passwords_enabled",
"error_message": "Cross-organization passwords are enabled for this project. This endpoint is not valid for projects using cross-organization passwords.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#cross_org_passwords_enabled"
}
cross_org_passwords_not_enabled
Cross-organization passwords are not enabled for this project. Please enable them in the dashboard to continue: https://stytch.com/dashboard/password-strength-config
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "cross_org_passwords_not_enabled",
"error_message": "Cross-organization passwords are not enabled for this project. Please enable them in the dashboard to continue: https://stytch.com/dashboard/password-strength-config",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#cross_org_passwords_not_enabled"
}
custom_claims_too_large
Custom claims are too large.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "custom_claims_too_large",
"error_message": "Custom claims are too large.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#custom_claims_too_large"
}
default_mfa_member_missing_factor
Attempting to set a default MFA method for a member that does not have that auth method active.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "default_mfa_member_missing_factor",
"error_message": "Attempting to set a default MFA method for a member that does not have that auth method active.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#default_mfa_member_missing_factor"
}
deprecated_endpoint
This endpoint has been deprecated
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "deprecated_endpoint",
"error_message": "This endpoint has been deprecated",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#deprecated_endpoint"
}
desired_email_deactivated_by_different_member
The requested email_address was deactivated for a different member and cannot be used for other members.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "desired_email_deactivated_by_different_member",
"error_message": "The requested email_address was deactivated for a different member and cannot be used for other members.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#desired_email_deactivated_by_different_member"
}
duplicate_custom_hostname_found
Duplicate custom hostname found during CNAME creation. A custom hostname can only be used in one project.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "duplicate_custom_hostname_found",
"error_message": "Duplicate custom hostname found during CNAME creation. A custom hostname can only be used in one project.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#duplicate_custom_hostname_found"
}
duplicate_email
A user with the specified email already exists for this project.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "duplicate_email",
"error_message": "A user with the specified email already exists for this project.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#duplicate_email"
}
duplicate_email_for_user
The specified email is already tied to this user.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "duplicate_email_for_user",
"error_message": "The specified email is already tied to this user.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#duplicate_email_for_user"
}
duplicate_email_template_vanity_id
Email template vanity ID already exists.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "duplicate_email_template_vanity_id",
"error_message": "Email template vanity ID already exists.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#duplicate_email_template_vanity_id"
}
duplicate_external_sso_connection
The external SSO connection already exists for this organization.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "duplicate_external_sso_connection",
"error_message": "The external SSO connection already exists for this organization.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#duplicate_external_sso_connection"
}
duplicate_m2m_client_id
The client ID submitted is already in use by another client.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "duplicate_m2m_client_id",
"error_message": "The client ID submitted is already in use by another client.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#duplicate_m2m_client_id"
}
duplicate_member_email
This email already exists for this organization.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "duplicate_member_email",
"error_message": "This email already exists for this organization.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#duplicate_member_email"
}
duplicate_member_phone_number
A member with the specified phone number already exists for this organization.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "duplicate_member_phone_number",
"error_message": "A member with the specified phone number already exists for this organization.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#duplicate_member_phone_number"
}
duplicate_member_phone_number_for_member
A different phone number is already tied to this member.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "duplicate_member_phone_number_for_member",
"error_message": "A different phone number is already tied to this member.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#duplicate_member_phone_number_for_member"
}
duplicate_organization
An organization with the specified name already exists.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "duplicate_organization",
"error_message": "An organization with the specified name already exists.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#duplicate_organization"
}
duplicate_organization_user
A user with the specified email already exists for this organization.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "duplicate_organization_user",
"error_message": "A user with the specified email already exists for this organization.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#duplicate_organization_user"
}
duplicate_project_user
A project user for the specified organization user already exists for this project.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "duplicate_project_user",
"error_message": "A project user for the specified organization user already exists for this project.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#duplicate_project_user"
}
duplicate_redirect_url
A redirect URL already exists for the provided URL.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "duplicate_redirect_url",
"error_message": "A redirect URL already exists for the provided URL.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#duplicate_redirect_url"
}
duplicate_saml_connection
The SAML connection already exists for this organization and IDP.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "duplicate_saml_connection",
"error_message": "The SAML connection already exists for this organization and IDP.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#duplicate_saml_connection"
}
duplicate_saml_response
This SAML response has already been seen. Please attempt to log in again.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "duplicate_saml_response",
"error_message": "This SAML response has already been seen. Please attempt to log in again.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#duplicate_saml_response"
}
duplicate_webauthn_registration
The supplied credential ID already exists for this project.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "duplicate_webauthn_registration",
"error_message": "The supplied credential ID already exists for this project.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#duplicate_webauthn_registration"
}
email_jit_provisioning_not_allowed
Email JIT provisioning is not allowed for this organization.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "email_jit_provisioning_not_allowed",
"error_message": "Email JIT provisioning is not allowed for this organization.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#email_jit_provisioning_not_allowed"
}
email_unverified_for_reactivation
The email associated with the member id provided for reactivation does not belong to a deleted member.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "email_unverified_for_reactivation",
"error_message": "The email associated with the member id provided for reactivation does not belong to a deleted member.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#email_unverified_for_reactivation"
}
expired_oauth_response
Too much time has passed since the login flow started. Please attempt to log in again.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "expired_oauth_response",
"error_message": "Too much time has passed since the login flow started. Please attempt to log in again.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#expired_oauth_response"
}
expired_oidc_response
Too much time has passed since the login flow started. Please attempt to log in again.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "expired_oidc_response",
"error_message": "Too much time has passed since the login flow started. Please attempt to log in again.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#expired_oidc_response"
}
expired_saml_response
Too much time has passed since the login flow started. Please attempt to log in again.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "expired_saml_response",
"error_message": "Too much time has passed since the login flow started. Please attempt to log in again.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#expired_saml_response"
}
expired_totp
The TOTP for this user has expired without being verified.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "expired_totp",
"error_message": "The TOTP for this user has expired without being verified.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#expired_totp"
}
external_connection_id_not_found
The provided external_connection_id was not found.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "external_connection_id_not_found",
"error_message": "The provided external_connection_id was not found.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#external_connection_id_not_found"
}
external_connection_not_active
The provided external_connection_id is not active.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "external_connection_not_active",
"error_message": "The provided external_connection_id is not active.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#external_connection_not_active"
}
failed_saml_response
The user failed to log in to their IDP, or the IDP failed to authenticate the application.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "failed_saml_response",
"error_message": "The user failed to log in to their IDP, or the IDP failed to authenticate the application.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#failed_saml_response"
}
forbidden_character_zero_width_space
Zero width space (U+200B) identified in request, please remove.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "forbidden_character_zero_width_space",
"error_message": "Zero width space (U+200B) identified in request, please remove.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#forbidden_character_zero_width_space"
}
id_token_expired
ID token is expired.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "id_token_expired",
"error_message": "ID token is expired.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#id_token_expired"
}
id_token_incorrect_audience
ID token's audience does not match the OAuth configuration's ID.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "id_token_incorrect_audience",
"error_message": "ID token's audience does not match the OAuth configuration's ID.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#id_token_incorrect_audience"
}
id_token_invalid
ID token is invalid.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "id_token_invalid",
"error_message": "ID token is invalid.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#id_token_invalid"
}
id_token_nonce_invalid
The provided nonce does not match the nonce in the ID token.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "id_token_nonce_invalid",
"error_message": "The provided nonce does not match the nonce in the ID token.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#id_token_nonce_invalid"
}
inactive_email
The email provided has been marked as inactive by our email provider.
Common causes
Our email provider received a hard bounce when previously attempting to deliver an email to this email address.
This user previously marked an email sent by Stytch as spam.
Troubleshooting steps
Confirm with your user that their email address can now successfully receive emails.
If our email provider previously hit a hard bounce but the email address can now successfully receive emails, you can reactivate it via the User management or Members tab in the Stytch Dashboard.
If the user previously marked a Stytch email as spam but is now interested in receiving Stytch emails again, please reach out to support@stytch.com so that we can reactivate their email address.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "inactive_email",
"error_message": "The email provided has been marked as inactive by our email provider. This happens most often when the email is undeliverable due to a hard bounce. If the cause of the hard bounce has been resolved, you can reactivate the email address via the User management tab or the Members tab in the Stytch Dashboard.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#inactive_email"
}
indeterminate_sso_connection_for_organization
The organization owns more than one SSO Connection. Please specify the specific connection to be used.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "indeterminate_sso_connection_for_organization",
"error_message": "The organization owns more than one SSO Connection. Please specify the specific connection to be used.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#indeterminate_sso_connection_for_organization"
}
insecure_m2m_client_secret
The client secret submitted is not secure enough. Please generate a more secure secret.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "insecure_m2m_client_secret",
"error_message": "The client secret submitted is not secure enough. Please generate a more secure secret.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#insecure_m2m_client_secret"
}
invalid_append_salt
The append_salt value is not supported because it's too long.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "invalid_append_salt",
"error_message": "The append_salt value is not supported because it's too long.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#invalid_append_salt"
}
invalid_argon_2_iteration_amount
The iteration_amount value is invalid.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "invalid_argon_2_iteration_amount",
"error_message": "The iteration_amount value is invalid.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#invalid_argon_2_iteration_amount"
}
invalid_argon_2_key_length
The key_length value is invalid.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "invalid_argon_2_key_length",
"error_message": "The key_length value is invalid.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#invalid_argon_2_key_length"
}
invalid_argon_2_memory
The memory value is invalid.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "invalid_argon_2_memory",
"error_message": "The memory value is invalid.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#invalid_argon_2_memory"
}
invalid_argon_2_salt
The salt value is an unsupported length.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "invalid_argon_2_salt",
"error_message": "The salt value is an unsupported length.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#invalid_argon_2_salt"
}
invalid_argon_2_threads
The threads value is invalid.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "invalid_argon_2_threads",
"error_message": "The threads value is invalid.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#invalid_argon_2_threads"
}
invalid_argument
Invalid argument.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "invalid_argument",
"error_message": "Invalid argument.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#invalid_argument"
}
invalid_audience_saml_response
The audience in the SAML response is incorrect.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "invalid_audience_saml_response",
"error_message": "The audience in the SAML response is incorrect.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#invalid_audience_saml_response"
}
invalid_authentication_type
The authentication type provided in the header of the request is invalid. The Stytch API uses basic authentication. See more about authenticating Stytch API requests here.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "invalid_authentication_type",
"error_message": "The authentication type provided in the header of the request is invalid. The Stytch API uses basic authentication. See more about authenticating Stytch API requests here: https://stytch.com/docs/api/authentication",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#invalid_authentication_type"
}
invalid_authenticator_type
Invalid authenticator type. The valid values are platform and cross-platform.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "invalid_authenticator_type",
"error_message": "Invalid authenticator type. The valid values are platform and cross-platform.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#invalid_authenticator_type"
}
invalid_authorization_header
The authorization header provided with the request is invalid.
Common causes
HTTP request is missing an Authorization header
The Authorization header in the HTTP request is not formatted properly
The Authorization header in the HTTP request has the incorrect credentials
Troubleshooting steps
Check the Authorization header in the HTTP request for proper formatting.
Always use the Basic Auth type in the header.
Check the project credentials you entered match your API keys in the Dashboard.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "invalid_authorization_header",
"error_message": "The authorization header provided with the request is invalid.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#invalid_authorization_header"
}
invalid_authorization_url
Please ensure the length of your authorization_url is less than or equal to 255 characters.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "invalid_authorization_url",
"error_message": "Please ensure the length of your authorization_url is less than or equal to 255 characters.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#invalid_authorization_url"
}
invalid_base64_scrypt_hash
The provided hash isn't a base64 encoded string. Please base64 encode the hash before passing it to this endpoint.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "invalid_base64_scrypt_hash",
"error_message": "The provided hash isn't a base64 encoded string. Please base64 encode the hash before passing it to this endpoint.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#invalid_base64_scrypt_hash"
}
invalid_base64_scrypt_salt
The provided salt isn't a base64 encoded string. Please base64 encode the salt before passing it to this endpoint.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "invalid_base64_scrypt_salt",
"error_message": "The provided salt isn't a base64 encoded string. Please base64 encode the salt before passing it to this endpoint.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#invalid_base64_scrypt_salt"
}
invalid_bcrypt_cost
The bcrypt cost value is too high, it must be less than 15. If you need a higher cost parameter, please email support@stytch.com.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "invalid_bcrypt_cost",
"error_message": "The bcrypt cost value is too high, it must be less than 15. If you need a higher cost parameter, please email support@stytch.com.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#invalid_bcrypt_cost"
}
invalid_bcrypt_hash
The bcrypt hash passed is not valid.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "invalid_bcrypt_hash",
"error_message": "The bcrypt hash passed is not valid.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#invalid_bcrypt_hash"
}
invalid_callback_id
The callback URL has an invalid OAuth Callback ID. Please find it in the dashboard at https://stytch.com/dashboard/ and follow the steps there to enter it into the identity provider
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "invalid_callback_id",
"error_message": "The callback URL has an invalid OAuth Callback ID. Please find it in the dashboard at https://stytch.com/dashboard/ and follow the steps there to enter it into the identity provider",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#invalid_callback_id"
}
invalid_captcha_provider_id
captcha_provider_id format is invalid.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "invalid_captcha_provider_id",
"error_message": "captcha_provider_id format is invalid.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#invalid_captcha_provider_id"
}
invalid_captcha_provider_type
provider_type should be set to 'GoogleRecaptchaEnterpriseSilentWeb', 'GoogleRecaptchaEnterpriseSilentAndroid', or 'GoogleRecaptchaEnterpriseSilentIOS',.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "invalid_captcha_provider_type",
"error_message": "provider_type should be set to 'GoogleRecaptchaEnterpriseSilentWeb', 'GoogleRecaptchaEnterpriseSilentAndroid', or 'GoogleRecaptchaEnterpriseSilentIOS',.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#invalid_captcha_provider_type"
}
invalid_captcha_threshold
threshold should be in the range 0 to 1 inclusive.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "invalid_captcha_threshold",
"error_message": "threshold should be in the range 0 to 1 inclusive.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#invalid_captcha_threshold"
}
invalid_client_id
Please ensure the length of your client_id is less than or equal to 255 characters.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "invalid_client_id",
"error_message": "Please ensure the length of your client_id is less than or equal to 255 characters.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#invalid_client_id"
}
invalid_client_secret
Please ensure the length of your client_secret is less than or equal to 512 characters.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "invalid_client_secret",
"error_message": "Please ensure the length of your client_secret is less than or equal to 512 characters.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#invalid_client_secret"
}
invalid_code
Code format is invalid.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "invalid_code",
"error_message": "Code format is invalid.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#invalid_code"
}
invalid_connection_for_jit_provisioning
The SSO connection isn't allowed to create new users according to the organization's JIT provisioning settings.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "invalid_connection_for_jit_provisioning",
"error_message": "The SSO connection isn't allowed to create new users according to the organization's JIT provisioning settings.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#invalid_connection_for_jit_provisioning"
}
invalid_consumer_endpoint
This endpoint is only enabled for consumer projects.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "invalid_consumer_endpoint",
"error_message": "This endpoint is only enabled for consumer projects.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#invalid_consumer_endpoint"
}
invalid_default_url
Thanks for trying Stytch! Replace the default URL with your own to get started. If you haven't already done so, you'll also need to set your magic_link_urls in the dashboard here: https://stytch.com/dashboard/redirect-urls
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "invalid_default_url",
"error_message": "Thanks for trying Stytch! Replace the default URL with your own to get started. If you haven't already done so, you'll also need to set your magic_link_urls in the dashboard here: https://stytch.com/dashboard/redirect-urls",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#invalid_default_url"
}
invalid_discovery_redirect_url
discovery_redirect_url is invalid. Common issues include using http instead of https or omitting https://.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "invalid_discovery_redirect_url",
"error_message": "discovery_redirect_url is invalid. Common issues include using http instead of https or omitting https://.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#invalid_discovery_redirect_url"
}
invalid_display_name
Please ensure the length of your display name is less than or equal to 128 characters.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "invalid_display_name",
"error_message": "Please ensure the length of your display name is less than or equal to 128 characters.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#invalid_display_name"
}
invalid_domain
Invalid domain, ensure that only the domain was provided. Do not include https:// or a port in this value. Visit the link here for more information about valid domains (called RP ID on the site).
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "invalid_domain",
"error_message": "Invalid domain, ensure that only the domain was provided. Do not include https:// or a port in this value. Visit https://w3c.github.io/webauthn/#rp-id for more information about valid domains (called RP ID on the site).",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#invalid_domain"
}
invalid_email
The email address is invalid (i.e. not properly formatted) or missing. Check that the email address is properly formatted and only includes allowed characters.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "invalid_email",
"error_message": "Email format is invalid.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#invalid_email"
}
invalid_email_domain
Email domain is too large. Please contact support if this is a valid email.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "invalid_email_domain",
"error_message": "Email domain is too large. Please contact support if this is a valid email.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#invalid_email_domain"
}
invalid_email_for_invites
The email isn't valid within the organization's invite settings.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "invalid_email_for_invites",
"error_message": "The email isn't valid within the organization's invite settings.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#invalid_email_for_invites"
}
invalid_email_for_jit_provisioning
The email isn't valid within the organization's JIT provisioning settings.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "invalid_email_for_jit_provisioning",
"error_message": "The email isn't valid within the organization's JIT provisioning settings.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#invalid_email_for_jit_provisioning"
}
invalid_email_html
email html is not valid.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "invalid_email_html",
"error_message": "email html is not valid.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#invalid_email_html"
}
invalid_email_id
The email_id is invalid (i.e. not properly formatted) or missing. email-test-81bf03a8-86e1-4d95-bd44-bb3495224953 is an example email_id.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "invalid_email_id",
"error_message": "email_id format is invalid.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#invalid_email_id"
}
invalid_email_plaintext
email plaintext is not valid.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "invalid_email_plaintext",
"error_message": "email plaintext is not valid.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#invalid_email_plaintext"
}
invalid_email_sandbox
Invalid email. The sanbox@stytch.com email can only be used in the Test environment.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "invalid_email_sandbox",
"error_message": "Invalid email. The sanbox@stytch.com email can only be used in the Test environment.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#invalid_email_sandbox"
}
invalid_email_subject
email subject is not valid.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "invalid_email_subject",
"error_message": "email subject is not valid.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#invalid_email_subject"
}
invalid_expiration
Expiration is invalid, should be between 5 and 10080 minutes.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "invalid_expiration",
"error_message": "Expiration is invalid, should be between 5 and 10080 minutes.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#invalid_expiration"
}
invalid_expiration_otp
expiration_minutes is invalid, should be between 1 and 10 minutes.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "invalid_expiration_otp",
"error_message": "expiration_minutes is invalid, should be between 1 and 10 minutes.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#invalid_expiration_otp"
}
invalid_google_hosted_domain_error
The Hosted Domain associated with the login did not match the domain of the email given.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "invalid_google_hosted_domain_error",
"error_message": "The Hosted Domain associated with the login did not match the domain of the email given.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#invalid_google_hosted_domain_error"
}
invalid_hash
hash is invalid.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "invalid_hash",
"error_message": "hash is invalid.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#invalid_hash"
}
invalid_hash_type
The hash_type is invalid. Please check here for a list of supported hash types.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "invalid_hash_type",
"error_message": "hash_type is invalid. Please check https://stytch.com/docs/api/password-migrate for a list of support hash types.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#invalid_hash_type"
}
invalid_id
ID format is invalid.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "invalid_id",
"error_message": "ID format is invalid.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#invalid_id"
}
invalid_idp_entity_id
Please ensure the length of your idp_entity_id is less than or equal to 255 characters.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "invalid_idp_entity_id",
"error_message": "Please ensure the length of your idp_entity_id is less than or equal to 255 characters.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#invalid_idp_entity_id"
}
invalid_idp_sso_url
Please ensure the length of your idp_sso_url is less than or equal to 255 characters.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "invalid_idp_sso_url",
"error_message": "Please ensure the length of your idp_sso_url is less than or equal to 255 characters.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#invalid_idp_sso_url"
}
invalid_intermediate_session_token_for_organization
The intermediate session token is invalid for the requested organization.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "invalid_intermediate_session_token_for_organization",
"error_message": "The intermediate session token is invalid for the requested organization.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#invalid_intermediate_session_token_for_organization"
}
invalid_invite_redirect_url
invite_redirect_url format is invalid. Common issues include using http instead of https or omitting https://.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "invalid_invite_redirect_url",
"error_message": "invite_redirect_url format is invalid. Common issues include using http instead of https or omitting https://.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#invalid_invite_redirect_url"
}
invalid_ip_address
ip_address format is invalid.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "invalid_ip_address",
"error_message": "ip_address format is invalid.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#invalid_ip_address"
}
invalid_issuer
Please ensure the length of your issuer is less than or equal to 128 characters.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "invalid_issuer",
"error_message": "Please ensure the length of your issuer is less than or equal to 128 characters.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#invalid_issuer"
}
invalid_jwks_url
Please ensure the length of your jwks_url is less than or equal to 255 characters.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "invalid_jwks_url",
"error_message": "Please ensure the length of your jwks_url is less than or equal to 255 characters.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#invalid_jwks_url"
}
invalid_locale
locale is invalid.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "invalid_locale",
"error_message": "locale is invalid.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#invalid_locale"
}
invalid_login_oauth_url
login_redirect_url format is invalid. Common issues include using http instead of https or omitting https://.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "invalid_login_oauth_url",
"error_message": "login_redirect_url format is invalid. Common issues include using http instead of https or omitting https://.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#invalid_login_oauth_url"
}
invalid_login_redirect_url
login_redirect_url format is invalid. Common issues include using http instead of https or omitting https://.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "invalid_login_redirect_url",
"error_message": "login_redirect_url format is invalid. Common issues include using http instead of https or omitting https://.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#invalid_login_redirect_url"
}
invalid_login_sso_url
login_redirect_url format is invalid. Common issues include using http instead of https or omitting https://.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "invalid_login_sso_url",
"error_message": "login_redirect_url format is invalid. Common issues include using http instead of https or omitting https://.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#invalid_login_sso_url"
}
invalid_m2m_client_scope
The client scope was invalid. Client scopes must be at most 128 characters long and must not contain spaces, backslashes, or quotes.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "invalid_m2m_client_scope",
"error_message": "The client scope was invalid. Client scopes must be at most 128 characters long and must not contain spaces, backslashes, or quotes.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#invalid_m2m_client_scope"
}
invalid_m2m_client_status
The client status sent was invalid. Client statuses must be either 'active' or 'disabled'.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "invalid_m2m_client_status",
"error_message": "The client status sent was invalid. Client statuses must be either 'active' or 'disabled'.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#invalid_m2m_client_status"
}
invalid_md_5_hash
The MD5 hash passed is not valid.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "invalid_md_5_hash",
"error_message": "The MD5 hash passed is not valid.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#invalid_md_5_hash"
}
invalid_member_get_fields
Please ensure at least one of the following is provided: member_id, email_address.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "invalid_member_get_fields",
"error_message": "Please ensure at least one of the following is provided: member_id, email_address.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#invalid_member_get_fields"
}
invalid_method_id
The method_id is invalid (i.e. not properly formatted) or missing. email-test-81bf03a8-86e1-4d95-bd44-bb3495224953 is an example method_id.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "invalid_method_id",
"error_message": "method_id format is invalid.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#invalid_method_id"
}
invalid_mfa_default_method
Attempting to set a default MFA method to an invalid value.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "invalid_mfa_default_method",
"error_message": "Attempting to set a default MFA method to an invalid value.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#invalid_mfa_default_method"
}
invalid_microsoft_tenant_type
Only Microsoft Azure Active Directory (AAD) Tenants are permitted to use the Stytch B2B OAuth product. If you are trying to integrate an AAD-B2C account, configure that AAD-B2C tenant as an org-scoped OIDC or SAML connection.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "invalid_microsoft_tenant_type",
"error_message": "Only Microsoft Azure Active Directory (AAD) Tenants are permitted to use the Stytch B2B OAuth product. If you are trying to integrate an AAD-B2C account, configure that AAD-B2C tenant as an org-scoped OIDC or SAML connection.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#invalid_microsoft_tenant_type"
}
invalid_microsoft_user_principal_name
The User Principal Name associated with the login did not have a matching validated domain.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "invalid_microsoft_user_principal_name",
"error_message": "The User Principal Name associated with the login did not have a matching validated domain.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#invalid_microsoft_user_principal_name"
}
invalid_mobile_identifier
The mobile header sent is invalid.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "invalid_mobile_identifier",
"error_message": "The mobile header sent is invalid.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#invalid_mobile_identifier"
}
invalid_oauth_allowed_tenants_format
Tenants must be in the list of supported OAuth Providers. Supported providers are 'slack', and 'hubspot'. Values must be in a list format.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "invalid_oauth_allowed_tenants_format",
"error_message": "Tenants must be in the list of supported OAuth Providers. Supported providers are 'slack', and 'hubspot'. Values must be in a list format.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#invalid_oauth_allowed_tenants_format"
}
invalid_oauth_provider
We didn't recognize the OAuth provider name in the request. Check that the argument is the name of a supported OAuth provider.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "invalid_oauth_provider",
"error_message": "We didn't recognize the OAuth provider name in the request. Check that the argument is the name of a supported OAuth provider.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#invalid_oauth_provider"
}
invalid_oauth_tenant_for_jit_provisioning
The OAuth Tenant isn't valid within the organization's JIT provisioning settings.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "invalid_oauth_tenant_for_jit_provisioning",
"error_message": "The OAuth Tenant isn't valid within the organization's JIT provisioning settings.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#invalid_oauth_tenant_for_jit_provisioning"
}
invalid_organization_allowed_auth_methods
Allowed auth methods can only be 'sso', 'password', 'google_oauth', 'microsoft_oauth', and/or 'magic_link'
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "invalid_organization_allowed_auth_methods",
"error_message": "Allowed auth methods can only be 'sso', 'password', 'google_oauth', 'microsoft_oauth', and/or 'magic_link'",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#invalid_organization_allowed_auth_methods"
}
invalid_organization_allowed_mfa_methods
Allowed mfa methods can only be 'sms_otp' and/or 'totp'
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "invalid_organization_allowed_mfa_methods",
"error_message": "Allowed mfa methods can only be 'sms_otp' and/or 'totp'",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#invalid_organization_allowed_mfa_methods"
}
invalid_organization_auth_factor_setting
The value provided isn't valid. Valid values are 'NOT_ALLOWED', 'RESTRICTED', or 'ALL_ALLOWED'.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "invalid_organization_auth_factor_setting",
"error_message": "The value provided isn't valid. Valid values are 'NOT_ALLOWED', 'RESTRICTED', or 'ALL_ALLOWED'.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#invalid_organization_auth_factor_setting"
}
invalid_organization_auth_factor_setting_for_email_jit_provisioning
Email JIT Provisioning can only be 'NOT_ALLOWED' or 'RESTRICTED', never 'ALL_ALLOWED'
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "invalid_organization_auth_factor_setting_for_email_jit_provisioning",
"error_message": "Email JIT Provisioning can only be 'NOT_ALLOWED' or 'RESTRICTED', never 'ALL_ALLOWED'",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#invalid_organization_auth_factor_setting_for_email_jit_provisioning"
}
invalid_organization_auth_factor_setting_for_oauth_tenant_jit_provisioning
OAuth Tenant JIT Provisioning can only be 'NOT_ALLOWED' or 'RESTRICTED', never 'ALL_ALLOWED'
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "invalid_organization_auth_factor_setting_for_oauth_tenant_jit_provisioning",
"error_message": "OAuth Tenant JIT Provisioning can only be 'NOT_ALLOWED' or 'RESTRICTED', never 'ALL_ALLOWED'",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#invalid_organization_auth_factor_setting_for_oauth_tenant_jit_provisioning"
}
invalid_organization_auth_method_settings
Auth methods can only be 'ALL_ALLOWED' or 'RESTRICTED', never 'NOT_ALLOWED'
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "invalid_organization_auth_method_settings",
"error_message": "Auth methods can only be 'ALL_ALLOWED' or 'RESTRICTED', never 'NOT_ALLOWED'",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#invalid_organization_auth_method_settings"
}
invalid_organization_id
organization_id format is invalid.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "invalid_organization_id",
"error_message": "organization_id format is invalid.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#invalid_organization_id"
}
invalid_organization_mfa_factor_setting
The value provided isn't valid. Valid values are 'NOT_ALLOWED', 'RESTRICTED', or 'ALL_ALLOWED'.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "invalid_organization_mfa_factor_setting",
"error_message": "The value provided isn't valid. Valid values are 'NOT_ALLOWED', 'RESTRICTED', or 'ALL_ALLOWED'.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#invalid_organization_mfa_factor_setting"
}
invalid_organization_mfa_policy
The value provided isn't valid. Valid values are 'OPTIONAL', or 'REQUIRED_FOR_ALL'.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "invalid_organization_mfa_policy",
"error_message": "The value provided isn't valid. Valid values are 'OPTIONAL', or 'REQUIRED_FOR_ALL'.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#invalid_organization_mfa_policy"
}
invalid_organization_name
Organization name cannot be longer than 128 characters.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "invalid_organization_name",
"error_message": "Organization name cannot be longer than 128 characters.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#invalid_organization_name"
}
invalid_organization_slug
The organization_slug must be at least 2 characters long and may only contain alphanumerics and the reserved characters '-', '.', '_', or '~'. At least one character must be alphanumeric.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "invalid_organization_slug",
"error_message": "The organization_slug must be at least 2 characters long and may only contain alphanumerics and the reserved characters '-', '.', '_', or '~'. At least one character must be alphanumeric.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#invalid_organization_slug"
}
invalid_password_id
password_id format is invalid.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "invalid_password_id",
"error_message": "password_id format is invalid.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#invalid_password_id"
}
invalid_password_reset_redirect_url
reset_password_redirect_url is invalid. Common issues include using http instead of https or omitting https://.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "invalid_password_reset_redirect_url",
"error_message": "reset_password_redirect_url is invalid. Common issues include using http instead of https or omitting https://.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#invalid_password_reset_redirect_url"
}
invalid_password_strength_luds_complexity
The LUDS password complexity should be between 1 and 4, inclusive.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "invalid_password_strength_luds_complexity",
"error_message": "The LUDS password complexity should be between 1 and 4, inclusive.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#invalid_password_strength_luds_complexity"
}
invalid_password_strength_luds_length
The minimum password length should be between 8 and 32, inclusive.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "invalid_password_strength_luds_length",
"error_message": "The minimum password length should be between 8 and 32, inclusive.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#invalid_password_strength_luds_length"
}
invalid_pbkdf_2_hash
The PBKDF-2 hash passed is not valid.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "invalid_pbkdf_2_hash",
"error_message": "The PBKDF-2 hash passed is not valid.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#invalid_pbkdf_2_hash"
}
invalid_pbkdf_2_iteration_amount
The provided PBKDF-2 iteration_amount value is invalid. Valid range: 512-650000.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "invalid_pbkdf_2_iteration_amount",
"error_message": "The provided PBKDF-2 iteration_amount value is invalid. Valid range: 512-650000.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#invalid_pbkdf_2_iteration_amount"
}
invalid_pbkdf_2_salt
The provided PBKDF-2 salt is invalid.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "invalid_pbkdf_2_salt",
"error_message": "The provided PBKDF-2 salt is invalid.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#invalid_pbkdf_2_salt"
}
invalid_permission_action
All actions used in RBAC role permissions must be defined within their respective resource.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "invalid_permission_action",
"error_message": "All actions used in RBAC role permissions must be defined within their respective resource.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#invalid_permission_action"
}
invalid_permission_resource
All resources used in RBAC role permissions must be defined.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "invalid_permission_resource",
"error_message": "All resources used in RBAC role permissions must be defined.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#invalid_permission_resource"
}
invalid_phone_number
The phone number is invalid, i.e. not properly formatted, or missing.
Common causes
If you’re accepting the raw input from a user, they may have included an invalid character, i.e. not a digit.
If the phone number is missing from the call, you may not be passing the input from the user to your backend.
[WhatsApp] Recipient has not accepted WhatsApp's new Terms of Service, or is using an unsupported version of the WhatsApp client for their phone.
Troubleshooting steps
If you’re accepting the raw input form a user, make sure you’re sanitizing the input and formatting it properly. Many libraries can help with this, like libphonenumber-js.
Check that the phone number is properly formatted with the E. 164 format, e.g. “+14155551234”
Check that the phone number only includes allowed characters, i.e. dashes “555-1234” and parentheses “(415)” are not included.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "invalid_phone_number",
"error_message": "Phone number format is invalid. Ensure the phone number is in the E.164 format.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#invalid_phone_number"
}
invalid_phone_number_country_code
The phone number's country code is invalid or not supported.
Common causes
SMS to phone numbers outside of the US and Canada is disabled by default for customers who did not use SMS prior to October 2023. If you're interested in sending international SMS, please reach out to support@stytch.com.
Regardless of whether or not you are enabled for international SMS, Stytch does not support sending SMS to countries on our Unsupported countries list.
Troubleshooting steps
Make sure that the country code you've provided is correctly formatted.
Make sure that the country is not included in our Unsupported countries list.
Make sure that your Stytch workspace is enabled for SMS to international numbers by reaching out to support@stytch.com.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "invalid_phone_number_country_code",
"error_message": "The phone number's country code is invalid, unsupported, or disabled for your Stytch Workspace. Please see here for additional information: https://stytch.com/docs/api/errors/400#invalid_phone_number_country_code",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#invalid_phone_number_country_code"
}
invalid_phone_number_docs
Thanks for trying Stytch! Replace the test phone number with a valid one to start sending one-time passcodes.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "invalid_phone_number_docs",
"error_message": "Thanks for trying Stytch! Replace the test phone number with a valid one to start sending one-time passcodes.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#invalid_phone_number_docs"
}
invalid_phone_number_sandbox
Phone number is invalid. The sandbox phone number, +10000000000, can only be used in the Test environment.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "invalid_phone_number_sandbox",
"error_message": "Phone number is invalid. The sandbox phone number, +10000000000, can only be used in the Test environment.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#invalid_phone_number_sandbox"
}
invalid_phpass_hash_format
The phpass hash has an incorrect format as it needs to be exactly 34 characters.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "invalid_phpass_hash_format",
"error_message": "The phpass hash has an incorrect format as it needs to be exactly 34 characters.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#invalid_phpass_hash_format"
}
invalid_phpass_hash_prefix
The phpass hash is invalid as it needs to start with $P$
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "invalid_phpass_hash_prefix",
"error_message": "The phpass hash is invalid as it needs to start with $P$",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#invalid_phpass_hash_prefix"
}
invalid_pkce_code_challenge
The PKCE Code Challenge param may only contain alphanumerics and the reserved characters '-', '.', '_', or '~'. It must also be between 43 and 128 characters long. Please refer to https://datatracker.ietf.org/doc/html/rfc7636#section-4.2 for details.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "invalid_pkce_code_challenge",
"error_message": "The PKCE Code Challenge param may only contain alphanumerics and the reserved characters '-', '.', '_', or '~'. It must also be between 43 and 128 characters long. Please refer to https://datatracker.ietf.org/doc/html/rfc7636#section-4.2 for details.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#invalid_pkce_code_challenge"
}
invalid_pkce_code_verifier
The PKCE Code Verifier param may only contain alphanumerics and the reserved characters '-', '.', '_', or '~'. It must also be between 43 and 128 characters long. Please refer to https://datatracker.ietf.org/doc/html/rfc7636#section-4.1 for details.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "invalid_pkce_code_verifier",
"error_message": "The PKCE Code Verifier param may only contain alphanumerics and the reserved characters '-', '.', '_', or '~'. It must also be between 43 and 128 characters long. Please refer to https://datatracker.ietf.org/doc/html/rfc7636#section-4.1 for details.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#invalid_pkce_code_verifier"
}
invalid_prepend_salt
The prepend_salt value is not supported because it's too long.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "invalid_prepend_salt",
"error_message": "The prepend_salt value is not supported because it's too long.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#invalid_prepend_salt"
}
invalid_project_id
project_id format is invalid.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "invalid_project_id",
"error_message": "project_id format is invalid.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#invalid_project_id"
}
invalid_project_id_authentication
The project ID provided in the basic authentication header is invalid. Please check to make sure the format is correct and there are no trailing whitespaces. To view your project ID please visit the Stytch dashboard here.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "invalid_project_id_authentication",
"error_message": "The project ID provided in the basic authentication header is invalid. Please check to make sure the format is correct and there are no trailing whitespaces. To create a new project or confirm an existing project ID please visit the Stytch dashboard here: https://stytch.com/dashboard/api-keys",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#invalid_project_id_authentication"
}
invalid_project_name
The project name is invalid.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "invalid_project_name",
"error_message": "The project name is invalid.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#invalid_project_name"
}
invalid_public_key
Invalid public key. The key is present but is malformed and cannot be decoded. The field should be base64 encoded.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "invalid_public_key",
"error_message": "Invalid public key. The key is present but is malformed and cannot be decoded. The field should be base64 encoded.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#invalid_public_key"
}
invalid_public_key_credential
Invalid public key credential. Please confirm you're passing a correctly formatted public key credential.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "invalid_public_key_credential",
"error_message": "Invalid public key credential. Please confirm you're passing a correctly formatted public key credential.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#invalid_public_key_credential"
}
invalid_public_key_credential_invalid_authenticator_data
Invalid public key credential. The authenticatorData field is present but is malformed and cannot be decoded. The field should be base64 encoded.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "invalid_public_key_credential_invalid_authenticator_data",
"error_message": "Invalid public key credential. The authenticatorData field is present but is malformed and cannot be decoded. The field should be base64 encoded.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#invalid_public_key_credential_invalid_authenticator_data"
}
invalid_public_key_credential_invalid_id
Invalid public key credential. The id field is present but is malformed and cannot be decoded. The field should be base64 encoded.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "invalid_public_key_credential_invalid_id",
"error_message": "Invalid public key credential. The id field is present but is malformed and cannot be decoded. The field should be base64 encoded.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#invalid_public_key_credential_invalid_id"
}
invalid_public_key_credential_invalid_signature
Invalid public key credential. The signature field is present but is malformed and cannot be decoded. The field should be base64 encoded.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "invalid_public_key_credential_invalid_signature",
"error_message": "Invalid public key credential. The signature field is present but is malformed and cannot be decoded. The field should be base64 encoded.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#invalid_public_key_credential_invalid_signature"
}
invalid_public_key_credential_malformed_attestation_object
Invalid public key credential. The attestationObject field is present but is malformed and cannot be parsed.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "invalid_public_key_credential_malformed_attestation_object",
"error_message": "Invalid public key credential. The attestationObject field is present but is malformed and cannot be parsed.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#invalid_public_key_credential_malformed_attestation_object"
}
invalid_public_key_credential_malformed_client_data_json
Invalid public key credential. The clientDataJSON field is present but is malformed and cannot be parsed.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "invalid_public_key_credential_malformed_client_data_json",
"error_message": "Invalid public key credential. The clientDataJSON field is present but is malformed and cannot be parsed.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#invalid_public_key_credential_malformed_client_data_json"
}
invalid_public_key_credential_missing_attestation_object_field
Invalid public key credential. The public key credential is missing the attestationObject field.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "invalid_public_key_credential_missing_attestation_object_field",
"error_message": "Invalid public key credential. The public key credential is missing the attestationObject field.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#invalid_public_key_credential_missing_attestation_object_field"
}
invalid_public_key_credential_missing_authenticator_data_field
Invalid public key credential. The public key credential is missing the authenticatorData field.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "invalid_public_key_credential_missing_authenticator_data_field",
"error_message": "Invalid public key credential. The public key credential is missing the authenticatorData field.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#invalid_public_key_credential_missing_authenticator_data_field"
}
invalid_public_key_credential_missing_client_data_json_field
Invalid public key credential. The public key credential is missing the clientDataJSON field.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "invalid_public_key_credential_missing_client_data_json_field",
"error_message": "Invalid public key credential. The public key credential is missing the clientDataJSON field.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#invalid_public_key_credential_missing_client_data_json_field"
}
invalid_public_key_credential_missing_id_field
Invalid public key credential. The public key credential is missing an id field.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "invalid_public_key_credential_missing_id_field",
"error_message": "Invalid public key credential. The public key credential is missing an id field.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#invalid_public_key_credential_missing_id_field"
}
invalid_public_key_credential_missing_response_field
Invalid public key credential. The public key credential is missing the response field.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "invalid_public_key_credential_missing_response_field",
"error_message": "Invalid public key credential. The public key credential is missing the response field.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#invalid_public_key_credential_missing_response_field"
}
invalid_public_key_credential_missing_signature_field
Invalid public key credential. The public key credential is missing the signature field.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "invalid_public_key_credential_missing_signature_field",
"error_message": "Invalid public key credential. The public key credential is missing the signature field.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#invalid_public_key_credential_missing_signature_field"
}
invalid_public_token_id
The public_token used to instantiate the Stytch SDK is invalid. You can find your public_token in the API keys section of the Stytch Dashboard.
Common causes
No public_token was passed in when loading the Stytch SDK.
The public_token passed was invalid, e.g. it contains quotes, was of an incorrect length or format, etc.
Troubleshooting steps
Check that your environment contains your Stytch public_token.
Check that you’re passing the public_token in via the correct method. You can see how to launch each Stytch SDK by visiting their respective Docs.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "invalid_public_token_id",
"error_message": "public_token_id format is invalid.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#invalid_public_token_id"
}
invalid_rbac_role_assignment
The role assignment provided is not properly formatted. Make sure both a domain and role_id are included.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "invalid_rbac_role_assignment",
"error_message": "The role assignment provided is not properly formatted. Make sure both a domain and role_id are included.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#invalid_rbac_role_assignment"
}
invalid_rbac_role_id
The role_id provided is not valid for this project's RBAC policy.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "invalid_rbac_role_id",
"error_message": "The role_id provided is not valid for this project's RBAC policy.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#invalid_rbac_role_id"
}
invalid_recovery_code
The recovery_code submitted was invalid.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "invalid_recovery_code",
"error_message": "The recovery_code submitted was invalid.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#invalid_recovery_code"
}
invalid_redirect_url_type
Invalid redirect URL Type. Type should be login, invite, signup, reset_password, or discovery. Only B2B projects can pass discovery.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "invalid_redirect_url_type",
"error_message": "Invalid redirect URL Type. Type should be login, invite, signup, reset_password, or discovery. Only B2B projects can pass discovery.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#invalid_redirect_url_type"
}
invalid_request
Invalid request. Ensure that your project ID exists is passed into the URI path.
Common causes
There was a missing project_id parameter, or the project was not found.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error": "invalid_request",
"error_description": "Invalid request. Ensure that your project ID exists is passed into the URI path.",
"error_uri": "https://stytch.com/docs/b2b/api/errors/400#invalid_request"
}
invalid_request_id
request_id format is invalid.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "invalid_request_id",
"error_message": "request_id format is invalid.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#invalid_request_id"
}
invalid_request_value
Invalid request value, request is required and must have a value.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "invalid_request_value",
"error_message": "Invalid request value, request is required and must have a value.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#invalid_request_value"
}
invalid_restricted_email_setting
If either email_jit_provisioning or email_invites is 'RESTRICTED', there must be at least one allowed domain.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "invalid_restricted_email_setting",
"error_message": "If either email_jit_provisioning or email_invites is 'RESTRICTED', there must be at least one allowed domain.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#invalid_restricted_email_setting"
}
invalid_restricted_oauth_tenants_setting
There must be at least one allowed OAuth Tenant only if oauth_tenant_jit_provisioning is 'RESTRICTED'.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "invalid_restricted_oauth_tenants_setting",
"error_message": "There must be at least one allowed OAuth Tenant only if oauth_tenant_jit_provisioning is 'RESTRICTED'.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#invalid_restricted_oauth_tenants_setting"
}
invalid_restricted_sso_setting
If sso_jit_provisioning is 'RESTRICTED', there must be at least one allowed connection.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "invalid_restricted_sso_setting",
"error_message": "If sso_jit_provisioning is 'RESTRICTED', there must be at least one allowed connection.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#invalid_restricted_sso_setting"
}
invalid_role
Role specified is invalid.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "invalid_role",
"error_message": "Role specified is invalid.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#invalid_role"
}
invalid_saml_metadata_url
Unable to resolve SAML metadata document. Please ensure that the metadata_url is a valid IdP metadata URL.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "invalid_saml_metadata_url",
"error_message": "Unable to resolve SAML metadata document. Please ensure that the metadata_url is a valid IdP metadata URL.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#invalid_saml_metadata_url"
}
invalid_saml_response
The SAML response could not be validated. Please contact support for additional information.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "invalid_saml_response",
"error_message": "The SAML response could not be validated. Please contact support for additional information.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#invalid_saml_response"
}
invalid_saml_response_email
Unable to find a valid email in the SAML response. Check that your SAML connection email attribute mapping matches your provider, or contact support for additional information
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "invalid_saml_response_email",
"error_message": "Unable to find a valid email in the SAML response. Check that your SAML connection email attribute mapping matches your provider, or contact support for additional information",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#invalid_saml_response_email"
}
invalid_saml_response_groups
Unable to find valid groups in the SAML response. Check that your SAML connection groups attribute mapping matches your provider, or contact support for additional information
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "invalid_saml_response_groups",
"error_message": "Unable to find valid groups in the SAML response. Check that your SAML connection groups attribute mapping matches your provider, or contact support for additional information",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#invalid_saml_response_groups"
}
invalid_scim_idp
SCIM IDP format is invalid. IDP must be 'okta', 'microsoft-entra', 'cyberark', 'jumpcloud', 'onelogin', 'pingfederate', 'rippling' or 'generic'.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "invalid_scim_idp",
"error_message": "SCIM IDP format is invalid. IDP must be 'okta', 'microsoft-entra', 'cyberark', 'jumpcloud', 'onelogin', 'pingfederate', 'rippling' or 'generic'.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#invalid_scim_idp"
}
invalid_scope
Please make sure that the scopes requested are included in the client.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error": "invalid_scope",
"error_description": "Please make sure that the scopes requested are included in the client.",
"error_uri": "https://stytch.com/docs/b2b/api/errors/400#invalid_scope"
}
invalid_scope_parameter
scopes is not a recognized parameter. Please use scope instead.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error": "invalid_scope_parameter",
"error_description": "`scopes` is not a recognized parameter. Please use `scope` instead.",
"error_uri": "https://stytch.com/docs/b2b/api/errors/400#invalid_scope_parameter"
}
invalid_scrypt_n_parameter
The n parameter is invalid. It needs to be greater than 1, a power of 2, and less than or equal to 262,144. If you need a higher n parameter, please email support@stytch.com.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "invalid_scrypt_n_parameter",
"error_message": "The n parameter is invalid. It needs to be greater than 1, a power of 2, and less than or equal to 262,144. If you need a higher n parameter, please email support@stytch.com.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#invalid_scrypt_n_parameter"
}
invalid_scrypt_parameters
The scrypt parameters are too large. The r parameter multiplied by p parameter must be under 2 raised to the 30th power (r * p < 2^30).
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "invalid_scrypt_parameters",
"error_message": "The scrypt parameters are too large. The r parameter multiplied by p parameter must be under 2 raised to the 30th power (r * p < 2^30).",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#invalid_scrypt_parameters"
}
invalid_scrypt_salt_length
The salt value is an unsupported length.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "invalid_scrypt_salt_length",
"error_message": "The salt value is an unsupported length.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#invalid_scrypt_salt_length"
}
invalid_secret_authentication
The secret provided in the basic authentication header is invalid. Please check to make sure the format is correct and there are no trailing whitespaces. To create a new secret for your project or to confirm an existing secret please visit the Stytch dashboard here.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "invalid_secret_authentication",
"error_message": "The secret provided in the basic authentication header is invalid. Please check to make sure the format is correct and there are no trailing whitespaces. To create a new secret for your project or to confirm an existing secret please visit the Stytch dashboard here: https://stytch.com/dashboard/api-keys",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#invalid_secret_authentication"
}
invalid_secret_id
secret_id format is invalid.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "invalid_secret_id",
"error_message": "secret_id format is invalid.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#invalid_secret_id"
}
invalid_session_duration
The submitted session duration exceeds the maximum session duration allowed for this project. If this is intentional, please update the maximum duration here: https://stytch.com/dashboard/sdk-configuration
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "invalid_session_duration",
"error_message": "The submitted session duration exceeds the maximum session duration allowed for this project. If this is intentional, please update the maximum duration here: https://stytch.com/dashboard/sdk-configuration",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#invalid_session_duration"
}
invalid_session_duration_minutes
session_duration_minutes is invalid, should be between 5 to 527040 minutes.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "invalid_session_duration_minutes",
"error_message": "session_duration_minutes is invalid, should be between 5 to 527040 minutes.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#invalid_session_duration_minutes"
}
invalid_session_fields
Please ensure exactly one of the following is provided: intermediate_session_token, session_token, session_jwt.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "invalid_session_fields",
"error_message": "Please ensure exactly one of the following is provided: intermediate_session_token, session_token, session_jwt.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#invalid_session_fields"
}
invalid_session_id
session_id format is invalid.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "invalid_session_id",
"error_message": "session_id format is invalid.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#invalid_session_id"
}
invalid_session_missing_primary_factor
Cannot create a new session without primary factors.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "invalid_session_missing_primary_factor",
"error_message": "Cannot create a new session without primary factors.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#invalid_session_missing_primary_factor"
}
invalid_session_token
The session_token format is invalid (i.e. not properly formatted). Stytch will return this error if the session_token or session_jwt is invalid, e.g. malformed, too few characters, too many etc.
Common causes
Your backend or frontend is not properly parsing the session value from where you are storing it, e.g. you’re parsing and passing the key and value instead of just the value.
You are running automated tests with a placeholder value, e.g. “test-123”, for sessions against our API.
Troubleshooting steps
Double check your parsing logic for pulling the session_token or session_jwt. Make sure that you are only pulling the value itself and preserving the full length of each.
session_tokens are 44 characters long and may include numbers, letters, and special characters.
session_jwts can be arbitrarily long depending upon their contents, and conform to RFC 7519.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "invalid_session_token",
"error_message": "Session token format is invalid.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#invalid_session_token"
}
invalid_session_token_docs
The session_token you provided is a sample one from the Docs. Please use a session_token that you received from a /sessions/authenticate request.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "invalid_session_token_docs",
"error_message": "The session_token you provided is a sample one from the Docs. Please use a session_token that you received from a /sessions/authenticate request.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#invalid_session_token_docs"
}
invalid_sha_1_hash
The SHA-1 hash passed is not valid.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "invalid_sha_1_hash",
"error_message": "The SHA-1 hash passed is not valid.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#invalid_sha_1_hash"
}
invalid_signature_saml_response
The signature in the SAML response is incorrect.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "invalid_signature_saml_response",
"error_message": "The signature in the SAML response is incorrect.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#invalid_signature_saml_response"
}
invalid_signup_oauth_url
signup_redirect_url format is invalid. Common issues include using http instead of https or omitting https://.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "invalid_signup_oauth_url",
"error_message": "signup_redirect_url format is invalid. Common issues include using http instead of https or omitting https://.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#invalid_signup_oauth_url"
}
invalid_signup_redirect_url
signup_redirect_url format is invalid. Common issues include using http instead of https or omitting https://.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "invalid_signup_redirect_url",
"error_message": "signup_redirect_url format is invalid. Common issues include using http instead of https or omitting https://.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#invalid_signup_redirect_url"
}
invalid_signup_sso_url
signup_redirect_url format is invalid. Common issues include using http instead of https or omitting https://.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "invalid_signup_sso_url",
"error_message": "signup_redirect_url format is invalid. Common issues include using http instead of https or omitting https://.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#invalid_signup_sso_url"
}
invalid_sso_idp
SSO IDP format is invalid. IDP must be 'generic', 'okta', 'microsoft-entra', or 'google-workspace'.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "invalid_sso_idp",
"error_message": "SSO IDP format is invalid. IDP must be 'generic', 'okta', 'microsoft-entra', or 'google-workspace'.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#invalid_sso_idp"
}
invalid_stytch_prefixed_resource
RBAC resources may not be prefixed with stytch.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "invalid_stytch_prefixed_resource",
"error_message": "RBAC resources may not be prefixed with `stytch`.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#invalid_stytch_prefixed_resource"
}
invalid_subject
The subject provided is invalid.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "invalid_subject",
"error_message": "The subject provided is invalid.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#invalid_subject"
}
invalid_template_id
template_id format is invalid.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "invalid_template_id",
"error_message": "template_id format is invalid.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#invalid_template_id"
}
invalid_token
Token format is invalid.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "invalid_token",
"error_message": "Token format is invalid.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#invalid_token"
}
invalid_token_docs
Thanks for trying Stytch! Replace the test token with a valid one found in a Stytch email to start authenticating users.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "invalid_token_docs",
"error_message": "Thanks for trying Stytch! Replace the test token with a valid one found in a Stytch email to start authenticating users.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#invalid_token_docs"
}
invalid_token_url
Please ensure the length of your token_url is less than or equal to 255 characters.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "invalid_token_url",
"error_message": "Please ensure the length of your token_url is less than or equal to 255 characters.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#invalid_token_url"
}
invalid_totp_code
The totp_code submitted was invalid. The totp_code must be 6 digits long.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "invalid_totp_code",
"error_message": "The totp_code submitted was invalid. The totp_code must be 6 digits long.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#invalid_totp_code"
}
invalid_totp_id
totp_id format is invalid.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "invalid_totp_id",
"error_message": "totp_id format is invalid.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#invalid_totp_id"
}
invalid_url
URL format is invalid. Common issues include using http instead of https or omitting https://. If including query parameters use {} as a placeholder value. For example: https://example.com/authenticate?redirect={}
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "invalid_url",
"error_message": "URL format is invalid. Common issues include using http instead of https or omitting https://. If including query parameters use {} as a placeholder value. For example: https://example.com/authenticate?redirect={}",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#invalid_url"
}
invalid_user_agent
user_agent format is invalid.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "invalid_user_agent",
"error_message": "user_agent format is invalid.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#invalid_user_agent"
}
invalid_userinfo_url
Please ensure the length of your userinfo_url is less than or equal to 255 characters.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "invalid_userinfo_url",
"error_message": "Please ensure the length of your userinfo_url is less than or equal to 255 characters.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#invalid_userinfo_url"
}
invalid_webauthn_registration_domain
The domain cannot be longer than 255 characters.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "invalid_webauthn_registration_domain",
"error_message": "The domain cannot be longer than 255 characters.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#invalid_webauthn_registration_domain"
}
invalid_webauthn_registration_id
webauthn_registration_id format is invalid.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "invalid_webauthn_registration_id",
"error_message": "webauthn_registration_id format is invalid.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#invalid_webauthn_registration_id"
}
invalid_wildcard_action
RBAC actions may not contain the wild character, *.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "invalid_wildcard_action",
"error_message": "RBAC actions may not contain the wild character, `*`.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#invalid_wildcard_action"
}
invalid_x509_certificate
The SSO connection could not be activated because the x509 certificate provided was not valid
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "invalid_x509_certificate",
"error_message": "The SSO connection could not be activated because the x509 certificate provided was not valid",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#invalid_x509_certificate"
}
invalid_xml_from_saml_metadata_url
The metadata URL contained invalid or malformed XML. Please ensure that it is a valid IdP metadata URL.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "invalid_xml_from_saml_metadata_url",
"error_message": "The metadata URL contained invalid or malformed XML. Please ensure that it is a valid IdP metadata URL.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#invalid_xml_from_saml_metadata_url"
}
invalid_xml_saml_response
The SAML response contained invalid or malformed XML.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "invalid_xml_saml_response",
"error_message": "The SAML response contained invalid or malformed XML.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#invalid_xml_saml_response"
}
jwt_invalid_audience
An invalid audience was found in the ID token. Please reach out to the application developer for support.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "jwt_invalid_audience",
"error_message": "An invalid audience was found in the ID token. Please reach out to the application developer for support.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#jwt_invalid_audience"
}
jwt_invalid_claims
An invalid claim was found in the ID token. Please reach out to the application developer for support.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "jwt_invalid_claims",
"error_message": "An invalid claim was found in the ID token. Please reach out to the application developer for support.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#jwt_invalid_claims"
}
jwt_invalid_issuer
An invalid issuer was found in the ID token. Please reach out to the application developer for support.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "jwt_invalid_issuer",
"error_message": "An invalid issuer was found in the ID token. Please reach out to the application developer for support.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#jwt_invalid_issuer"
}
jwt_template_invalid_json
JWT Template did not produce valid JSON output.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "jwt_template_invalid_json",
"error_message": "JWT Template did not produce valid JSON output.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#jwt_template_invalid_json"
}
jwt_template_invalid_tag
JWT Template contains an invalid tag.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "jwt_template_invalid_tag",
"error_message": "JWT Template contains an invalid tag.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#jwt_template_invalid_tag"
}
jwt_template_mismatched_tag
JWT Template contains a mismatched set of tags.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "jwt_template_mismatched_tag",
"error_message": "JWT Template contains a mismatched set of tags.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#jwt_template_mismatched_tag"
}
jwt_template_not_found
JWT Template was not found.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "jwt_template_not_found",
"error_message": "JWT Template was not found.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#jwt_template_not_found"
}
live_id_used_in_test_environment
Invalid argument sent to Test environment. Looks like you supplied a Live identifier for a request for the Test environment (test.stytch.com). Try sending a request to api.stytch.com instead or using a different identifier.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "live_id_used_in_test_environment",
"error_message": "Invalid argument sent to Test environment. Looks like you supplied a Live identifier for a request for the Test environment (test.stytch.com). Try sending a request to api.stytch.com instead or using a different identifier.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#live_id_used_in_test_environment"
}
m2m_client_already_rotating_secret
The client is already in a secret rotation flow. Please finish or cancel the current secret rotation flow before starting a new one.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "m2m_client_already_rotating_secret",
"error_message": "The client is already in a secret rotation flow. Please finish or cancel the current secret rotation flow before starting a new one.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#m2m_client_already_rotating_secret"
}
m2m_client_invalid_client_description
M2M Client Description may not be larger than 512 characters.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "m2m_client_invalid_client_description",
"error_message": "M2M Client Description may not be larger than 512 characters.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#m2m_client_invalid_client_description"
}
m2m_client_invalid_client_id
M2M Client ID may not be larger than 128 characters.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "m2m_client_invalid_client_id",
"error_message": "M2M Client ID may not be larger than 128 characters.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#m2m_client_invalid_client_id"
}
m2m_client_invalid_client_name
M2M Client Name may not be larger than 128 characters.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "m2m_client_invalid_client_name",
"error_message": "M2M Client Name may not be larger than 128 characters.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#m2m_client_invalid_client_name"
}
m2m_client_invalid_client_secret
M2M Client Secret may not be larger than 128 characters.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "m2m_client_invalid_client_secret",
"error_message": "M2M Client Secret may not be larger than 128 characters.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#m2m_client_invalid_client_secret"
}
m2m_client_invalid_status
M2M Client status must be either 'active' or 'inactive'.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "m2m_client_invalid_status",
"error_message": "M2M Client status must be either 'active' or 'inactive'.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#m2m_client_invalid_status"
}
m2m_client_not_found
The m2m client requested could not be found.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "m2m_client_not_found",
"error_message": "The m2m client requested could not be found.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#m2m_client_not_found"
}
m2m_client_not_rotating_secret
The client is not in a secret rotation flow. Please start a secret rotation flow before calling this endpoint.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "m2m_client_not_rotating_secret",
"error_message": "The client is not in a secret rotation flow. Please start a secret rotation flow before calling this endpoint.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#m2m_client_not_rotating_secret"
}
m2m_search_expected_array_of_strings
Expected m2m search filter_value to contain an array of strings.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "m2m_search_expected_array_of_strings",
"error_message": "Expected m2m search filter_value to contain an array of strings.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#m2m_search_expected_array_of_strings"
}
m2m_search_filter_name_must_be_string
Expected m2m search operand 'filter_name' to be a string.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "m2m_search_filter_name_must_be_string",
"error_message": "Expected m2m search operand 'filter_name' to be a string.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#m2m_search_filter_name_must_be_string"
}
m2m_search_filter_name_not_recognized
The m2m search operand filter name was not recognized.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "m2m_search_filter_name_not_recognized",
"error_message": "The m2m search operand filter name was not recognized.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#m2m_search_filter_name_not_recognized"
}
m2m_search_missing_filter_name
Expected m2m search operand to contain a 'filter_name' key.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "m2m_search_missing_filter_name",
"error_message": "Expected m2m search operand to contain a 'filter_name' key.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#m2m_search_missing_filter_name"
}
m2m_search_missing_filter_value
Expected m2m search operand to contain a filter_value key.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "m2m_search_missing_filter_value",
"error_message": "Expected m2m search operand to contain a filter_value key.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#m2m_search_missing_filter_value"
}
member_cannot_update_their_email_address
The member performing the action cannot update their own email address.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "member_cannot_update_their_email_address",
"error_message": "The member performing the action cannot update their own email address.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#member_cannot_update_their_email_address"
}
member_dashboard_search_disabled
Member search is temporarily disabled in the dashboard. Please use the API for any member search queries: see https://stytch.com/docs/b2b/api/search-members.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "member_dashboard_search_disabled",
"error_message": "Member search is temporarily disabled in the dashboard. Please use the API for any member search queries: see https://stytch.com/docs/b2b/api/search-members.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#member_dashboard_search_disabled"
}
member_password_not_found
Member password not found
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "member_password_not_found",
"error_message": "Member password not found",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#member_password_not_found"
}
member_reset_password
member must reset their password
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "member_reset_password",
"error_message": "member must reset their password",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#member_reset_password"
}
member_search_expected_array_of_strings
Expected member search filter_value to contain an array of strings. Please see https://stytch.com/docs/b2b/api/search-members for request schema details and examples.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "member_search_expected_array_of_strings",
"error_message": "Expected member search filter_value to contain an array of strings. Please see https://stytch.com/docs/b2b/api/search-members for request schema details and examples.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#member_search_expected_array_of_strings"
}
member_search_expected_boolean
Expected member search filter_value to contain a boolean. Please see https://stytch.com/docs/b2b/api/search-members for request schema details and examples.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "member_search_expected_boolean",
"error_message": "Expected member search filter_value to contain a boolean. Please see https://stytch.com/docs/b2b/api/search-members for request schema details and examples.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#member_search_expected_boolean"
}
member_search_expected_string
Expected member search filter_value to contain a string. Please see https://stytch.com/docs/b2b/api/search-members for request schema details and examples.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "member_search_expected_string",
"error_message": "Expected member search filter_value to contain a string. Please see https://stytch.com/docs/b2b/api/search-members for request schema details and examples.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#member_search_expected_string"
}
member_search_filter_name_must_be_string
Expected member search operand filter_name to be a string. Please see https://stytch.com/docs/b2b/api/search-members for request schema details and examples.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "member_search_filter_name_must_be_string",
"error_message": "Expected member search operand filter_name to be a string. Please see https://stytch.com/docs/b2b/api/search-members for request schema details and examples.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#member_search_filter_name_must_be_string"
}
member_search_filter_name_not_recognized
The member search operand filter_name was not recognized. Please see https://stytch.com/docs/b2b/api/search-members for request schema details and examples.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "member_search_filter_name_not_recognized",
"error_message": "The member search operand filter_name was not recognized. Please see https://stytch.com/docs/b2b/api/search-members for request schema details and examples.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#member_search_filter_name_not_recognized"
}
member_search_member_email_fuzzy_too_short
Expected member_email_fuzzy to have a length of at least 3 but it was too short. Please see https://stytch.com/docs/b2b/api/search-members for request schema details and examples.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "member_search_member_email_fuzzy_too_short",
"error_message": "Expected member_email_fuzzy to have a length of at least 3 but it was too short. Please see https://stytch.com/docs/b2b/api/search-members for request schema details and examples.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#member_search_member_email_fuzzy_too_short"
}
member_search_member_mfa_phone_number_fuzzy_too_short
Expected member_mfa_phone_number_fuzzy to have a length of at least 3 but it was too short. Please see https://stytch.com/docs/b2b/api/search-members for request schema details and examples.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "member_search_member_mfa_phone_number_fuzzy_too_short",
"error_message": "Expected member_mfa_phone_number_fuzzy to have a length of at least 3 but it was too short. Please see https://stytch.com/docs/b2b/api/search-members for request schema details and examples.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#member_search_member_mfa_phone_number_fuzzy_too_short"
}
member_search_missing_filter_name
Expected member search operand to contain a filter_name key. Please see https://stytch.com/docs/b2b/api/search-members for request schema details and examples.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "member_search_missing_filter_name",
"error_message": "Expected member search operand to contain a filter_name key. Please see https://stytch.com/docs/b2b/api/search-members for request schema details and examples.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#member_search_missing_filter_name"
}
member_search_missing_filter_value
Expected member search operand to contain a filter_value key. Please see https://stytch.com/docs/b2b/api/search-members for request schema details and examples.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "member_search_missing_filter_value",
"error_message": "Expected member search operand to contain a filter_value key. Please see https://stytch.com/docs/b2b/api/search-members for request schema details and examples.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#member_search_missing_filter_value"
}
member_search_missing_is_breakglass
Expected member_is_breakglass to be passed in the search request but it was not. Please see https://stytch.com/docs/b2b/api/search-members for request schema details and examples.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "member_search_missing_is_breakglass",
"error_message": "Expected member_is_breakglass to be passed in the search request but it was not. Please see https://stytch.com/docs/b2b/api/search-members for request schema details and examples.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#member_search_missing_is_breakglass"
}
member_search_missing_member_email_fuzzy
Expected member_email_fuzzy to be passed in the search request but it was not. Please see https://stytch.com/docs/b2b/api/search-members for request schema details and examples.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "member_search_missing_member_email_fuzzy",
"error_message": "Expected member_email_fuzzy to be passed in the search request but it was not. Please see https://stytch.com/docs/b2b/api/search-members for request schema details and examples.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#member_search_missing_member_email_fuzzy"
}
member_search_missing_member_emails
Expected member_emails to be passed in the search request but it was not. Please see https://stytch.com/docs/b2b/api/search-members for request schema details and examples.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "member_search_missing_member_emails",
"error_message": "Expected member_emails to be passed in the search request but it was not. Please see https://stytch.com/docs/b2b/api/search-members for request schema details and examples.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#member_search_missing_member_emails"
}
member_search_missing_member_ids
Expected member_ids to be passed in the search request but it was not. Please see https://stytch.com/docs/b2b/api/search-members for request schema details and examples.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "member_search_missing_member_ids",
"error_message": "Expected member_ids to be passed in the search request but it was not. Please see https://stytch.com/docs/b2b/api/search-members for request schema details and examples.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#member_search_missing_member_ids"
}
member_search_missing_member_roles
Expected member_roles to be passed in the search request but it was not. Please see https://stytch.com/docs/b2b/api/search-members for request schema details and examples.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "member_search_missing_member_roles",
"error_message": "Expected member_roles to be passed in the search request but it was not. Please see https://stytch.com/docs/b2b/api/search-members for request schema details and examples.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#member_search_missing_member_roles"
}
member_search_missing_mfa_member_phone_number_fuzzy
Expected member_mfa_phone_number_fuzzy to be passed in the search request but it was not. Please see https://stytch.com/docs/b2b/api/search-members for request schema details and examples.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "member_search_missing_mfa_member_phone_number_fuzzy",
"error_message": "Expected member_mfa_phone_number_fuzzy to be passed in the search request but it was not. Please see https://stytch.com/docs/b2b/api/search-members for request schema details and examples.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#member_search_missing_mfa_member_phone_number_fuzzy"
}
member_search_missing_mfa_member_phone_numbers
Expected member_mfa_phone_numbers to be passed in the search request but it was not. Please see https://stytch.com/docs/b2b/api/search-members for request schema details and examples.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "member_search_missing_mfa_member_phone_numbers",
"error_message": "Expected member_mfa_phone_numbers to be passed in the search request but it was not. Please see https://stytch.com/docs/b2b/api/search-members for request schema details and examples.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#member_search_missing_mfa_member_phone_numbers"
}
member_search_missing_oauth_providers
Expected member_oauth_providers to be passed in the search request but it was not. Please see https://stytch.com/docs/b2b/api/search-members for request schema details and examples.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "member_search_missing_oauth_providers",
"error_message": "Expected member_oauth_providers to be passed in the search request but it was not. Please see https://stytch.com/docs/b2b/api/search-members for request schema details and examples.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#member_search_missing_oauth_providers"
}
member_search_missing_organization_id
Expected organization_id to be passed in the search request but it was not. Please see https://stytch.com/docs/b2b/api/search-members for request schema details and examples.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "member_search_missing_organization_id",
"error_message": "Expected organization_id to be passed in the search request but it was not. Please see https://stytch.com/docs/b2b/api/search-members for request schema details and examples.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#member_search_missing_organization_id"
}
member_search_missing_organization_slug
Expected organization_slug to be passed in the search request but it was not. Please see https://stytch.com/docs/b2b/api/search-members for request schema details and examples.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "member_search_missing_organization_slug",
"error_message": "Expected organization_slug to be passed in the search request but it was not. Please see https://stytch.com/docs/b2b/api/search-members for request schema details and examples.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#member_search_missing_organization_slug"
}
member_search_missing_organization_slug_fuzzy
Expected organization_slug_fuzzy to be passed in the search request but it was not. Please see https://stytch.com/docs/b2b/api/search-members for request schema details and examples.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "member_search_missing_organization_slug_fuzzy",
"error_message": "Expected organization_slug_fuzzy to be passed in the search request but it was not. Please see https://stytch.com/docs/b2b/api/search-members for request schema details and examples.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#member_search_missing_organization_slug_fuzzy"
}
member_search_missing_password_exists
Expected member_password_exists to be passed in the search request but it was not. Please see https://stytch.com/docs/b2b/api/search-members for request schema details and examples.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "member_search_missing_password_exists",
"error_message": "Expected member_password_exists to be passed in the search request but it was not. Please see https://stytch.com/docs/b2b/api/search-members for request schema details and examples.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#member_search_missing_password_exists"
}
member_search_missing_status
Expected status to be passed in the search request but it was not. Please see https://stytch.com/docs/b2b/api/search-members for request schema details and examples.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "member_search_missing_status",
"error_message": "Expected status to be passed in the search request but it was not. Please see https://stytch.com/docs/b2b/api/search-members for request schema details and examples.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#member_search_missing_status"
}
member_search_missing_statuses
Expected statuses to be passed in the search request but it was not. Please see https://stytch.com/docs/b2b/api/search-members for request schema details and examples.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "member_search_missing_statuses",
"error_message": "Expected statuses to be passed in the search request but it was not. Please see https://stytch.com/docs/b2b/api/search-members for request schema details and examples.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#member_search_missing_statuses"
}
member_search_missing_totp_exists
Expected member_totp_exists to be passed in the search request but it was not. Please see https://stytch.com/docs/b2b/api/search-members for request schema details and examples.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "member_search_missing_totp_exists",
"error_message": "Expected member_totp_exists to be passed in the search request but it was not. Please see https://stytch.com/docs/b2b/api/search-members for request schema details and examples.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#member_search_missing_totp_exists"
}
member_search_organization_ids_empty
Expected at least one organization_id to be specified for member search. Please see https://stytch.com/docs/b2b/api/search-members for request schema details and examples.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "member_search_organization_ids_empty",
"error_message": "Expected at least one organization_id to be specified for member search. Please see https://stytch.com/docs/b2b/api/search-members for request schema details and examples.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#member_search_organization_ids_empty"
}
member_search_organization_slug_fuzzy_too_short
Expected organization_slug_fuzzy to have a length of at least 3 but it was too short. Please see https://stytch.com/docs/b2b/api/search-members for request schema details and examples.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "member_search_organization_slug_fuzzy_too_short",
"error_message": "Expected organization_slug_fuzzy to have a length of at least 3 but it was too short. Please see https://stytch.com/docs/b2b/api/search-members for request schema details and examples.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#member_search_organization_slug_fuzzy_too_short"
}
metadata_invalid_format
Metadata field must be a JSON object.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "metadata_invalid_format",
"error_message": "Metadata field must be a JSON object.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#metadata_invalid_format"
}
metadata_too_large
Metadata field is too large.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "metadata_too_large",
"error_message": "Metadata field is too large.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#metadata_too_large"
}
metadata_too_many_keys
Metadata field contains too many keys.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "metadata_too_many_keys",
"error_message": "Metadata field contains too many keys.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#metadata_too_many_keys"
}
migrate_from_external_email_does_not_exist
Please ensure that the user and email exist before migrating an external session.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "migrate_from_external_email_does_not_exist",
"error_message": "Please ensure that the user and email exist before migrating an external session.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#migrate_from_external_email_does_not_exist"
}
migrate_from_external_missing_userinfo
The project is missing the OIDC userinfo endpoint. Please configure one in the Stytch dashboard and try again.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "migrate_from_external_missing_userinfo",
"error_message": "The project is missing the OIDC userinfo endpoint. Please configure one in the Stytch dashboard and try again.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#migrate_from_external_missing_userinfo"
}
migrate_from_external_unexpected_response
An error was encountered when querying the external provider's userinfo endpoint.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "migrate_from_external_unexpected_response",
"error_message": "An error was encountered when querying the external provider's userinfo endpoint.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#migrate_from_external_unexpected_response"
}
missing_apple_app_id
The Apple OAuth config is missing an App ID value.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "missing_apple_app_id",
"error_message": "The Apple OAuth config is missing an App ID value.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#missing_apple_app_id"
}
missing_oauth_organization_locator
Please pass in an organization_id or slug query parameter to indicate which organization to use for login.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "missing_oauth_organization_locator",
"error_message": "Please pass in an organization_id or slug query parameter to indicate which organization to use for login.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#missing_oauth_organization_locator"
}
missing_oauth_refresh_token
The Identity Provider did not issue a refresh token and the initial access token is expired. Log in using the identity provider again to issue a new set of credentials. See https://stytch.com/docs/b2b/api/get-google-access-token for more information.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "missing_oauth_refresh_token",
"error_message": "The Identity Provider did not issue a refresh token and the initial access token is expired. Log in using the identity provider again to issue a new set of credentials. See https://stytch.com/docs/b2b/api/get-google-access-token for more information.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#missing_oauth_refresh_token"
}
missing_oidc_csrf_cookie
OIDC callback was missing anti-CSRF cookie. Please try again.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "missing_oidc_csrf_cookie",
"error_message": "OIDC callback was missing anti-CSRF cookie. Please try again.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#missing_oidc_csrf_cookie"
}
missing_oidc_state_param
OIDC callback was missing state form value
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "missing_oidc_state_param",
"error_message": "OIDC callback was missing state form value",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#missing_oidc_state_param"
}
missing_saml_csrf_cookie
SAML POST callback was missing anti-CSRF cookie. Please try again.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "missing_saml_csrf_cookie",
"error_message": "SAML POST callback was missing anti-CSRF cookie. Please try again.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#missing_saml_csrf_cookie"
}
missing_saml_relay_state
SAML POST callback was missing RelayState form value
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "missing_saml_relay_state",
"error_message": "SAML POST callback was missing RelayState form value",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#missing_saml_relay_state"
}
missing_saml_response
SAML POST callback was missing SAMLResponse form value
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "missing_saml_response",
"error_message": "SAML POST callback was missing SAMLResponse form value",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#missing_saml_response"
}
missing_signature_saml_response
The signature in the SAML response is missing.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "missing_signature_saml_response",
"error_message": "The signature in the SAML response is missing.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#missing_signature_saml_response"
}
missing_sso_connection_locator
Please pass in an organization_id, organization_slug, or connection_id query parameter to indicate which SSO Connection to use for login.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "missing_sso_connection_locator",
"error_message": "Please pass in an organization_id, organization_slug, or connection_id query parameter to indicate which SSO Connection to use for login.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#missing_sso_connection_locator"
}
no_active_recovery_code_backed_factor
No active authentication factors that are backed by recovery codes were found for the member.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "no_active_recovery_code_backed_factor",
"error_message": "No active authentication factors that are backed by recovery codes were found for the member.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#no_active_recovery_code_backed_factor"
}
no_active_scim_connection
No active SCIM connection exists for this organization.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "no_active_scim_connection",
"error_message": "No active SCIM connection exists for this organization.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#no_active_scim_connection"
}
no_active_webauthn_registrations
No active WebAuthn registrations for this user ID and domain. To create one, first hit the WebAuthn register/start endpoint. Complete the registration by subsequently hitting the WebAuthn register endpoint.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "no_active_webauthn_registrations",
"error_message": "No active WebAuthn registrations for this user ID and domain. To create one, first hit the WebAuthn register/start endpointwith the supplied user ID and domain: https://stytch.com/docs/api/webauthn-register-start. Complete the registration by subsequently hitting the WebAuthn register endpoint: https://stytch.com/docs/api/webauthn-register.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#no_active_webauthn_registrations"
}
no_default_discovery_redirect_url_set
There is no default discovery redirect URLs set for this project, so we are unable to redirect the user to the application. Please include a discovery redirect URL in the request or set a default for this project. To set discovery redirect URLs for this project please visit https://stytch.com/dashboard/redirect-urls
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "no_default_discovery_redirect_url_set",
"error_message": "There is no default discovery redirect URLs set for this project, so we are unable to redirect the user to the application. Please include a discovery redirect URL in the request or set a default for this project. To set discovery redirect URLs for this project please visit https://stytch.com/dashboard/redirect-urls",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#no_default_discovery_redirect_url_set"
}
no_default_invite_redirect_url_set
There is no default invite redirect URLs set for this project, so we are unable to redirect the user to the application. Please include a invite redirect URL in the request or set a default for this project. To set invite redirect URLs for this project please visit https://stytch.com/dashboard/redirect-urls
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "no_default_invite_redirect_url_set",
"error_message": "There is no default invite redirect URLs set for this project, so we are unable to redirect the user to the application. Please include a invite redirect URL in the request or set a default for this project. To set invite redirect URLs for this project please visit https://stytch.com/dashboard/redirect-urls",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#no_default_invite_redirect_url_set"
}
no_default_login_redirect_url_set
There is no default login redirect URLs set for this project, so we are unable to redirect the user to the application. Please include a login redirect URL in the request or set a default for this project. To set login redirect URLs for this project please visit https://stytch.com/dashboard/redirect-urls
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "no_default_login_redirect_url_set",
"error_message": "There is no default login redirect URLs set for this project, so we are unable to redirect the user to the application. Please include a login redirect URL in the request or set a default for this project. To set login redirect URLs for this project please visit https://stytch.com/dashboard/redirect-urls",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#no_default_login_redirect_url_set"
}
no_default_signup_redirect_url_set
There is no default signup redirect URLs set for this project, so we are unable to redirect the user to the application. Please include a signup redirect URL in the request or set a default for this project. To set signup redirect URLs for this project please visit https://stytch.com/dashboard/redirect-urls
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "no_default_signup_redirect_url_set",
"error_message": "There is no default signup redirect URLs set for this project, so we are unable to redirect the user to the application. Please include a signup redirect URL in the request or set a default for this project. To set signup redirect URLs for this project please visit https://stytch.com/dashboard/redirect-urls",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#no_default_signup_redirect_url_set"
}
no_deleted_member_found_for_reactivation
The member id provided for reactivation does not belong to a deleted member.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "no_deleted_member_found_for_reactivation",
"error_message": "The member id provided for reactivation does not belong to a deleted member.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#no_deleted_member_found_for_reactivation"
}
no_discovery_redirect_url
There are no discovery redirect URLs registered. To set discovery redirect URLs for this project please visit https://stytch.com/dashboard/redirect-urls. For more information on why this validation is necessary please visit https://stytch.com/docs/b2b/api/url-validation.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "no_discovery_redirect_url",
"error_message": "There are no discovery redirect URLs registered. To set discovery redirect URLs for this project please visit https://stytch.com/dashboard/redirect-urls. For more information on why this validation is necessary please visit https://stytch.com/docs/b2b/api/url-validation.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#no_discovery_redirect_url"
}
no_discovery_redirect_urls_set
Unable to verify the provided discovery_redirect_url. There are no discovery redirect URLs set for this project so we are unable to verify the discovery_redirect_url provided in the request. To set discovery redirect URLs for this project please visit https://stytch.com/dashboard/redirect-urls. For more information on why this validation is necessary please visit https://stytch.com/docs/api/url-validation
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "no_discovery_redirect_urls_set",
"error_message": "Unable to verify the provided discovery_redirect_url. There are no discovery redirect URLs set for this project so we are unable to verify the discovery_redirect_url provided in the request. To set discovery redirect URLs for this project please visit https://stytch.com/dashboard/redirect-urls. For more information on why this validation is necessary please visit https://stytch.com/docs/api/url-validation",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#no_discovery_redirect_urls_set"
}
no_invite_redirect_url
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "no_invite_redirect_url",
"error_message": "There are no invite redirect URLs registered. To set invite redirect URLs for this project please visit https://stytch.com/dashboard/redirect-urls. For more information on why this validation is necessary please visit https://stytch.com/docs/api/url-validation.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#no_invite_redirect_url"
}
no_invite_redirect_urls_set
Unable to verify the provided invite_magic_link_url. There are no invite redirect URLs set for this project so we are unable to verify the invite_magic_link_url provided in the request. To set invite redirect URLs for the project please visit the dashboard here. For more information on why this validation is necessary please read more here.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "no_invite_redirect_urls_set",
"error_message": "Unable to verify the provided invite_magic_link_url. There are no invite redirect URLs set for this project so we are unable to verify the invite_magic_link_url provided in the request. To set invite redirect URLs for this project please visit https://stytch.com/dashboard/redirect-urls. For more information on why this validation is necessary please visit https://stytch.com/docs/api/url-validation",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#no_invite_redirect_urls_set"
}
no_login_redirect_url
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "no_login_redirect_url",
"error_message": "There are no login redirect URLs registered. To set login redirect URLs for this project please visit https://stytch.com/dashboard/redirect-urls. For more information on why this validation is necessary please visit https://stytch.com/docs/api/url-validation.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#no_login_redirect_url"
}
no_login_redirect_urls_set
Unable to verify the provided login_magic_link_url. There are no login redirect URLs set for this project so we are unable to verify the login_magic_link_url provided in the request. To set login redirect URLs for the project please visit the dashboard here. For more information on why this validation is necessary please read more here.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "no_login_redirect_urls_set",
"error_message": "Unable to verify the provided login_magic_link_url. There are no login redirect URLs set for this project so we are unable to verify the login_magic_link_url provided in the request. To set login redirect URLs for this project please visit https://stytch.com/dashboard/redirect-urls. For more information on why this validation is necessary please visit https://stytch.com/docs/api/url-validation",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#no_login_redirect_urls_set"
}
no_match_for_provided_magic_link_url
The magic_link_url in the request did not match any redirect URLs set for the project. Please visit the Stytch dashboard here to update the redirect URLs for the project. For more information on why this validation is necessary please read more here.
Common causes
The provided magic_link_url was not added to the Stytch dashboard
The provided magic_link_url contents were changed during development, and the Stytch dashboard was not updated accordingly
Troubleshooting steps
Compare provided magic_link_url with values in the dashboard
Be sure magic_link_url is a redirect URL in the Stytch environment you are using. The Test and Live redirect urls are configured separately with the dashboard.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "no_match_for_provided_magic_link_url",
"error_message": "The magic_link_url in the request did not match any redirect URLs set for this project. Please visit https://stytch.com/dashboard/redirect-urls to update the redirect URLs for this project. For more information on why this validation is necessary please visit https://stytch.com/docs/api/url-validation",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#no_match_for_provided_magic_link_url"
}
no_match_for_provided_oauth_url
The sso redirect url in the request did not match any redirect URLs set for this project. Please visit https://stytch.com/dashboard/redirect-urls to update the redirect URLs for this project. For more information on why this validation is necessary please visit https://stytch.com/docs/api/url-validation
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "no_match_for_provided_oauth_url",
"error_message": "The sso redirect url in the request did not match any redirect URLs set for this project. Please visit https://stytch.com/dashboard/redirect-urls to update the redirect URLs for this project. For more information on why this validation is necessary please visit https://stytch.com/docs/api/url-validation",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#no_match_for_provided_oauth_url"
}
no_match_for_provided_sso_url
The oauth redirect url in the request did not match any redirect URLs set for this project. Please visit https://stytch.com/dashboard/redirect-urls to update the redirect URLs for this project. For more information on why this validation is necessary please visit https://stytch.com/docs/api/url-validation
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "no_match_for_provided_sso_url",
"error_message": "The oauth redirect url in the request did not match any redirect URLs set for this project. Please visit https://stytch.com/dashboard/redirect-urls to update the redirect URLs for this project. For more information on why this validation is necessary please visit https://stytch.com/docs/api/url-validation",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#no_match_for_provided_sso_url"
}
no_password_reset_redirect_url
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "no_password_reset_redirect_url",
"error_message": "Unable to verify the provided reset_password_redirect_url. There are no password reset redirect URLs set for this project so we are unable to verify the reset_password_redirect_url provided in the request. To set password reset redirect URLs for this project please visit https://stytch.com/dashboard/redirect-urls. For more information on why this validation is necessary please visit https://stytch.com/docs/api/url-validation.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#no_password_reset_redirect_url"
}
no_pending_webauthn_registration
Unable to find a pending registration tied to this user. Please ensure you've first hit the WebAuthn register/start endpoint with the supplied user_id.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "no_pending_webauthn_registration",
"error_message": "Unable to find a pending registration tied to this user. Please ensure you've first hit the WebAuthn register/start endpoint with the supplied user ID: https://stytch.com/docs/api/webauthn-register-start.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#no_pending_webauthn_registration"
}
no_session_arguments
Please ensure you're passing exactly one session field.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "no_session_arguments",
"error_message": "Please ensure you're passing exactly one session field.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#no_session_arguments"
}
no_session_revoke_arguments
Please include a session_id, session_token, session_jwt, or a member_id (if the project is a B2B project). Exactly one of those values is required to revoke a session.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "no_session_revoke_arguments",
"error_message": "Please include a session_id, session_token, session_jwt, or a member_id (if the project is a B2B project). Exactly one of those values is required to revoke a session.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#no_session_revoke_arguments"
}
no_signup_redirect_url
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "no_signup_redirect_url",
"error_message": "There are no signup redirect URLs registered. To set signup redirect URLs for this project please visit https://stytch.com/dashboard/redirect-urls. For more information on why this validation is necessary please visit https://stytch.com/docs/api/url-validation.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#no_signup_redirect_url"
}
no_signup_redirect_urls_set
Unable to verify the provided signup_magic_link_url. There are no sign-up redirect URLs set for this project so we are unable to verify the signup_magic_link_url provided in the request. To set signup redirect URLs for the project please visit the dashboard here. For more information on why this validation is necessary please read more here.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "no_signup_redirect_urls_set",
"error_message": "Unable to verify the provided signup_magic_link_url. There are no signup redirect URLs set for this project so we are unable to verify the signup_magic_link_url provided in the request. To set signup redirect URLs for this project please visit https://stytch.com/dashboard/redirect-urls. For more information on why this validation is necessary please visit https://stytch.com/docs/api/url-validation",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#no_signup_redirect_urls_set"
}
no_sso_connection_exists_for_organization
The organization does not have any SSO connections configured.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "no_sso_connection_exists_for_organization",
"error_message": "The organization does not have any SSO connections configured.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#no_sso_connection_exists_for_organization"
}
no_wildcards_in_live_redirect_url
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "no_wildcards_in_live_redirect_url",
"error_message": "",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#no_wildcards_in_live_redirect_url"
}
not_yet_valid_saml_response
The SAML response is not yet valid. Please attempt to log in again.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "not_yet_valid_saml_response",
"error_message": "The SAML response is not yet valid. Please attempt to log in again.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#not_yet_valid_saml_response"
}
oauth_app_not_authorized
You did not authorize this app to perform a signup or login. To use this app, log in again and authorize the required permissions during the login flow. Please reach out to the application developer for more support.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "oauth_app_not_authorized",
"error_message": "You did not authorize this app to perform a signup or login. To use this app, log in again and authorize the required permissions during the login flow. Please reach out to the application developer for more support.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#oauth_app_not_authorized"
}
oauth_auth_code_error
An error was encountered when exchanging the OAuth auth code. Please try again.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "oauth_auth_code_error",
"error_message": "An error was encountered when exchanging the OAuth auth code. Please try again.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#oauth_auth_code_error"
}
oauth_creating_redirect_url_error
An error was encountered creating a redirect url. Please check your redirect urls and try again.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "oauth_creating_redirect_url_error",
"error_message": "An error was encountered creating a redirect url. Please check your redirect urls and try again.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#oauth_creating_redirect_url_error"
}
oauth_discovery_flow_callback_error
An error was encountered in the callback of the Discovery OAuth flow. Please try again.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "oauth_discovery_flow_callback_error",
"error_message": "An error was encountered in the callback of the Discovery OAuth flow. Please try again.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#oauth_discovery_flow_callback_error"
}
oauth_invalid_callback_request
The OAuth callback request is invalid. Please reach out to the application developer for support.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "oauth_invalid_callback_request",
"error_message": "The OAuth callback request is invalid. Please reach out to the application developer for support.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#oauth_invalid_callback_request"
}
oauth_invalid_state
The OAuth state is invalid. Please reach out to the application developer for support.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "oauth_invalid_state",
"error_message": "The OAuth state is invalid. Please reach out to the application developer for support.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#oauth_invalid_state"
}
oauth_non_discovery_flow_callback_error
An error was encountered in the callback of the OAuth flow. Please try again.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "oauth_non_discovery_flow_callback_error",
"error_message": "An error was encountered in the callback of the OAuth flow. Please try again.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#oauth_non_discovery_flow_callback_error"
}
oauth_state_mismatch
The state in the cookie doesn't match with the state in the query parameter. Please retry your login flow. If you continue receiving this error, reach out to the application developer for support.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "oauth_state_mismatch",
"error_message": "The state in the cookie doesn't match with the state in the query parameter. Please retry your login flow. If you continue receiving this error, reach out to the application developer for support.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#oauth_state_mismatch"
}
oauth_state_used
The OAuth state value has already been used.
Common causes
The user completed the same OAuth flow twice. For example, they completed the OAuth flow, then navigated back in the browser and completed it again.
Troubleshooting steps
If the user already has an active Stytch Session, this error can likely be ignored.
If the user does not have an active Stytch Session, prompt them to try completing the OAuth flow again from the beginning.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "oauth_state_used",
"error_message": "The OAuth state has previously been used. Please try the login flow again.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#oauth_state_used"
}
oauth_tenant_jit_provisioning_not_allowed
OAuth Tenant JIT provisioning is not allowed for this organization.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "oauth_tenant_jit_provisioning_not_allowed",
"error_message": "OAuth Tenant JIT provisioning is not allowed for this organization.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#oauth_tenant_jit_provisioning_not_allowed"
}
oauth_token_exchange_invalid_client
Client authentication failed (e.g., unknown client, no client authentication included, or unsupported authentication method). Please check the client ID and secret of your OAuth configuration.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "oauth_token_exchange_invalid_client",
"error_message": "Client authentication failed (e.g., unknown client, no client authentication included, or unsupported authentication method). Please check the client ID and secret of your OAuth configuration.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#oauth_token_exchange_invalid_client"
}
oauth_token_exchange_invalid_request
The request is missing a required parameter, includes an unsupported parameter value (other than grant type), repeats a parameter, includes multiple credentials, utilizes more than one mechanism for authenticating the client, or is otherwise malformed. Please reach out to support.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "oauth_token_exchange_invalid_request",
"error_message": "The request is missing a required parameter, includes an unsupported parameter value (other than grant type), repeats a parameter, includes multiple credentials, utilizes more than one mechanism for authenticating the client, or is otherwise malformed. Please reach out to support.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#oauth_token_exchange_invalid_request"
}
oauth_token_exchange_invalid_scope
The scopes requested were invalid. Please check the scopes you are requesting and try again.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "oauth_token_exchange_invalid_scope",
"error_message": "The scopes requested were invalid. Please check the scopes you are requesting and try again.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#oauth_token_exchange_invalid_scope"
}
oauth_token_exchange_microsoft_expired_secret
Expired client secret provided. Ensure the secret in your OAuth configuration is up to date. You may need to add a new secret in your Microsoft Azure portal.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "oauth_token_exchange_microsoft_expired_secret",
"error_message": "Expired client secret provided. Ensure the secret in your OAuth configuration is up to date. You may need to add a new secret in your Microsoft Azure portal.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#oauth_token_exchange_microsoft_expired_secret"
}
oauth_token_exchange_microsoft_invalid_secret
Invalid client secret provided. Ensure the secret in your OAuth configuration is the client secret value, not the client secret ID.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "oauth_token_exchange_microsoft_invalid_secret",
"error_message": "Invalid client secret provided. Ensure the secret in your OAuth configuration is the client secret value, not the client secret ID.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#oauth_token_exchange_microsoft_invalid_secret"
}
oauth_token_exchange_unauthorized_client
The authenticated client is not authorized to use this authorization grant type. Please check your settings and try again. If the problem persists, please reach out to support.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "oauth_token_exchange_unauthorized_client",
"error_message": "The authenticated client is not authorized to use this authorization grant type. Please check your settings and try again. If the problem persists, please reach out to support.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#oauth_token_exchange_unauthorized_client"
}
oidc_auth_code_error
An error was encountered when exchanging the OIDC auth code. Please reach out to the application developer for support.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "oidc_auth_code_error",
"error_message": "An error was encountered when exchanging the OIDC auth code. Please reach out to the application developer for support.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#oidc_auth_code_error"
}
oidc_connection_authorization_url_invalid_format
The authorization_url provided in the request body is invalid. Please check to make sure the format is correct.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "oidc_connection_authorization_url_invalid_format",
"error_message": "The authorization_url provided in the request body is invalid. Please check to make sure the format is correct.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#oidc_connection_authorization_url_invalid_format"
}
oidc_connection_authorization_url_required
OIDC connections need an authorization_url before going into active status
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "oidc_connection_authorization_url_required",
"error_message": "OIDC connections need an authorization_url before going into active status",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#oidc_connection_authorization_url_required"
}
oidc_connection_client_id_required
OIDC connections need a client_id before going into active status
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "oidc_connection_client_id_required",
"error_message": "OIDC connections need a client_id before going into active status",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#oidc_connection_client_id_required"
}
oidc_connection_client_secret_required
OIDC connections need a client_secret before going into active status
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "oidc_connection_client_secret_required",
"error_message": "OIDC connections need a client_secret before going into active status",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#oidc_connection_client_secret_required"
}
oidc_connection_issuer_required
OIDC connections need an issuer before going into active status
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "oidc_connection_issuer_required",
"error_message": "OIDC connections need an issuer before going into active status",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#oidc_connection_issuer_required"
}
oidc_connection_jwks_url_invalid_format
The jwks_url provided in the request body is invalid. Please check to make sure the format is correct.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "oidc_connection_jwks_url_invalid_format",
"error_message": "The jwks_url provided in the request body is invalid. Please check to make sure the format is correct.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#oidc_connection_jwks_url_invalid_format"
}
oidc_connection_jwks_url_required
OIDC connections need a jwks_url before going into active status
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "oidc_connection_jwks_url_required",
"error_message": "OIDC connections need a jwks_url before going into active status",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#oidc_connection_jwks_url_required"
}
oidc_connection_token_url_invalid_format
The token_url provided in the request body is invalid. Please check to make sure the format is correct.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "oidc_connection_token_url_invalid_format",
"error_message": "The token_url provided in the request body is invalid. Please check to make sure the format is correct.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#oidc_connection_token_url_invalid_format"
}
oidc_connection_token_url_required
OIDC connections need a token_url before going into active status
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "oidc_connection_token_url_required",
"error_message": "OIDC connections need a token_url before going into active status",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#oidc_connection_token_url_required"
}
oidc_connection_userinfo_url_invalid_format
The userinfo_url provided in the request body is invalid. Please check to make sure the format is correct.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "oidc_connection_userinfo_url_invalid_format",
"error_message": "The userinfo_url provided in the request body is invalid. Please check to make sure the format is correct.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#oidc_connection_userinfo_url_invalid_format"
}
oidc_connection_userinfo_url_required
OIDC connections need a userinfo_url before going into active status
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "oidc_connection_userinfo_url_required",
"error_message": "OIDC connections need a userinfo_url before going into active status",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#oidc_connection_userinfo_url_required"
}
oidc_csrf_cookie_mismatch
OIDC callback failed anti-CSRF cookie detection. Please try again.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "oidc_csrf_cookie_mismatch",
"error_message": "OIDC callback failed anti-CSRF cookie detection. Please try again.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#oidc_csrf_cookie_mismatch"
}
oidc_invalid_callback_request
The OIDC callback request is invalid. Please reach out to the application developer for support.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "oidc_invalid_callback_request",
"error_message": "The OIDC callback request is invalid. Please reach out to the application developer for support.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#oidc_invalid_callback_request"
}
oidc_invalid_userinfo
An error was encountered when querying the OIDC userinfo. Please reach out to the application developer for support.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "oidc_invalid_userinfo",
"error_message": "An error was encountered when querying the OIDC userinfo. Please reach out to the application developer for support.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#oidc_invalid_userinfo"
}
oidc_response_email_missing
The information provided in the ID token and userinfo did not include a email.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "oidc_response_email_missing",
"error_message": "The information provided in the ID token and userinfo did not include a email.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#oidc_response_email_missing"
}
oidc_response_name_missing
The information provided in the ID token and userinfo did not include a name.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "oidc_response_name_missing",
"error_message": "The information provided in the ID token and userinfo did not include a name.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#oidc_response_name_missing"
}
oidc_response_subject_mismatch
The subject claims provided in the ID token and userinfo did not match.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "oidc_response_subject_mismatch",
"error_message": "The subject claims provided in the ID token and userinfo did not match.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#oidc_response_subject_mismatch"
}
oidc_response_subject_missing
The information provided in the ID token and userinfo did not include a subject.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "oidc_response_subject_missing",
"error_message": "The information provided in the ID token and userinfo did not include a subject.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#oidc_response_subject_missing"
}
oidc_user_not_assigned_to_app_in_idp
The user is not assigned to the app in the IDP.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "oidc_user_not_assigned_to_app_in_idp",
"error_message": "The user is not assigned to the app in the IDP.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#oidc_user_not_assigned_to_app_in_idp"
}
operation_restricted_by_organization_auth_methods
The requested operation is not allowed by your organization's allowed auth methods.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "operation_restricted_by_organization_auth_methods",
"error_message": "The requested operation is not allowed by your organization's allowed auth methods.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#operation_restricted_by_organization_auth_methods"
}
operation_restricted_by_organization_mfa_methods
The requested operation is not allowed by your organization's allowed mfa methods.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "operation_restricted_by_organization_mfa_methods",
"error_message": "The requested operation is not allowed by your organization's allowed mfa methods.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#operation_restricted_by_organization_mfa_methods"
}
organization_logo_url_too_long
organization_logo_url length exceeds our maximum of 512 characters.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "organization_logo_url_too_long",
"error_message": "organization_logo_url length exceeds our maximum of 512 characters.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#organization_logo_url_too_long"
}
organization_name_missing
organization_name is a required argument to create an organization.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "organization_name_missing",
"error_message": "organization_name is a required argument to create an organization.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#organization_name_missing"
}
organization_search_allowed_domain_fuzzy_too_short
Expected allowed_domain_fuzzy to have a length of at least 3 but it was too short. Please see https://stytch.com/docs/b2b/api/search-organizations for request schema details and examples.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "organization_search_allowed_domain_fuzzy_too_short",
"error_message": "Expected allowed_domain_fuzzy to have a length of at least 3 but it was too short. Please see https://stytch.com/docs/b2b/api/search-organizations for request schema details and examples.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#organization_search_allowed_domain_fuzzy_too_short"
}
organization_search_expected_array_of_strings
Expected organization search filter_value to contain an array of strings. Please see https://stytch.com/docs/b2b/api/search-organizations for request schema details and examples.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "organization_search_expected_array_of_strings",
"error_message": "Expected organization search filter_value to contain an array of strings. Please see https://stytch.com/docs/b2b/api/search-organizations for request schema details and examples.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#organization_search_expected_array_of_strings"
}
organization_search_expected_string
Expected organization search filter_value to contain a string. Please see https://stytch.com/docs/b2b/api/search-organizations for request schema details and examples.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "organization_search_expected_string",
"error_message": "Expected organization search filter_value to contain a string. Please see https://stytch.com/docs/b2b/api/search-organizations for request schema details and examples.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#organization_search_expected_string"
}
organization_search_filter_name_must_be_string
Expected organization search operand filter_name to be a string. Please see https://stytch.com/docs/b2b/api/search-organizations for request schema details and examples.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "organization_search_filter_name_must_be_string",
"error_message": "Expected organization search operand filter_name to be a string. Please see https://stytch.com/docs/b2b/api/search-organizations for request schema details and examples.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#organization_search_filter_name_must_be_string"
}
organization_search_filter_name_not_recognized
The organization search operand filter_name was not recognized. Please see https://stytch.com/docs/b2b/api/search-organizations for request schema details and examples.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "organization_search_filter_name_not_recognized",
"error_message": "The organization search operand filter_name was not recognized. Please see https://stytch.com/docs/b2b/api/search-organizations for request schema details and examples.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#organization_search_filter_name_not_recognized"
}
organization_search_member_email_fuzzy_too_short
Expected member_email_fuzzy to have a length of at least 3 but it was too short. Please see https://stytch.com/docs/b2b/api/search-organizations for request schema details and examples.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "organization_search_member_email_fuzzy_too_short",
"error_message": "Expected member_email_fuzzy to have a length of at least 3 but it was too short. Please see https://stytch.com/docs/b2b/api/search-organizations for request schema details and examples.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#organization_search_member_email_fuzzy_too_short"
}
organization_search_missing_allowed_domain_fuzzy
Expected allowed_domain_fuzzy to be passed in the search request but it was not. Please see https://stytch.com/docs/b2b/api/search-organizations for request schema details and examples.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "organization_search_missing_allowed_domain_fuzzy",
"error_message": "Expected allowed_domain_fuzzy to be passed in the search request but it was not. Please see https://stytch.com/docs/b2b/api/search-organizations for request schema details and examples.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#organization_search_missing_allowed_domain_fuzzy"
}
organization_search_missing_allowed_domains
Expected allowed_domains to be passed in the search request but it was not. Please see https://stytch.com/docs/b2b/api/search-organizations for request schema details and examples.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "organization_search_missing_allowed_domains",
"error_message": "Expected allowed_domains to be passed in the search request but it was not. Please see https://stytch.com/docs/b2b/api/search-organizations for request schema details and examples.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#organization_search_missing_allowed_domains"
}
organization_search_missing_filter_name
Expected organization search operand to contain a filter_name key. Please see https://stytch.com/docs/b2b/api/search-organizations for request schema details and examples.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "organization_search_missing_filter_name",
"error_message": "Expected organization search operand to contain a filter_name key. Please see https://stytch.com/docs/b2b/api/search-organizations for request schema details and examples.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#organization_search_missing_filter_name"
}
organization_search_missing_filter_value
Expected organization search operand to contain a filter_value key. Please see https://stytch.com/docs/b2b/api/search-organizations for request schema details and examples.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "organization_search_missing_filter_value",
"error_message": "Expected organization search operand to contain a filter_value key. Please see https://stytch.com/docs/b2b/api/search-organizations for request schema details and examples.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#organization_search_missing_filter_value"
}
organization_search_missing_member_email_fuzzy
Expected member_email_fuzzy to be passed in the search request but it was not. Please see https://stytch.com/docs/b2b/api/search-organizations for request schema details and examples.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "organization_search_missing_member_email_fuzzy",
"error_message": "Expected member_email_fuzzy to be passed in the search request but it was not. Please see https://stytch.com/docs/b2b/api/search-organizations for request schema details and examples.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#organization_search_missing_member_email_fuzzy"
}
organization_search_missing_member_emails
Expected member_emails to be passed in the search request but it was not. Please see https://stytch.com/docs/b2b/api/search-organizations for request schema details and examples.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "organization_search_missing_member_emails",
"error_message": "Expected member_emails to be passed in the search request but it was not. Please see https://stytch.com/docs/b2b/api/search-organizations for request schema details and examples.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#organization_search_missing_member_emails"
}
organization_search_missing_organization_ids
Expected organization_ids to be passed in the search request but it was not. Please see https://stytch.com/docs/b2b/api/search-organizations for request schema details and examples.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "organization_search_missing_organization_ids",
"error_message": "Expected organization_ids to be passed in the search request but it was not. Please see https://stytch.com/docs/b2b/api/search-organizations for request schema details and examples.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#organization_search_missing_organization_ids"
}
organization_search_missing_organization_name_fuzzy
Expected organization_name_fuzzy to be passed in the search request but it was not. Please see https://stytch.com/docs/b2b/api/search-organizations for request schema details and examples.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "organization_search_missing_organization_name_fuzzy",
"error_message": "Expected organization_name_fuzzy to be passed in the search request but it was not. Please see https://stytch.com/docs/b2b/api/search-organizations for request schema details and examples.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#organization_search_missing_organization_name_fuzzy"
}
organization_search_missing_organization_slug_fuzzy
Expected organization_slug_fuzzy to be passed in the search request but it was not. Please see https://stytch.com/docs/b2b/api/search-organizations for request schema details and examples.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "organization_search_missing_organization_slug_fuzzy",
"error_message": "Expected organization_slug_fuzzy to be passed in the search request but it was not. Please see https://stytch.com/docs/b2b/api/search-organizations for request schema details and examples.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#organization_search_missing_organization_slug_fuzzy"
}
organization_search_missing_organization_slugs
Expected organization_slugs to be passed in the search request but it was not. Please see https://stytch.com/docs/b2b/api/search-organizations for request schema details and examples.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "organization_search_missing_organization_slugs",
"error_message": "Expected organization_slugs to be passed in the search request but it was not. Please see https://stytch.com/docs/b2b/api/search-organizations for request schema details and examples.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#organization_search_missing_organization_slugs"
}
organization_search_organization_name_fuzzy_too_short
Expected organization_name_fuzzy to have a length of at least 3 but it was too short. Please see https://stytch.com/docs/b2b/api/search-organizations for request schema details and examples.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "organization_search_organization_name_fuzzy_too_short",
"error_message": "Expected organization_name_fuzzy to have a length of at least 3 but it was too short. Please see https://stytch.com/docs/b2b/api/search-organizations for request schema details and examples.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#organization_search_organization_name_fuzzy_too_short"
}
organization_search_organization_slug_fuzzy_too_short
Expected organization_slug_fuzzy to have a length of at least 3 but it was too short. Please see https://stytch.com/docs/b2b/api/search-organizations for request schema details and examples.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "organization_search_organization_slug_fuzzy_too_short",
"error_message": "Expected organization_slug_fuzzy to have a length of at least 3 but it was too short. Please see https://stytch.com/docs/b2b/api/search-organizations for request schema details and examples.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#organization_search_organization_slug_fuzzy_too_short"
}
organization_settings_domain_too_common
Common domains such as gmail.com are not allowed as allowed domains.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "organization_settings_domain_too_common",
"error_message": "Common domains such as gmail.com are not allowed as allowed domains.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#organization_settings_domain_too_common"
}
organization_settings_duplicate_domain
Please ensure that there are no duplicate domains in the allowed_domains list.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "organization_settings_duplicate_domain",
"error_message": "Please ensure that there are no duplicate domains in the allowed_domains list.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#organization_settings_duplicate_domain"
}
organization_settings_invalid_domain
Please ensure that all values in allowed_domains are valid domains.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "organization_settings_invalid_domain",
"error_message": "Please ensure that all values in allowed_domains are valid domains.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#organization_settings_invalid_domain"
}
organization_slug_already_used
The provided organization_slug is already used in another organization.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "organization_slug_already_used",
"error_message": "The provided organization_slug is already used in another organization.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#organization_slug_already_used"
}
password_already_exists
User already has a password associated with it. Please use the password reset endpoint to update the password if needed.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "password_already_exists",
"error_message": "email already has a password associated with it.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#password_already_exists"
}
password_does_not_match
Email provided already has a password associated with it that does not match the one provided.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "password_does_not_match",
"error_message": "Email provided already has a password associated with it that does not match the one provided.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#password_does_not_match"
}
password_validation_timeout
Password validation timed out. Possible causes include an excessively long password or a high volume of requests.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "password_validation_timeout",
"error_message": "Password validation timed out. Possible causes include an excessively long password or a high volume of requests.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#password_validation_timeout"
}
passwords_incompatible_with_sdk_config
The passwords product is incompatible with the project SDK configuration. Please change the configuration in the dashboard to continue: https://stytch.com/dashboard/sdk-configuration.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "passwords_incompatible_with_sdk_config",
"error_message": "The passwords product is incompatible with the project SDK configuration. Please change the configuration in the dashboard to continue: https://stytch.com/dashboard/sdk-configuration.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#passwords_incompatible_with_sdk_config"
}
pbkdf_2_key_length_mismatch
The provided PBKDF-2 key_length does not match the length of the decoded hash.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "pbkdf_2_key_length_mismatch",
"error_message": "The provided PBKDF-2 key_length does not match the length of the decoded hash.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#pbkdf_2_key_length_mismatch"
}
pending_totp_exists
Cannot create a new TOTP for the specified user since the user has a pending TOTP that has not yet expired. Please try creating a new TOTP for the user once the pending one has expired or delete the pending TOTP before attempting to create a new one.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "pending_totp_exists",
"error_message": "Cannot create a new TOTP for the specified user since the user has a pending TOTP that has not yet expired. Please try creating a new TOTP for the user once the pending one has expired or delete the pending TOTP before attempting to create a new one.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#pending_totp_exists"
}
pkce_did_not_expect_code_verifier
This flow was started without a code_challenge but the authentication call includes a code_verifier.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "pkce_did_not_expect_code_verifier",
"error_message": "This flow was started without a code_challenge but the authentication call includes a code_verifier.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#pkce_did_not_expect_code_verifier"
}
pkce_expected_code_verifier
This flow was started using a code_challenge but the authentication call is missing the corresponding code_verifier.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "pkce_expected_code_verifier",
"error_message": "This flow was started using a code_challenge but the authentication call is missing the corresponding code_verifier.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#pkce_expected_code_verifier"
}
pkce_mismatch
The submitted code_verifier does not match the code_challenge sent at the start of the flow.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "pkce_mismatch",
"error_message": "The submitted code_verifier does not match the code_challenge sent at the start of the flow.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#pkce_mismatch"
}
pkce_required_for_native_callback
One of the callback URLs supplied is for a native or mobile application. Stytch requires native or mobile applications to use PKCE for all flows involving redirects. Please supply a code_challenge with the request.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "pkce_required_for_native_callback",
"error_message": "One of the callback URLs supplied is for a native or mobile application. Stytch requires native or mobile applications to use PKCE for all flows involving redirects. Please supply a code_challenge with the request.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#pkce_required_for_native_callback"
}
private_key_too_long
Private key is too long. Please make sure you have the correct value.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "private_key_too_long",
"error_message": "Private key is too long. Please make sure you have the correct value.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#private_key_too_long"
}
project_has_no_public_tokens
Project has no public_tokens. Please create one in the Dashboard at https://stytch.com/dashboard/api-keys.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "project_has_no_public_tokens",
"error_message": "Project has no public_tokens. Please create one in the Dashboard at https://stytch.com/dashboard/api-keys.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#project_has_no_public_tokens"
}
public_key_missing
Public key missing from request
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "public_key_missing",
"error_message": "Public key missing from request",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#public_key_missing"
}
public_token_required
public_token is required.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "public_token_required",
"error_message": "public_token is required.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#public_token_required"
}
query_params_do_not_match
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "query_params_do_not_match",
"error_message": "The redirect url in the request provided query parameters that did not match any redirect URLs set on the Stytch dashboard for this project. Please visit https://stytch.com/dashboard/redirect-urls to make any necessary updates. For more information on why this validation is necessary please visit https://stytch.com/docs/api/url-validation",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#query_params_do_not_match"
}
rbac_action_duplicate
There is a duplicate action in your RBAC policy. Please remove it. Actions are case insensitive.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "rbac_action_duplicate",
"error_message": "There is a duplicate action in your RBAC policy. Please remove it. Actions are case insensitive.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#rbac_action_duplicate"
}
rbac_action_too_long
The action name provided was too long. Actions must be less than 100 characters.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "rbac_action_too_long",
"error_message": "The action name provided was too long. Actions must be less than 100 characters.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#rbac_action_too_long"
}
rbac_description_too_long
The description provided was too long. Descriptions must be less than 500 characters.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "rbac_description_too_long",
"error_message": "The description provided was too long. Descriptions must be less than 500 characters.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#rbac_description_too_long"
}
rbac_domain_too_common
Common domains such as gmail.com are not allowed in rbac_email_implicit_role_assignments.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "rbac_domain_too_common",
"error_message": "Common domains such as gmail.com are not allowed in rbac_email_implicit_role_assignments.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#rbac_domain_too_common"
}
rbac_invalid_domain
Please ensure that all domains in rbac_email_implicit_role_assignments are valid domains.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "rbac_invalid_domain",
"error_message": "Please ensure that all domains in rbac_email_implicit_role_assignments are valid domains.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#rbac_invalid_domain"
}
rbac_resource_duplicate
There is a duplicate resource ID in your RBAC policy. Please remove it. Resource IDs are case insensitive.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "rbac_resource_duplicate",
"error_message": "There is a duplicate resource ID in your RBAC policy. Please remove it. Resource IDs are case insensitive.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#rbac_resource_duplicate"
}
rbac_resource_id_too_long
The resource_id provided was too long. Resource IDs must be less than 100 characters.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "rbac_resource_id_too_long",
"error_message": "The resource_id provided was too long. Resource IDs must be less than 100 characters.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#rbac_resource_id_too_long"
}
rbac_role_duplicate
There is a duplicate role ID in your RBAC policy. Please remove it. Role IDs are case insensitive.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "rbac_role_duplicate",
"error_message": "There is a duplicate role ID in your RBAC policy. Please remove it. Role IDs are case insensitive.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#rbac_role_duplicate"
}
rbac_role_id_too_long
The role_id provided was too long. Role IDs must be less than 100 characters.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "rbac_role_id_too_long",
"error_message": "The role_id provided was too long. Role IDs must be less than 100 characters.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#rbac_role_id_too_long"
}
reactivation_email_belongs_to_another_member
The email that belongs to the intended member for reactivation is in use by another member within the organization.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "reactivation_email_belongs_to_another_member",
"error_message": "The email that belongs to the intended member for reactivation is in use by another member within the organization.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#reactivation_email_belongs_to_another_member"
}
recovery_code_used_as_totp_code
The totp_code submitted was invalid. Based on the format of the submitted value it looks like a recovery_code was entered instead. To authenticate a recovery code please use the /v1/totps/recover endpoint. You can read more here: https://stytch.com/docs/api/totp-recover.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "recovery_code_used_as_totp_code",
"error_message": "The totp_code submitted was invalid. Based on the format of the submitted value it looks like a recovery_code was entered instead. To authenticate a recovery code please use the /v1/totps/recover endpoint. You can read more here: https://stytch.com/docs/api/totp-recover.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#recovery_code_used_as_totp_code"
}
redirect_url_cannot_use_protocol
Redirect URLs are not allowed to use this protocol. Please use a different protocol for your native application. If you believe this to be in error, please contact support@stytch.com for assistance.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "redirect_url_cannot_use_protocol",
"error_message": "Redirect URLs are not allowed to use this protocol. Please use a different protocol for your native application. If you believe this to be in error, please contact support@stytch.com for assistance.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#redirect_url_cannot_use_protocol"
}
redirect_url_must_use_https
Redirect URLs for web applications must use HTTPS unless redirecting to localhost. Please change the protocol to HTTPS.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "redirect_url_must_use_https",
"error_message": "Redirect URLs for web applications must use HTTPS unless redirecting to localhost. Please change the protocol to HTTPS.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#redirect_url_must_use_https"
}
redirect_url_with_query_param_placeholder_cannot_be_default
Redirect URLs with query param placeholders ({}) cannot be set as a default redirect URL.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "redirect_url_with_query_param_placeholder_cannot_be_default",
"error_message": "Redirect URLs with query param placeholders ({}) cannot be set as a default redirect URL.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#redirect_url_with_query_param_placeholder_cannot_be_default"
}
redirect_url_with_wildcard_cannot_be_default
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "redirect_url_with_wildcard_cannot_be_default",
"error_message": "",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#redirect_url_with_wildcard_cannot_be_default"
}
required_custom_email_domain
a custom email domain is required for custom html emails.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "required_custom_email_domain",
"error_message": "a custom email domain is required for custom html emails.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#required_custom_email_domain"
}
requires_active_sso_connection
The provided SSO connection is missing required fields, please see either https://stytch.com/docs/b2b/api/update-saml-connection or https://stytch.com/docs/b2b/api/update-oidc-connection and update the connection with all required fields to promote the connection to active.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "requires_active_sso_connection",
"error_message": "The provided SSO connection is missing required fields, please see either https://stytch.com/docs/b2b/api/update-saml-connection or https://stytch.com/docs/b2b/api/update-oidc-connection and update the connection with all required fields to promote the connection to active.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#requires_active_sso_connection"
}
reserved_claims_in_custom_claims
Cannot use a reserved claim as one of your custom claims.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "reserved_claims_in_custom_claims",
"error_message": "Cannot use a reserved claim as one of your custom claims.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#reserved_claims_in_custom_claims"
}
reset_password
User must reset their password through the password reset endpoint. This occurs if a user's credentials appeared in the HaveIBeenPwned dataset or the user used email based authentication (e.g. Magic Links, Google OAuth) without previously verified their email address. The password reset ensures that the user is the legitimate owner of the mail address. This stops malicious actors from abusing the compromised credentials or attempting to pre-hijack account by setting a password for an email.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "reset_password",
"error_message": "user must reset their password",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#reset_password"
}
retired_email_missing_email_identifiers
You must provide one of email_id or email_address in the request.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "retired_email_missing_email_identifiers",
"error_message": "You must provide one of email_id or email_address in the request.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#retired_email_missing_email_identifiers"
}
retired_member_email
This email has been deactivated in response to a change from an upstream identity provider or due to updating a member's email address. Please contact your IT Admin for assistance.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "retired_member_email",
"error_message": "This email has been deactivated in response to a change from an upstream identity provider or due to updating a member's email address. Please contact your IT Admin for assistance.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#retired_member_email"
}
saml_certificate_mismatch
The signature in the SAML response is incorrect. The certificate contained in the response did not match the certificate registered for this connection.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "saml_certificate_mismatch",
"error_message": "The signature in the SAML response is incorrect. The certificate contained in the response did not match the certificate registered for this connection.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#saml_certificate_mismatch"
}
saml_connection_attribute_mapping_missing_groups_key
You may not add group implicit role assignments to your SAML connection until there is a 'groups' key in the connection's attribute mapping.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "saml_connection_attribute_mapping_missing_groups_key",
"error_message": "You may not add group implicit role assignments to your SAML connection until there is a 'groups' key in the connection's attribute mapping.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#saml_connection_attribute_mapping_missing_groups_key"
}
saml_connection_attribute_mapping_required
SAML connections need an attribute mapping before going into active status
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "saml_connection_attribute_mapping_required",
"error_message": "SAML connections need an attribute mapping before going into active status",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#saml_connection_attribute_mapping_required"
}
saml_connection_email_mapping_required
SAML Connection attribute mapping is missing the 'email' field
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "saml_connection_email_mapping_required",
"error_message": "SAML Connection attribute mapping is missing the 'email' field",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#saml_connection_email_mapping_required"
}
saml_connection_idp_sso_url_invalid_format
The idp_sso_url provided in the request body is invalid. Please check to make sure the format is correct.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "saml_connection_idp_sso_url_invalid_format",
"error_message": "The idp_sso_url provided in the request body is invalid. Please check to make sure the format is correct.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#saml_connection_idp_sso_url_invalid_format"
}
saml_connection_idp_sso_url_not_https
The idp_sso_url provided in the request body does not use HTTPS.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "saml_connection_idp_sso_url_not_https",
"error_message": "The idp_sso_url provided in the request body does not use HTTPS.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#saml_connection_idp_sso_url_not_https"
}
saml_connection_idp_sso_url_required
SAML connections need an idp_sso_url before going into active status
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "saml_connection_idp_sso_url_required",
"error_message": "SAML connections need an idp_sso_url before going into active status",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#saml_connection_idp_sso_url_required"
}
saml_connection_metadata_invalid_format
Could not successfully parse the metadata URL supplied
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "saml_connection_metadata_invalid_format",
"error_message": "Could not successfully parse the metadata URL supplied",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#saml_connection_metadata_invalid_format"
}
saml_connection_name_mapping_required
SAML Connection attribute mapping is missing either the 'full_name' or both the 'first_name' and 'last_name' fields
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "saml_connection_name_mapping_required",
"error_message": "SAML Connection attribute mapping is missing either the 'full_name' or both the 'first_name' and 'last_name' fields",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#saml_connection_name_mapping_required"
}
saml_csrf_cookie_mismatch
SAML POST callback failed anti-CSRF cookie detection. Please try again.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "saml_csrf_cookie_mismatch",
"error_message": "SAML POST callback failed anti-CSRF cookie detection. Please try again.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#saml_csrf_cookie_mismatch"
}
saml_group_role_assignment_does_not_contain_member_group
SAML group role assignment requires a member group.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "saml_group_role_assignment_does_not_contain_member_group",
"error_message": "SAML group role assignment requires a member group.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#saml_group_role_assignment_does_not_contain_member_group"
}
scim_connection_not_rotating_token
Bearer token rotation has not been started for this connection. Please start a token rotation flow before calling this endpoint.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "scim_connection_not_rotating_token",
"error_message": "Bearer token rotation has not been started for this connection. Please start a token rotation flow before calling this endpoint.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#scim_connection_not_rotating_token"
}
scim_group_role_assignment_does_not_contain_group_id
SCIM group role assignment requires a group id.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "scim_group_role_assignment_does_not_contain_group_id",
"error_message": "SCIM group role assignment requires a group id.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#scim_group_role_assignment_does_not_contain_group_id"
}
scim_group_role_assignment_group_does_not_exist
SCIM group role assignment contains group ID that does not exist in the organization.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "scim_group_role_assignment_group_does_not_exist",
"error_message": "SCIM group role assignment contains group ID that does not exist in the organization.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#scim_group_role_assignment_group_does_not_exist"
}
scrypt_key_length_mismatch
The key_length value doesn't match the length of the provided hash.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "scrypt_key_length_mismatch",
"error_message": "The key_length value doesn't match the length of the provided hash.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#scrypt_key_length_mismatch"
}
search_invalid_status_filter
status should be set to 'active', 'pending', 'invited', or 'deleted'.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "search_invalid_status_filter",
"error_message": "status should be set to 'active', 'pending', 'invited', or 'deleted'.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#search_invalid_status_filter"
}
search_timeout
Search timed out. Please try using a more specific search query
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "search_timeout",
"error_message": "Search timed out. Please try using a more specific search query",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#search_timeout"
}
secondary_factor_not_found
If you wish to attach a new MFA factor to a member who already has an active MFA factor, you must pass in a session token or session JWT with a valid secondary factor.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "secondary_factor_not_found",
"error_message": "If you wish to attach a new MFA factor to a member who already has an active MFA factor, you must pass in a session token or session JWT with a valid secondary factor.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#secondary_factor_not_found"
}
session_must_have_at_least_one_active_factor
The provided session has no active factors and has been revoked.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "session_must_have_at_least_one_active_factor",
"error_message": "The provided session has no active factors and has been revoked.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#session_must_have_at_least_one_active_factor"
}
signature_is_incorrect_size
The signature is the incorrect size in bytes.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "signature_is_incorrect_size",
"error_message": "The signature is the incorrect size in bytes.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#signature_is_incorrect_size"
}
signature_missing
Signature missing from request
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "signature_missing",
"error_message": "Signature missing from request",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#signature_missing"
}
sso_connection_organization_mismatch
The SAML Connection requested exists, but belongs to a different organization.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "sso_connection_organization_mismatch",
"error_message": "The SAML Connection requested exists, but belongs to a different organization.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#sso_connection_organization_mismatch"
}
sso_verification_key_not_found
The verification certificate could not be found. Please pass in a valid, active verification certificate.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "sso_verification_key_not_found",
"error_message": "The verification certificate could not be found. Please pass in a valid, active verification certificate.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#sso_verification_key_not_found"
}
stytch_claims_in_custom_claims
Cannot use https://stytch.com/session as a custom claim.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "stytch_claims_in_custom_claims",
"error_message": "Cannot use https://stytch.com/session as a custom claim.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#stytch_claims_in_custom_claims"
}
test_id_used_in_live_environment
Invalid argument sent to Live environment. Looks like you supplied a Test identifier inside a request for the Live environment (api.stytch.com). Try sending the request to test.stytch.com instead or using a different identifier.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "test_id_used_in_live_environment",
"error_message": "Invalid argument sent to Live environment. Looks like you supplied a Test identifier inside a request for the Live environment (api.stytch.com). Try sending the request to test.stytch.com instead or using a different identifier.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#test_id_used_in_live_environment"
}
too_many_domains
Maximum number of domains exceeded. Can only have a maximum of 100.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "too_many_domains",
"error_message": "Maximum number of domains exceeded. Can only have a maximum of 100.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#too_many_domains"
}
too_many_email_templates
You have reached the maximum number of email templates for this project. Please delete an email template before creating a new one.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "too_many_email_templates",
"error_message": "You have reached the maximum number of email templates for this project. Please delete an email template before creating a new one.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#too_many_email_templates"
}
too_many_m2m_client_scopes
Too many scopes were attached to the client. A maximum of 1000 scopes is allowed.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "too_many_m2m_client_scopes",
"error_message": "Too many scopes were attached to the client. A maximum of 1000 scopes is allowed.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#too_many_m2m_client_scopes"
}
too_many_oauth_organization_locators
Please pass in at most one of organization_id or slug query parameter to indicate which organization to use for login.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "too_many_oauth_organization_locators",
"error_message": "Please pass in at most one of organization_id or slug query parameter to indicate which organization to use for login.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#too_many_oauth_organization_locators"
}
too_many_projects
You have reached the maximum number of projects for your workspace. Please delete a project before creating a new one.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "too_many_projects",
"error_message": "You have reached the maximum number of projects for your workspace. Please delete a project before creating a new one.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#too_many_projects"
}
too_many_public_tokens
You have reached the maximum number of public tokens for this project. Please delete a public token before creating a new one.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "too_many_public_tokens",
"error_message": "You have reached the maximum number of public tokens for this project. Please delete a public token before creating a new one.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#too_many_public_tokens"
}
too_many_redirect_urls
You have reached the maximum number of redirect URLs for this project. Please delete a redirect URL before creating a new one.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "too_many_redirect_urls",
"error_message": "You have reached the maximum number of redirect URLs for this project. Please delete a redirect URL before creating a new one.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#too_many_redirect_urls"
}
too_many_roles
RBAC policies may contain a maximum of 10 roles.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "too_many_roles",
"error_message": "RBAC policies may contain a maximum of 10 roles.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#too_many_roles"
}
too_many_secrets
You have reached the maximum number of secrets for this project. Please delete a secret before creating a new one.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "too_many_secrets",
"error_message": "You have reached the maximum number of secrets for this project. Please delete a secret before creating a new one.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#too_many_secrets"
}
too_many_session_arguments
Please include at most one of session_token, session_jwt, or intermediate_session_token in an authenticate request, not multiple.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "too_many_session_arguments",
"error_message": "Please include at most one of session_token, session_jwt, or intermediate_session_token in an authenticate request, not multiple.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#too_many_session_arguments"
}
too_many_session_revoke_arguments
Please ensure only one of the following is passed: session_id, session_token, session_jwt, or a member_id (if the project is a B2B project). Exactly one of those values is required to revoke a session.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "too_many_session_revoke_arguments",
"error_message": "Please ensure only one of the following is passed: session_id, session_token, session_jwt, or a member_id (if the project is a B2B project). Exactly one of those values is required to revoke a session.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#too_many_session_revoke_arguments"
}
too_many_sso_connection_locators
Please pass in at most one of organization_id, organization_slug, or connection_id query parameter to indicate which SSO Connection to use for login.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "too_many_sso_connection_locators",
"error_message": "Please pass in at most one of organization_id, organization_slug, or connection_id query parameter to indicate which SSO Connection to use for login.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#too_many_sso_connection_locators"
}
too_many_sso_connections
The provided organization_id has reached the maximum allowed SSO connections. The maximum is 5 SSO connections per protocol.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "too_many_sso_connections",
"error_message": "The provided organization_id has reached the maximum allowed SSO connections. The maximum is 5 SSO connections per protocol.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#too_many_sso_connections"
}
too_many_sso_verification_certificates
The provided connection_id has reached the maximum allowed verification certificates. The maximum is 5. Please delete a certificate before updating a new one.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "too_many_sso_verification_certificates",
"error_message": "The provided connection_id has reached the maximum allowed verification certificates. The maximum is 5. Please delete a certificate before updating a new one.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#too_many_sso_verification_certificates"
}
too_restrictive_organization_settings
All member provisioning mechanisms are set to 'NOT_ALLOWED' - at least one of sso_jit_provisioning, email_jit_provisioning, or email_invites must be set to ALL_ALLOWED or RESTRICTED.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "too_restrictive_organization_settings",
"error_message": "All member provisioning mechanisms are set to 'NOT_ALLOWED' - at least one of sso_jit_provisioning, email_jit_provisioning, or email_invites must be set to ALL_ALLOWED or RESTRICTED.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#too_restrictive_organization_settings"
}
totp_code_used_as_recovery_code
The recovery_code submitted was invalid. Based on the format of the submitted value it looks like a totp_code was entered instead. To authenticate a totp code please use the /v1/totps/authenticate endpoint. You can read more here: https://stytch.com/docs/api/totp-authenticate.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "totp_code_used_as_recovery_code",
"error_message": "The recovery_code submitted was invalid. Based on the format of the submitted value it looks like a totp_code was entered instead. To authenticate a totp code please use the /v1/totps/authenticate endpoint. You can read more here: https://stytch.com/docs/api/totp-authenticate.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#totp_code_used_as_recovery_code"
}
unable_to_authorize_oauth_provider
Unable to authorize request to this OAuth provider. Please check the client ID and secret of your OAuth configuration.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "unable_to_authorize_oauth_provider",
"error_message": "Unable to authorize request to this OAuth provider. Please check the client ID and secret of your OAuth configuration.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#unable_to_authorize_oauth_provider"
}
unable_to_delete_last_public_token
Cannot delete the last public_token for a project. Please create another public_token before deleting this one.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "unable_to_delete_last_public_token",
"error_message": "Cannot delete the last public_token for a project. Please create another public_token before deleting this one.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#unable_to_delete_last_public_token"
}
unable_to_delete_postmark_suppression
The Postmark server returned a non-positive response while trying to delete this suppression.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "unable_to_delete_postmark_suppression",
"error_message": "The Postmark server returned a non-positive response while trying to delete this suppression.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#unable_to_delete_postmark_suppression"
}
unable_to_parse_session_jwt
Unable to parse session JWT
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "unable_to_parse_session_jwt",
"error_message": "Unable to parse session JWT",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#unable_to_parse_session_jwt"
}
unable_to_refresh_oauth_token
Unable to refresh OAuth token. The token may have expired, or the user may have revoked access to the application. Please authorize the application again.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "unable_to_refresh_oauth_token",
"error_message": "Unable to refresh OAuth token. The token may have expired, or the user may have revoked access to the application. Please authorize the application again.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#unable_to_refresh_oauth_token"
}
unable_to_register_webauthn_registration
The WebAuthn registration could not be registered.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "unable_to_register_webauthn_registration",
"error_message": "The WebAuthn registration could not be registered.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#unable_to_register_webauthn_registration"
}
unable_to_represent_custom_claims_json
Unable to represent custom claims as a JSON map.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "unable_to_represent_custom_claims_json",
"error_message": "Unable to represent custom claims as a JSON map.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#unable_to_represent_custom_claims_json"
}
unauthorized_client
Please check that the client_id and client_secret are correct, and that the client exists and is active.
Common causes
The client was not found or the client_id was incorrect.
The secret was incorrect.
The client is not active.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error": "unauthorized_client",
"error_description": "Please check that the `client_id` and `client_secret` are correct, and that the client exists and is active.",
"error_uri": "https://stytch.com/docs/b2b/api/errors/400#unauthorized_client"
}
unsolicited_oidc_response
We do not recognize the state in the OIDC response.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "unsolicited_oidc_response",
"error_message": "We do not recognize the state in the OIDC response.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#unsolicited_oidc_response"
}
unsolicited_saml_response
We do not recognize the InResponseTo ID in the SAML response.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "unsolicited_saml_response",
"error_message": "We do not recognize the InResponseTo ID in the SAML response.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#unsolicited_saml_response"
}
unsubscribed_phone_number
User has unsubscribed. User must resubscribe by texting 'START' before messages can be sent.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "unsubscribed_phone_number",
"error_message": "User has unsubscribed. User must resubscribe by texting 'START' before messages can be sent.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#unsubscribed_phone_number"
}
unsupported_grant_type
Unsupported grant type. Note that the grant_type parameter must be equal to client_credentials in order for the request to succeed.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error": "unsupported_grant_type",
"error_description": "Unsupported grant type. Note that the `grant_type` parameter must be equal to `client_credentials` in order for the request to succeed.",
"error_uri": "https://stytch.com/docs/b2b/api/errors/400#unsupported_grant_type"
}
weak_password
Password doesn't meet the API's strength requirements. A password's strength could be tested with the password strength check endpoint.
Common causes
Troubleshooting steps
Use the password strength check endpoint endpoint to get actionable feedback on improving the strength of the password string. This feedback can be passed on to the end user via your UI.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "weak_password",
"error_message": "password doesn't meet our strength requirements.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#weak_password"
}
xml_validation_saml_unknown_error
Unable to validate SAML Response.
Error
{
"status_code": 400,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"error_type": "xml_validation_saml_unknown_error",
"error_message": "Unable to validate SAML Response.",
"error_url": "https://stytch.com/docs/b2b/api/errors/400#xml_validation_saml_unknown_error"
}