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 \
--request POST https://domain.tld/api/v2/auth/forgot-password \
--header "Content-Type: application/json" \
--header "X-Popsell-Domain: example.com" \
--data '{"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."
}