Confirm an email address
curl --request POST \
--url https://my.server.express/api/v1/auth/verify-email \
--header 'Content-Type: application/json' \
--data '
{
"token": "<string>"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({token: '<string>'})
};
fetch('https://my.server.express/api/v1/auth/verify-email', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://my.server.express/api/v1/auth/verify-email"
payload = { "token": "<string>" }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"success": true,
"data": {
"email": "[email protected]",
"alreadyVerified": true
}
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}Auth
Confirm an email address
Redeems the 24-hour link from the confirmation email. Deliberately unauthenticated so the link works on any device. Every failure returns the same 400 message. Redeeming a link for an already-confirmed address succeeds with alreadyVerified: true. Rate-limited to 10 requests per 15 minutes per IP.
POST
/
v1
/
auth
/
verify-email
Confirm an email address
curl --request POST \
--url https://my.server.express/api/v1/auth/verify-email \
--header 'Content-Type: application/json' \
--data '
{
"token": "<string>"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({token: '<string>'})
};
fetch('https://my.server.express/api/v1/auth/verify-email', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://my.server.express/api/v1/auth/verify-email"
payload = { "token": "<string>" }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"success": true,
"data": {
"email": "[email protected]",
"alreadyVerified": true
}
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}