Request a password reset
curl --request POST \
--url https://api.simpl.gg/v1/auth/password-reset/request \
--header 'Content-Type: application/json' \
--data '
{
"email": "dev@example.com"
}
'import requests
url = "https://api.simpl.gg/v1/auth/password-reset/request"
payload = { "email": "dev@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: 'dev@example.com'})
};
fetch('https://api.simpl.gg/v1/auth/password-reset/request', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.simpl.gg/v1/auth/password-reset/request",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'email' => 'dev@example.com'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.simpl.gg/v1/auth/password-reset/request"
payload := strings.NewReader("{\n \"email\": \"dev@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.simpl.gg/v1/auth/password-reset/request")
.header("Content-Type", "application/json")
.body("{\n \"email\": \"dev@example.com\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.simpl.gg/v1/auth/password-reset/request")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"email\": \"dev@example.com\"\n}"
response = http.request(request)
puts response.read_bodyAuth
Request a password reset
Sends a reset link to the address if an account holds it. Returns 202
either way, so the endpoint cannot be used to discover which addresses
are registered. The emailed token is valid for 15 minutes.
POST
/
auth
/
password-reset
/
request
Request a password reset
curl --request POST \
--url https://api.simpl.gg/v1/auth/password-reset/request \
--header 'Content-Type: application/json' \
--data '
{
"email": "dev@example.com"
}
'import requests
url = "https://api.simpl.gg/v1/auth/password-reset/request"
payload = { "email": "dev@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: 'dev@example.com'})
};
fetch('https://api.simpl.gg/v1/auth/password-reset/request', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.simpl.gg/v1/auth/password-reset/request",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'email' => 'dev@example.com'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.simpl.gg/v1/auth/password-reset/request"
payload := strings.NewReader("{\n \"email\": \"dev@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.simpl.gg/v1/auth/password-reset/request")
.header("Content-Type", "application/json")
.body("{\n \"email\": \"dev@example.com\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.simpl.gg/v1/auth/password-reset/request")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"email\": \"dev@example.com\"\n}"
response = http.request(request)
puts response.read_bodyBody
application/json
Starts a password reset. Always returns 202, whether or not the address
belongs to an account. The response never reveals which addresses are
registered.
Response
Accepted. An email was sent if the address belongs to an account.