Human verification for magic link
curl --request POST \
--url https://sandbox-api.kotanipay.io/api/v3/auth/human-verify \
--header 'Content-Type: application/json' \
--data '
{
"verificationToken": "encrypted_verification_token_here"
}
'import requests
url = "https://sandbox-api.kotanipay.io/api/v3/auth/human-verify"
payload = { "verificationToken": "encrypted_verification_token_here" }
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({verificationToken: 'encrypted_verification_token_here'})
};
fetch('https://sandbox-api.kotanipay.io/api/v3/auth/human-verify', 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://sandbox-api.kotanipay.io/api/v3/auth/human-verify",
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([
'verificationToken' => 'encrypted_verification_token_here'
]),
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://sandbox-api.kotanipay.io/api/v3/auth/human-verify"
payload := strings.NewReader("{\n \"verificationToken\": \"encrypted_verification_token_here\"\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://sandbox-api.kotanipay.io/api/v3/auth/human-verify")
.header("Content-Type", "application/json")
.body("{\n \"verificationToken\": \"encrypted_verification_token_here\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox-api.kotanipay.io/api/v3/auth/human-verify")
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 \"verificationToken\": \"encrypted_verification_token_here\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"message": "Human verification successful",
"data": {
"user_id": "5f9b2c7b9c9d6b0017b4e6b1",
"session_id": "5f9b2c7b9c9d6b0017b4e6b1",
"token_id": "5f9b2c7b9c9d6b0017b4e6b1",
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9",
"refresh_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9"
}
}{
"success": false,
"message": "Invalid verification token",
"data": {}
}{
"success": false,
"message": "Internal Server Error",
"data": {}
}Authentication & Setup
Human Verification
Complete human verification for potentially scanner-detected magic link requests. This step ensures the request is from a real user.
POST
/
api
/
v3
/
auth
/
human-verify
Human verification for magic link
curl --request POST \
--url https://sandbox-api.kotanipay.io/api/v3/auth/human-verify \
--header 'Content-Type: application/json' \
--data '
{
"verificationToken": "encrypted_verification_token_here"
}
'import requests
url = "https://sandbox-api.kotanipay.io/api/v3/auth/human-verify"
payload = { "verificationToken": "encrypted_verification_token_here" }
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({verificationToken: 'encrypted_verification_token_here'})
};
fetch('https://sandbox-api.kotanipay.io/api/v3/auth/human-verify', 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://sandbox-api.kotanipay.io/api/v3/auth/human-verify",
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([
'verificationToken' => 'encrypted_verification_token_here'
]),
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://sandbox-api.kotanipay.io/api/v3/auth/human-verify"
payload := strings.NewReader("{\n \"verificationToken\": \"encrypted_verification_token_here\"\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://sandbox-api.kotanipay.io/api/v3/auth/human-verify")
.header("Content-Type", "application/json")
.body("{\n \"verificationToken\": \"encrypted_verification_token_here\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox-api.kotanipay.io/api/v3/auth/human-verify")
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 \"verificationToken\": \"encrypted_verification_token_here\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"message": "Human verification successful",
"data": {
"user_id": "5f9b2c7b9c9d6b0017b4e6b1",
"session_id": "5f9b2c7b9c9d6b0017b4e6b1",
"token_id": "5f9b2c7b9c9d6b0017b4e6b1",
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9",
"refresh_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9"
}
}{
"success": false,
"message": "Invalid verification token",
"data": {}
}{
"success": false,
"message": "Internal Server Error",
"data": {}
}Complete human verification for magic link requests that were flagged as potentially suspicious to ensure account security.
⌘I