Verify Email Link
curl --request GET \
--url https://api.sublay.io/v8/:projectId/auth/verify-email-link \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.sublay.io/v8/:projectId/auth/verify-email-link"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.sublay.io/v8/:projectId/auth/verify-email-link', 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.sublay.io/v8/:projectId/auth/verify-email-link",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.sublay.io/v8/:projectId/auth/verify-email-link"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.sublay.io/v8/:projectId/auth/verify-email-link")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sublay.io/v8/:projectId/auth/verify-email-link")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_bodyAuth Endpoints
Verify Email Link
The page a verification email’s link opens: confirm to verify
Verify Email Link
curl --request GET \
--url https://api.sublay.io/v8/:projectId/auth/verify-email-link \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.sublay.io/v8/:projectId/auth/verify-email-link"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.sublay.io/v8/:projectId/auth/verify-email-link', 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.sublay.io/v8/:projectId/auth/verify-email-link",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.sublay.io/v8/:projectId/auth/verify-email-link"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.sublay.io/v8/:projectId/auth/verify-email-link")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sublay.io/v8/:projectId/auth/verify-email-link")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_bodyThe page a verification email’s link opens: emails sent by Send Verification Email with
The destination is the
mode: "link" (the link lasts 5 minutes), and the confirmation emails sent at sign-up and after a refused sign-in when the project requires email verification before sign-in (the link lasts 24 hours, and a newer link replaces the previous one). Opening it doesn’t verify anything: it shows a Sublay page asking the user to confirm — “Only confirm if you created an account with {your app’s name}” — with a Confirm my email button. Clicking it verifies the email (isVerified becomes true) and invalidates the token.
The confirm step exists because work email scanners open every link in incoming mail. If opening the link verified the account, a scanner could verify an account someone else created with that person’s email.
You don’t call this endpoint from your app: it’s the target of the button in the email.
Query Parameters
Behaviour
| Outcome | redirectUrl was given | No redirectUrl |
|---|---|---|
| Link opened | Confirm page | Confirm page |
| Confirmed | Success page, then on to {redirectUrl} with verified=true added to its query after 5 seconds (or at once with Continue now) | Success page |
| Invalid / expired token | Hosted error page | Hosted error page |
| Server error | Hosted error page | Hosted error page |
| Rate limit exceeded (10 requests per 15 minutes per IP) | 429 with a plain-text sentence (Too many verification attempts, please wait 15 minutes), not JSON | Same |
redirectUrl you passed to Send Verification Email, or in emailVerification to Sign Up or Sign In, stored with the token when the email was sent. The link itself carries no destination, so it can’t be edited to send someone elsewhere. Only a redirectUrl on one of your project’s Verified Domains is accepted, and a stored one is checked again when a later email uses it: if it’s no longer on the list, the link shows the hosted success page instead. A failed verification always shows the hosted page.

