Request a password reset
curl --request POST \
--url https://api.sitespy.app/api/v1/auth/forgot-password \
--header 'Content-Type: application/json' \
--data '
{
"email": "user@example.com"
}
'import requests
url = "https://api.sitespy.app/api/v1/auth/forgot-password"
payload = { "email": "user@example.com" }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({email: 'user@example.com'})
};
fetch('https://api.sitespy.app/api/v1/auth/forgot-password', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"message": "If an account with that email exists, a password reset link has been generated.",
"reset_token": "<string>"
}{
"error": "Email is required"
}Authentication
Request a password reset
Request a password reset token for the given email address. Always returns success to avoid leaking whether an email is registered.
POST
/
auth
/
forgot-password
Request a password reset
curl --request POST \
--url https://api.sitespy.app/api/v1/auth/forgot-password \
--header 'Content-Type: application/json' \
--data '
{
"email": "user@example.com"
}
'import requests
url = "https://api.sitespy.app/api/v1/auth/forgot-password"
payload = { "email": "user@example.com" }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({email: 'user@example.com'})
};
fetch('https://api.sitespy.app/api/v1/auth/forgot-password', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"message": "If an account with that email exists, a password reset link has been generated.",
"reset_token": "<string>"
}{
"error": "Email is required"
}Body
application/json
Email address of the account to reset
Example:
"user@example.com"

