Consume an emailed reset token and set a new password.
curl --request POST \
--url https://api.symbiosis.markets/auth/password/reset \
--header 'Content-Type: application/json' \
--data '
{
"new_password": "<string>",
"token": "<string>",
"code": "<string>"
}
'import requests
url = "https://api.symbiosis.markets/auth/password/reset"
payload = {
"new_password": "<string>",
"token": "<string>",
"code": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({new_password: '<string>', token: '<string>', code: '<string>'})
};
fetch('https://api.symbiosis.markets/auth/password/reset', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));Auth
Consume an emailed reset token and set a new password.
When TOTP is enabled the token alone is not enough: the request must also carry a current TOTP or recovery code. Every session and API key is revoked; sign in again with the new password.
POST
/
auth
/
password
/
reset
Consume an emailed reset token and set a new password.
curl --request POST \
--url https://api.symbiosis.markets/auth/password/reset \
--header 'Content-Type: application/json' \
--data '
{
"new_password": "<string>",
"token": "<string>",
"code": "<string>"
}
'import requests
url = "https://api.symbiosis.markets/auth/password/reset"
payload = {
"new_password": "<string>",
"token": "<string>",
"code": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({new_password: '<string>', token: '<string>', code: '<string>'})
};
fetch('https://api.symbiosis.markets/auth/password/reset', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));