Request a password reset email
curl --request POST \
--url https://api.glassmarkets.io/v1/password/forgot/ \
--header 'Content-Type: application/json' \
--data '
{
"username": "<string>",
"email": "jsmith@example.com"
}
'import requests
url = "https://api.glassmarkets.io/v1/password/forgot/"
payload = {
"username": "<string>",
"email": "jsmith@example.com"
}
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({username: '<string>', email: 'jsmith@example.com'})
};
fetch('https://api.glassmarkets.io/v1/password/forgot/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"message": "<string>"
}Authentication
Request a password reset email
Sends a password reset link to the account with this email or username. The response is the same whether or not the account exists.
Request a password reset email
curl --request POST \
--url https://api.glassmarkets.io/v1/password/forgot/ \
--header 'Content-Type: application/json' \
--data '
{
"username": "<string>",
"email": "jsmith@example.com"
}
'import requests
url = "https://api.glassmarkets.io/v1/password/forgot/"
payload = {
"username": "<string>",
"email": "jsmith@example.com"
}
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({username: '<string>', email: 'jsmith@example.com'})
};
fetch('https://api.glassmarkets.io/v1/password/forgot/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"message": "<string>"
}
