Stytch · Schema

api_b2b_password_v1_b2b_passwords_discovery_email_ResetStartRequest

Request type

AuthenticationIdentityPasswordlessSecurityB2BConnected AppsMCPAI AgentsDeveloper Tools

Properties

Name Type Description
email_address string The email address of the Member to start the email reset process for.
reset_password_redirect_url string The URL that the Member is redirected to from the reset password magic link. This URL should display your application's reset password page. Before rendering the reset page, extract the `token` from t
discovery_redirect_url string The URL that the end user clicks from the discovery Magic Link. This URL should be an endpoint in the backend server that verifies the request by querying Stytch's discovery authenticate endpoint and
reset_password_template_id string Use a custom template for reset password emails. By default, it will use your default email template. Templates can be added in the [Stytch dashboard](https://stytch.com/dashboard/templates) using our
reset_password_expiration_minutes integer Sets a time limit after which the email link to reset the member's password will no longer be valid. The minimum allowed expiration is 5 minutes and the maximum is 10080 minutes (7 days). By default,
pkce_code_challenge string
locale string Used to determine which language to use when sending the user this delivery method. Parameter is an [IETF BCP 47 language tag](https://www.w3.org/International/articles/language-tags/), e.g. `"en"`. C
verify_email_template_id string Use a custom template for verification emails sent during password reset flows. When cross-organization passwords are enabled for your Project, this template will be used the first time a user sets a
View JSON Schema on GitHub

JSON Schema

stytch-api-b2b-password-v1-b2b-passwords-discovery-email-resetstart-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/api_b2b_password_v1_b2b_passwords_discovery_email_ResetStartRequest",
  "title": "api_b2b_password_v1_b2b_passwords_discovery_email_ResetStartRequest",
  "type": "object",
  "properties": {
    "email_address": {
      "type": "string",
      "description": "The email address of the Member to start the email reset process for."
    },
    "reset_password_redirect_url": {
      "type": "string",
      "description": "The URL that the Member is redirected to from the reset password magic link. This URL should display your application's reset password page.\n  Before rendering the reset page, extract the `token` from the query parameters. On the reset page, collect the new password and complete the flow by calling the corresponding Password Reset by Email endpoint.\n  If this parameter is not specified, the default Reset Password redirect URL configured in the Dashboard will be used. If you have not set a default Reset Password redirect URL, an error is returned."
    },
    "discovery_redirect_url": {
      "type": "string",
      "description": "The URL that the end user clicks from the discovery Magic Link. This URL should be an endpoint in the backend server that\n  verifies the request by querying Stytch's discovery authenticate endpoint and continues the flow. If this value is not passed, the default\n  discovery redirect URL that you set in your Dashboard is used. If you have not set a default discovery redirect URL, an error is returned."
    },
    "reset_password_template_id": {
      "type": "string",
      "description": "Use a custom template for reset password emails. By default, it will use your default email template. Templates can be added in the [Stytch dashboard](https://stytch.com/dashboard/templates) using our built-in customization options or custom HTML templates with type \u201cPasswords - Reset Password\u201d."
    },
    "reset_password_expiration_minutes": {
      "type": "integer",
      "format": "int32",
      "description": "Sets a time limit after which the email link to reset the member's password will no longer be valid. The minimum allowed expiration is 5 minutes and the maximum is 10080 minutes (7 days). By default, the expiration is 30 minutes."
    },
    "pkce_code_challenge": {
      "type": "string"
    },
    "locale": {
      "type": "string",
      "description": "Used to determine which language to use when sending the user this delivery method. Parameter is an [IETF BCP 47 language tag](https://www.w3.org/International/articles/language-tags/), e.g. `\"en\"`.\n\nCurrently supported languages are English (`\"en\"`), Spanish (`\"es\"`), French (`\"fr\"`) and Brazilian Portuguese (`\"pt-br\"`); if no value is provided, the copy defaults to English.\n\nRequest support for additional languages [here](https://docs.google.com/forms/d/e/1FAIpQLScZSpAu_m2AmLXRT3F3kap-s_mcV6UTBitYn6CdyWP0-o7YjQ/viewform?usp=sf_link\")!\n"
    },
    "verify_email_template_id": {
      "type": "string",
      "description": "Use a custom template for verification emails sent during password reset flows. When cross-organization passwords are enabled for your Project, this template will be used the first time a user sets a password via a\n  password reset flow. By default, it will use your default email template. Templates can be added in the [Stytch dashboard](https://stytch.com/dashboard/templates) using our built-in customization options or custom HTML templates with type \u201cPasswords - Email Verification\u201d."
    }
  },
  "description": "Request type",
  "required": [
    "email_address"
  ]
}