Login OTP
Retry standalone OTP
Retry sending the OTP message for standalone/step-up verification.
Note: When a retry is blocked by fraud/antispam rules, the server returns 204 No Content rather than a 4xx error, so callers cannot distinguish a blocked attempt from a successful re-dispatch.
POST
/
v1
/
session
/
otp
/
retry
Retry standalone OTP
curl --request POST \
--url https://{appId}.session.prelude.dev/v1/session/otp/retry \
--header 'X-Verification-Token: <api-key>'import requests
url = "https://{appId}.session.prelude.dev/v1/session/otp/retry"
headers = {"X-Verification-Token": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {'X-Verification-Token': '<api-key>'}};
fetch('https://{appId}.session.prelude.dev/v1/session/otp/retry', 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://{appId}.session.prelude.dev/v1/session/otp/retry",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"X-Verification-Token: <api-key>"
],
]);
$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://{appId}.session.prelude.dev/v1/session/otp/retry"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("X-Verification-Token", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://{appId}.session.prelude.dev/v1/session/otp/retry")
.header("X-Verification-Token", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://{appId}.session.prelude.dev/v1/session/otp/retry")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Verification-Token"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"code": "unauthorized",
"type": "unauthorized"
}{
"code": "insufficient_balance",
"type": "bad_request"
}{
"code": "internal",
"type": "internal"
}Authorizations
verificationTokenAuthverificationCookieAuth
Verification token returned in the X-Verification-Token response
header of POST /v1/session/otp. Replay it on /otp/check and
/otp/retry to identify the verification context.
The legacy verificationCookieAuth cookie is still accepted as a
fallback for SDKs that don't yet read the header.
Response
No Content
⌘I
Retry standalone OTP
curl --request POST \
--url https://{appId}.session.prelude.dev/v1/session/otp/retry \
--header 'X-Verification-Token: <api-key>'import requests
url = "https://{appId}.session.prelude.dev/v1/session/otp/retry"
headers = {"X-Verification-Token": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {'X-Verification-Token': '<api-key>'}};
fetch('https://{appId}.session.prelude.dev/v1/session/otp/retry', 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://{appId}.session.prelude.dev/v1/session/otp/retry",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"X-Verification-Token: <api-key>"
],
]);
$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://{appId}.session.prelude.dev/v1/session/otp/retry"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("X-Verification-Token", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://{appId}.session.prelude.dev/v1/session/otp/retry")
.header("X-Verification-Token", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://{appId}.session.prelude.dev/v1/session/otp/retry")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Verification-Token"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"code": "unauthorized",
"type": "unauthorized"
}{
"code": "insufficient_balance",
"type": "bad_request"
}{
"code": "internal",
"type": "internal"
}