Forgot Password (public)
Forgot Password will send an email to the user with a link to reset the password
Headers
-
The domain of the user
POST /auth/forgot-password
curl \
-X POST https://domain.tld/api/v2/auth/forgot-password \
-H "Content-Type: application/json" \
-H "X-Popsell-Domain: example.com" \
-d '{"email":"string"}'
Request examples
# Headers
X-Popsell-Domain: example.com
# Payload
{
"email": "string"
}
Response examples (200)
{
"message": "Reset password link sent"
}
Response examples (401)
{
"message": "Unauthorized."
}
Response examples (422)
{
"message": "field is required! (and 3 more error)",
"errors": {
"field": [
"Error message details here"
],
"additionalProperty1": [
"Error message details here"
],
"additionalProperty2": [
"Error message details here"
]
}
}
Response examples (429)
{
"message": "Too Many Requests."
}