Recover an account
Using this endpoint the user will receive an email with the link to reset his password. The link contains a validation_code which can be used in the next call to reset the password.
eg: http://[...]/account/recover/password?validation_code=d73832396a1b0c2511cf166147a3e2440a&next=/
info
This operation does not require authentication.
HTTP Request
POST /api/v2/account/recover/
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
body | string | true | The email of the user of whom we have to recover password. |
Example Request
- JavaScript
- Bash
const inputBody = '{
"email": "string"
}';
const headers = {
'Content-Type':'application/json',
'Accept':'application/json'
};
fetch('/api/v2/account/recover/',
{
method: 'POST',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
# You can also use wget
curl -X POST /api/v2/account/recover/ \
-H 'Content-Type: application/json' \
-H 'Accept: application/json'
-d '{
"email": "string"
}'
Responses
Status | Meaning | Description | Schema |
---|---|---|---|
204 | No Content | Response status code | None |