Skip to content

Updating visuals

If you see any images containing outdated UI, please bear with us.

We are updating all content as quickly as possible to mirror our new UI.

On password reset requested

You can use this event to email a secure reset link to users who request it, keep track of how often resets are requested, or set rules to prevent too many requests.

Interface actions that fire the On password reset requested event

Use Cases

  • Send a password reset email with a secure, time‑limited link
  • Throttle repeated requests to prevent abuse
  • Log attempts and notify security tools if unusual activity is detected

Event data

Display KeyExample ValueDescription
user{ id: "b20fd6fd-...", email: "user@example.com" }The user requesting a reset.
token"eyJhbGciOi..."One‑time token used to validate the reset.
url"https://your-domain.com/reset-password?token=...&redirect_url=..."Complete, ready‑to‑use reset link (includes token and your redirects).

Example payload

json
{
  "user": {
    "id": "b20fd6fd-aa0a-44c2-8429-2e39cc4d59b4",
    "email": "user@example.com"
  },
  "token": "eyJhbGciOi...",
  "url": "https://your-domain.com/reset-password?token=...&redirect_url=https://your-app.com/signed-in"
}

Sending the reset email

To email the reset link to the user, use one of the email integrations.

View full list of email sending integrations →

Resend

As an example, here’s how to send the reset link using the Resend integration.

Steps:

  1. Add the Send Email action from Resend
  2. Bind fields of the action:
    • To → user.email from the event data
    • Subject → e.g., “Reset your password”
    • HTML/Text → include the url from the event data in the message body

Example HTML snippet:

html
<p>Hi,</p>
<p>Click the link below to reset your password:</p>
<p><a href="{{url}}">Reset password</a></p>
<p>If you didn’t request this, you can ignore this email.</p>