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));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.glassmarkets.io/v1/password/reset/"
payload := strings.NewReader("{\n \"uidb64\": \"<string>\",\n \"token\": \"<string>\",\n \"new_password\": \"<string>\",\n \"confirm_password\": \"<string>\"\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/reset/")
.header("Content-Type", "application/json")
.body("{\n \"uidb64\": \"<string>\",\n \"token\": \"<string>\",\n \"new_password\": \"<string>\",\n \"confirm_password\": \"<string>\"\n}")
.asString();{
"message": "<string>"
}{
"confirm_password": [
"This field is required."
]
}{
"detail": "Request was throttled. Expected available in 42 seconds."
}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));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.glassmarkets.io/v1/password/reset/"
payload := strings.NewReader("{\n \"uidb64\": \"<string>\",\n \"token\": \"<string>\",\n \"new_password\": \"<string>\",\n \"confirm_password\": \"<string>\"\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/reset/")
.header("Content-Type", "application/json")
.body("{\n \"uidb64\": \"<string>\",\n \"token\": \"<string>\",\n \"new_password\": \"<string>\",\n \"confirm_password\": \"<string>\"\n}")
.asString();{
"message": "<string>"
}{
"confirm_password": [
"This field is required."
]
}{
"detail": "Request was throttled. Expected available in 42 seconds."
}
