Recover Account
POST api/account/recover
This is used to recover the user’s account.
Example Request
curl -X 'POST' \ 'http://localhost:8080/api/account/recover' \ -H 'accept: application/json' \ -H 'Content-Type: application/json' \ -d '{ "recovery_code": "242124", "email": "johndoe@gmail.com", "new_password": "johndoe3"}'Request Body
Content Type: application/json
Content: Account Recovery
{ "recovery_code": 0, "email": "string", "password": "string"}Responses
200 - OK
The request was successful
Content Type: text/plain
Content:
Account recovered successfully!400 - Bad Request
Validation Error
Content Type: application/json
Content:
{ "error_message": "string"}401 - Unauthorized
The request requires valid bearer token, but none were provided, or the bearer token is invalid.
429 - Too Many Requests
The user has exceeded the rate limit of 5 requests per minute.
500 - Internal Server Error
There is an issue with the backend. Sentry will provide a more detailed report on the problem.