Skip to main content

Reset password

Using this endpoint the user will be able to reset his password and after that he will be logged in (and the token will be returned).

info

This operation does not require authentication.

HTTP Request

POST /api/v2/account/reset/

Parameters

NameInTypeRequiredDescription
validation_codebodystringtrueThe code found in the email generated by Recover an account endpoint
passwordbodystringtrueThe new password of the user. The password must be at least 8 characters (max 128 chararacters) and it must contains at least 3 of the following 4 types of characters: lower case letters, upper case letters, numbers and special characters (eg !@#$%^&)

Example Request

const inputBody = '{
"validation_code": "string",
"password": "string"
}';
const headers = {
'Content-Type':'application/json',
'Accept':'application/json'
};

fetch('/api/v2/account/reset/',
{
method: 'POST',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});

Responses

StatusMeaningDescriptionSchema
200OKResponse status codeInline

Response Schema

Status Code 200

NameTypeRestrictionsDescription
tokenTokennoneToken fields

Example responses

{
"token": {
"access_token": "string",
"expires_in": "integer",
"token_type": "string",
"refresh_token": "string",
"client_id": "string",
"scope": "string"
}
}