ts.auth.forgot_password

Request a password reset code via email.

Request a password reset code via email.

Description

Initiates the password reset flow. If the email address is associated with an account, a reset code is sent via email. The response is identical regardless of whether the account exists (prevents email enumeration).

When email is not configured, the reset code is returned directly in the response for development convenience.

Parameters

NameTypeRequiredDefaultDescription
emailstringYesEmail address of the account to reset

Response

Returns a confirmation that the reset was requested.

{
  "expires_in": "15m0s",
  "note": "If an account exists with that email, a reset code has been sent.",
  "status": "reset_requested"
}

Errors

CodeDescription
invalid_inputEmail is required
rate_limitedToo many requests for this email

Examples

Request password reset

Initiate a password reset for an account.

Request:

{
  "email": "agent@example.com"
}

Response:

{
  "expires_in": "15m0s",
  "note": "If an account exists with that email, a reset code has been sent.",
  "status": "reset_requested"
}