Send a password reset token by email to the user. It uses a classic scheme where a token is sent by email.
POST
/auth/reset-password
curl
curl -X POST "http://api.example.com/auth/reset-password" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-d '{
"email": "admin@example.com"
}'
import requests
url = "http://api.example.com/auth/reset-password"
headers = {
"Authorization": "Bearer YOUR_API_TOKEN",
"Accept": "application/json",
"Content-Type": "application/json"
}
params = {}
payload = {
"email": "admin@example.com"
}
response = requests.post(
url,
headers=headers,
params=params,
json=payload
)
response.raise_for_status()
if response.content:
print(response.json())
curl \
--request POST 'http://api.example.com/auth/reset-password' \
--header "Authorization: $API_KEY" \
--header "Content-Type: application/json" \
--data '{"email":"admin@example.com"}'
Request examples
{
"email": "admin@example.com"
}