Mail a password reset link
curl --request POST \
--url https://app.trustivan.com/api/v1/auth/password/forgot \
--header 'Content-Type: application/json' \
--data '
{
"email": "jsmith@example.com"
}
'import requests
url = "https://app.trustivan.com/api/v1/auth/password/forgot"
payload = { "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({email: 'jsmith@example.com'})
};
fetch('https://app.trustivan.com/api/v1/auth/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://app.trustivan.com/api/v1/auth/password/forgot"
payload := strings.NewReader("{\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))
}Mail a password reset link
Mails <DASHBOARD_URL>/auth/reset-password?token=…, valid for 30
minutes and once. The answer is the same 202 whether or not the
address has an account, whether the account may reset (deleted,
suspended, or under SSO enforcement without the owner break-glass),
and whether a link was already sent in the last minute, so the
endpoint does not disclose which addresses are registered. Rate
limited per client address.
POST
/
auth
/
password
/
forgot
Mail a password reset link
curl --request POST \
--url https://app.trustivan.com/api/v1/auth/password/forgot \
--header 'Content-Type: application/json' \
--data '
{
"email": "jsmith@example.com"
}
'import requests
url = "https://app.trustivan.com/api/v1/auth/password/forgot"
payload = { "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({email: 'jsmith@example.com'})
};
fetch('https://app.trustivan.com/api/v1/auth/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://app.trustivan.com/api/v1/auth/password/forgot"
payload := strings.NewReader("{\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))
}