Send an email login code
curl --request POST \
--url https://api.pid.peridotvault.com/v1/auth/email/start \
--header 'Content-Type: application/json' \
--data '
{
"email": "[email protected]"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({email: '[email protected]'})
};
fetch('https://api.pid.peridotvault.com/v1/auth/email/start', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.pid.peridotvault.com/v1/auth/email/start"
payload = { "email": "[email protected]" }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.pid.peridotvault.com/v1/auth/email/start"
payload := strings.NewReader("{\n \"email\": \"[email protected]\"\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))
}{
"ok": true
}{
"statusCode": 400,
"message": [
"handle must be 3-20 chars: lowercase letters, numbers, underscore"
]
}{
"statusCode": 429,
"message": "ThrottlerException: Too Many Requests"
}{
"statusCode": 503,
"message": "Couldn't send the code — please try again."
}auth
Send an email login code
Sends a 6-digit login code to the address via the Brevo sender
(10-minute TTL, 60-second resend cooldown, 5 requests/hour per address).
Always returns { ok: true } — even for unknown addresses — so the
response never reveals whether an address has an account. New addresses
verify the same way, then land on the PID picker
(POST /v1/auth/claim creates the permanent <handle>@pid identity).
POST
/
auth
/
email
/
start
Send an email login code
curl --request POST \
--url https://api.pid.peridotvault.com/v1/auth/email/start \
--header 'Content-Type: application/json' \
--data '
{
"email": "[email protected]"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({email: '[email protected]'})
};
fetch('https://api.pid.peridotvault.com/v1/auth/email/start', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.pid.peridotvault.com/v1/auth/email/start"
payload = { "email": "[email protected]" }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.pid.peridotvault.com/v1/auth/email/start"
payload := strings.NewReader("{\n \"email\": \"[email protected]\"\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))
}{
"ok": true
}{
"statusCode": 400,
"message": [
"handle must be 3-20 chars: lowercase letters, numbers, underscore"
]
}{
"statusCode": 429,
"message": "ThrottlerException: Too Many Requests"
}{
"statusCode": 503,
"message": "Couldn't send the code — please try again."
}Body
application/json
Example:
Response
Code sent (or send skipped silently for abuse control)