Send Verification Email
curl --request POST \
--url https://api.replyke.com/api/v6/:projectId/api/v7/auth/send-verification-email \
--header 'Content-Type: application/json' \
--data '
{
"mode": {},
"tokenFormat": {},
"tokenLength": 123,
"redirectUrl": "<string>"
}
'import requests
url = "https://api.replyke.com/api/v6/:projectId/api/v7/auth/send-verification-email"
payload = {
"mode": {},
"tokenFormat": {},
"tokenLength": 123,
"redirectUrl": "<string>"
}
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({mode: {}, tokenFormat: {}, tokenLength: 123, redirectUrl: '<string>'})
};
fetch('https://api.replyke.com/api/v6/:projectId/api/v7/auth/send-verification-email', 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.replyke.com/api/v6/:projectId/api/v7/auth/send-verification-email",
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([
'mode' => [
],
'tokenFormat' => [
],
'tokenLength' => 123,
'redirectUrl' => '<string>'
]),
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.replyke.com/api/v6/:projectId/api/v7/auth/send-verification-email"
payload := strings.NewReader("{\n \"mode\": {},\n \"tokenFormat\": {},\n \"tokenLength\": 123,\n \"redirectUrl\": \"<string>\"\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.replyke.com/api/v6/:projectId/api/v7/auth/send-verification-email")
.header("Content-Type", "application/json")
.body("{\n \"mode\": {},\n \"tokenFormat\": {},\n \"tokenLength\": 123,\n \"redirectUrl\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.replyke.com/api/v6/:projectId/api/v7/auth/send-verification-email")
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 \"mode\": {},\n \"tokenFormat\": {},\n \"tokenLength\": 123,\n \"redirectUrl\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"success": true
}Auth Endpoints
Send Verification Email
Send an email verification token or link to the authenticated user
POST
/
:projectId
/
api
/
v7
/
auth
/
send-verification-email
Send Verification Email
curl --request POST \
--url https://api.replyke.com/api/v6/:projectId/api/v7/auth/send-verification-email \
--header 'Content-Type: application/json' \
--data '
{
"mode": {},
"tokenFormat": {},
"tokenLength": 123,
"redirectUrl": "<string>"
}
'import requests
url = "https://api.replyke.com/api/v6/:projectId/api/v7/auth/send-verification-email"
payload = {
"mode": {},
"tokenFormat": {},
"tokenLength": 123,
"redirectUrl": "<string>"
}
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({mode: {}, tokenFormat: {}, tokenLength: 123, redirectUrl: '<string>'})
};
fetch('https://api.replyke.com/api/v6/:projectId/api/v7/auth/send-verification-email', 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.replyke.com/api/v6/:projectId/api/v7/auth/send-verification-email",
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([
'mode' => [
],
'tokenFormat' => [
],
'tokenLength' => 123,
'redirectUrl' => '<string>'
]),
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.replyke.com/api/v6/:projectId/api/v7/auth/send-verification-email"
payload := strings.NewReader("{\n \"mode\": {},\n \"tokenFormat\": {},\n \"tokenLength\": 123,\n \"redirectUrl\": \"<string>\"\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.replyke.com/api/v6/:projectId/api/v7/auth/send-verification-email")
.header("Content-Type", "application/json")
.body("{\n \"mode\": {},\n \"tokenFormat\": {},\n \"tokenLength\": 123,\n \"redirectUrl\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.replyke.com/api/v6/:projectId/api/v7/auth/send-verification-email")
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 \"mode\": {},\n \"tokenFormat\": {},\n \"tokenLength\": 123,\n \"redirectUrl\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"success": true
}Sends a verification email to the authenticated user’s registered email address. The token or link expires after 5 minutes.
Requires a valid user access token. Returns immediately with
{ success: true } if the user is already verified.
Body Parameters
All parameters are optional."code" | "link"
default:"\"code\""
Delivery mode.
"code"— The email contains a short token the user types into your app. Call the Verify Email endpoint to complete verification."link"— The email contains a clickable button. When clicked, the server verifies the token and redirects the user (or renders a hosted confirmation page).
"hex" | "numeric" | "alpha" | "alphanumeric"
default:"\"hex\""
Character set used to generate the token.
| Value | Example | Notes |
|---|---|---|
"hex" | a3f9c2... | 64-character hex string. tokenLength is ignored. |
"numeric" | 048291 | Digits only (0–9). Good for OTP-style inputs. |
"alpha" | GXRTPK | Uppercase letters only (A–Z). |
"alphanumeric" | B4KR9Z | Uppercase letters and digits. |
number
default:"6"
Length of the generated token. Must be an integer between
4 and 12. Ignored when tokenFormat is "hex".string
A URL to redirect the user to after they click the verification link. Only used when
mode is "link".On success the query parameter ?verified=true is appended. On failure, ?verified=false&error=invalid-or-expired-token is appended instead.If omitted, the server renders a hosted success/error page.Response
boolean
true when the request is processed without a server error (including when the user is already verified).Error Codes
| Code | Status | Description |
|---|---|---|
auth/not-password-user | 400 | The authenticated user does not have an email/password account. |
Each call generates a new token. A previous unused token remains valid in
Redis until it either expires or the new one is consumed first.

