Request Password Reset
POST
/v1/users/forgot-password
const url = 'https://example.com/api/v1/users/forgot-password';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"email":"user@example.com"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/api/v1/users/forgot-password \ --header 'Content-Type: application/json' \ --data '{ "email": "user@example.com" }'Sends a password reset email if the address is associated with a local account. Always returns 204 on success to avoid leaking whether the email is registered.
Request Body required
Section titled “Request Body required ” Media type application/json
object
email
required
string
Example
user@example.comResponses
Section titled “ Responses ”No Content
Missing or invalid request body, or empty email field
Media type application/json
string
Example generated
exampleDemo mode is enabled or local login is disabled
Media type application/json
string
Example generated
exampleInternal error while processing the request
Media type application/json
string
Example generated
example