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));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.glassmarkets.io/v1/password/forgot/"
payload := strings.NewReader("{\n \"username\": \"<string>\",\n \"email\": \"jsmith@example.com\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.glassmarkets.io/v1/password/forgot/")
.header("Content-Type", "application/json")
.body("{\n \"username\": \"<string>\",\n \"email\": \"jsmith@example.com\"\n}")
.asString();{
"message": "<string>"
}{
"username": [
"This field may not be blank."
]
}{
"detail": "Request was throttled. Expected available in 42 seconds."
}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));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.glassmarkets.io/v1/password/forgot/"
payload := strings.NewReader("{\n \"username\": \"<string>\",\n \"email\": \"jsmith@example.com\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.glassmarkets.io/v1/password/forgot/")
.header("Content-Type", "application/json")
.body("{\n \"username\": \"<string>\",\n \"email\": \"jsmith@example.com\"\n}")
.asString();{
"message": "<string>"
}{
"username": [
"This field may not be blank."
]
}{
"detail": "Request was throttled. Expected available in 42 seconds."
}
