Reset a password
curl --request POST \
--url https://api.glassmarkets.io/v1/password/reset/ \
--header 'Content-Type: application/json' \
--data '
{
"uidb64": "<string>",
"token": "<string>",
"new_password": "<string>",
"confirm_password": "<string>"
}
'import requests
url = "https://api.glassmarkets.io/v1/password/reset/"
payload = {
"uidb64": "<string>",
"token": "<string>",
"new_password": "<string>",
"confirm_password": "<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({
uidb64: '<string>',
token: '<string>',
new_password: '<string>',
confirm_password: '<string>'
})
};
fetch('https://api.glassmarkets.io/v1/password/reset/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"message": "<string>"
}Authentication
Reset a password
Sets a new password with the uidb64 and token from a password reset link. Revokes every token of the account.
Reset a password
curl --request POST \
--url https://api.glassmarkets.io/v1/password/reset/ \
--header 'Content-Type: application/json' \
--data '
{
"uidb64": "<string>",
"token": "<string>",
"new_password": "<string>",
"confirm_password": "<string>"
}
'import requests
url = "https://api.glassmarkets.io/v1/password/reset/"
payload = {
"uidb64": "<string>",
"token": "<string>",
"new_password": "<string>",
"confirm_password": "<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({
uidb64: '<string>',
token: '<string>',
new_password: '<string>',
confirm_password: '<string>'
})
};
fetch('https://api.glassmarkets.io/v1/password/reset/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"message": "<string>"
}
