User
Update User
cURL
curl --request PUT \
--url https://api.sandbox.verisoul.com/v1/user/{user_id} \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"id": "<string>",
"email": "<string>",
"phone": "<string>",
"first_name": "<string>",
"last_name": "<string>",
"username": "<string>",
"expected_countries": [
"<string>"
],
"metadata": {}
}
'import requests
url = "https://api.sandbox.verisoul.com/v1/user/{user_id}"
payload = {
"id": "<string>",
"email": "<string>",
"phone": "<string>",
"first_name": "<string>",
"last_name": "<string>",
"username": "<string>",
"expected_countries": ["<string>"],
"metadata": {}
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
id: '<string>',
email: '<string>',
phone: '<string>',
first_name: '<string>',
last_name: '<string>',
username: '<string>',
expected_countries: ['<string>'],
metadata: {}
})
};
fetch('https://api.sandbox.verisoul.com/v1/user/{user_id}', 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.sandbox.verisoul.com/v1/user/{user_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'id' => '<string>',
'email' => '<string>',
'phone' => '<string>',
'first_name' => '<string>',
'last_name' => '<string>',
'username' => '<string>',
'expected_countries' => [
'<string>'
],
'metadata' => [
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.sandbox.verisoul.com/v1/user/{user_id}"
payload := strings.NewReader("{\n \"id\": \"<string>\",\n \"email\": \"<string>\",\n \"phone\": \"<string>\",\n \"first_name\": \"<string>\",\n \"last_name\": \"<string>\",\n \"username\": \"<string>\",\n \"expected_countries\": [\n \"<string>\"\n ],\n \"metadata\": {}\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("x-api-key", "<api-key>")
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.put("https://api.sandbox.verisoul.com/v1/user/{user_id}")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"id\": \"<string>\",\n \"email\": \"<string>\",\n \"phone\": \"<string>\",\n \"first_name\": \"<string>\",\n \"last_name\": \"<string>\",\n \"username\": \"<string>\",\n \"expected_countries\": [\n \"<string>\"\n ],\n \"metadata\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sandbox.verisoul.com/v1/user/{user_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"id\": \"<string>\",\n \"email\": \"<string>\",\n \"phone\": \"<string>\",\n \"first_name\": \"<string>\",\n \"last_name\": \"<string>\",\n \"username\": \"<string>\",\n \"expected_countries\": [\n \"<string>\"\n ],\n \"metadata\": {}\n}"
response = http.request(request)
puts response.read_body{
"metadata": {
"timestamp": "2026-11-11T15:42:08.311Z",
"request_id": "6486af8d-0588-4a29-a89e-04e5669220d9",
"project_id": "be121fa6-0da6-4d65-bb75-6fd56c7dfa53"
},
"decisions": {
"user_decision": "Suspicious",
"user_score": 0.71,
"raw_user_score": 0.71,
"fraud_score": 0.78
},
"user": {
"id": "usr_8f2k3m9q",
"phone": "+14155550142",
"first_name": "Jordan",
"last_name": "Ellis",
"username": "jordanellis",
"expected_countries": [
"US"
],
"group": "survey-1234",
"metadata": {
"plan": "free",
"signup_source": "referral"
},
"first_seen": "2026-09-14T18:03:27.442Z",
"last_seen": "2026-11-11T15:42:08.311Z",
"num_sessions": 3,
"rules": [
"login-outside-expected-countries"
],
"lists": [
"manual_review"
],
"email": {
"scores": {
"email_risk": 0.38,
"domain": -0.42
},
"signals": {
"risk": [
"email_alias",
"email_high_number_count",
"email_too_many_breaches"
],
"trust": [
"email_age_greater_than_5_years",
"email_known_online_history",
"domain_whois_greater_than_5_years"
]
},
"data": {
"email": "jordan.ellis.2291+deals@gmail.com",
"username": "jordan.ellis.2291+deals",
"normalized": "jordanellis2291@gmail.com",
"domain": {
"fqdn": "gmail.com",
"apex": "gmail.com",
"type": "personal",
"users_on_domain": 18234
}
}
},
"relationships": {
"scores": {
"multiple_accounts": 0.45
},
"signals": {
"risk": [],
"trust": []
},
"data": {
"num_linked_accounts": 2,
"linked_accounts": [
{
"user_id": "usr_3n7v1x5c",
"link_score": 0.94,
"match_types": [
"device",
"browser",
"network"
],
"email": "j.ellis.2291@outlook.com",
"phone": null,
"first_name": "Jordan",
"last_name": "Ellis",
"username": "jellis2291",
"expected_countries": [
"US"
],
"first_seen": "2026-10-02T21:14:55.108Z",
"last_seen": "2026-11-10T03:27:41.562Z",
"lists": [],
"metadata": {
"plan": "free"
}
},
{
"user_id": "usr_6q2w8e4r",
"link_score": 0.58,
"match_types": [
"email"
],
"email": "jordanellis2291@gmail.com",
"phone": "+14155550187",
"first_name": "J",
"last_name": "Ellis",
"username": null,
"expected_countries": [
"US"
],
"first_seen": "2026-08-21T16:40:09.733Z",
"last_seen": "2026-11-08T19:02:13.290Z",
"lists": [
"manual_review"
],
"metadata": {}
}
]
}
},
"volatility": {
"scores": {
"volatility_risk": 0.35
},
"signals": {
"risk": [
"multiple_countries_7d"
],
"trust": []
},
"data": {
"unique_devices": {
"1d": 1,
"7d": 2
},
"unique_networks": {
"1d": 2,
"7d": 3
},
"countries_seen": [
"US",
"MX"
]
}
},
"user_avg_scores": {
"network": {
"network_risk": 0.52,
"proxy": 0.61,
"vpn": 0.04,
"datacenter": 0.01,
"ip_reputation": 0.27
},
"device": {
"device_risk": 0.69,
"tampering": 0.55,
"virtualization": 0.41,
"automation": 0.14
},
"location": {
"location_spoofing": 0.48,
"impossible_travel": 0.09
},
"behavior": {
"behavior_risk": 0.51,
"automation": 0.49
}
}
}
}{
"metadata": {
"timestamp": "2026-11-04T12:00:00.000Z",
"request_id": "3f2b8c1d-6e4a-4b7f-9c2d-8a1e5f6b7c90",
"project_id": "00000000-0000-4000-8000-000000000001"
},
"error": {
"code": "invalid_request",
"message": "Request validation failed",
"details": [
{
"field": "user.id",
"message": "user.id should not be empty"
}
]
}
}{
"metadata": {
"timestamp": "2026-11-04T12:00:00.000Z",
"request_id": "3f2b8c1d-6e4a-4b7f-9c2d-8a1e5f6b7c90",
"project_id": null
},
"error": {
"code": "api_key_not_found",
"message": "API Key not found",
"details": []
}
}{
"metadata": {
"timestamp": "2026-11-04T12:00:00.000Z",
"request_id": "3f2b8c1d-6e4a-4b7f-9c2d-8a1e5f6b7c90",
"project_id": "00000000-0000-4000-8000-000000000001"
},
"error": {
"code": "user_not_found",
"message": "User not found",
"details": []
}
}{
"metadata": {
"timestamp": "2026-11-04T12:00:00.000Z",
"request_id": "3f2b8c1d-6e4a-4b7f-9c2d-8a1e5f6b7c90",
"project_id": "00000000-0000-4000-8000-000000000001"
},
"error": {
"code": "rate_limit_exceeded",
"message": "Current rate limit is 900 requests per minute. Please try again later.",
"details": []
}
}Body
application/json
User information to update
⌘I
cURL
curl --request PUT \
--url https://api.sandbox.verisoul.com/v1/user/{user_id} \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"id": "<string>",
"email": "<string>",
"phone": "<string>",
"first_name": "<string>",
"last_name": "<string>",
"username": "<string>",
"expected_countries": [
"<string>"
],
"metadata": {}
}
'import requests
url = "https://api.sandbox.verisoul.com/v1/user/{user_id}"
payload = {
"id": "<string>",
"email": "<string>",
"phone": "<string>",
"first_name": "<string>",
"last_name": "<string>",
"username": "<string>",
"expected_countries": ["<string>"],
"metadata": {}
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
id: '<string>',
email: '<string>',
phone: '<string>',
first_name: '<string>',
last_name: '<string>',
username: '<string>',
expected_countries: ['<string>'],
metadata: {}
})
};
fetch('https://api.sandbox.verisoul.com/v1/user/{user_id}', 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.sandbox.verisoul.com/v1/user/{user_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'id' => '<string>',
'email' => '<string>',
'phone' => '<string>',
'first_name' => '<string>',
'last_name' => '<string>',
'username' => '<string>',
'expected_countries' => [
'<string>'
],
'metadata' => [
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.sandbox.verisoul.com/v1/user/{user_id}"
payload := strings.NewReader("{\n \"id\": \"<string>\",\n \"email\": \"<string>\",\n \"phone\": \"<string>\",\n \"first_name\": \"<string>\",\n \"last_name\": \"<string>\",\n \"username\": \"<string>\",\n \"expected_countries\": [\n \"<string>\"\n ],\n \"metadata\": {}\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("x-api-key", "<api-key>")
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.put("https://api.sandbox.verisoul.com/v1/user/{user_id}")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"id\": \"<string>\",\n \"email\": \"<string>\",\n \"phone\": \"<string>\",\n \"first_name\": \"<string>\",\n \"last_name\": \"<string>\",\n \"username\": \"<string>\",\n \"expected_countries\": [\n \"<string>\"\n ],\n \"metadata\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sandbox.verisoul.com/v1/user/{user_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"id\": \"<string>\",\n \"email\": \"<string>\",\n \"phone\": \"<string>\",\n \"first_name\": \"<string>\",\n \"last_name\": \"<string>\",\n \"username\": \"<string>\",\n \"expected_countries\": [\n \"<string>\"\n ],\n \"metadata\": {}\n}"
response = http.request(request)
puts response.read_body{
"metadata": {
"timestamp": "2026-11-11T15:42:08.311Z",
"request_id": "6486af8d-0588-4a29-a89e-04e5669220d9",
"project_id": "be121fa6-0da6-4d65-bb75-6fd56c7dfa53"
},
"decisions": {
"user_decision": "Suspicious",
"user_score": 0.71,
"raw_user_score": 0.71,
"fraud_score": 0.78
},
"user": {
"id": "usr_8f2k3m9q",
"phone": "+14155550142",
"first_name": "Jordan",
"last_name": "Ellis",
"username": "jordanellis",
"expected_countries": [
"US"
],
"group": "survey-1234",
"metadata": {
"plan": "free",
"signup_source": "referral"
},
"first_seen": "2026-09-14T18:03:27.442Z",
"last_seen": "2026-11-11T15:42:08.311Z",
"num_sessions": 3,
"rules": [
"login-outside-expected-countries"
],
"lists": [
"manual_review"
],
"email": {
"scores": {
"email_risk": 0.38,
"domain": -0.42
},
"signals": {
"risk": [
"email_alias",
"email_high_number_count",
"email_too_many_breaches"
],
"trust": [
"email_age_greater_than_5_years",
"email_known_online_history",
"domain_whois_greater_than_5_years"
]
},
"data": {
"email": "jordan.ellis.2291+deals@gmail.com",
"username": "jordan.ellis.2291+deals",
"normalized": "jordanellis2291@gmail.com",
"domain": {
"fqdn": "gmail.com",
"apex": "gmail.com",
"type": "personal",
"users_on_domain": 18234
}
}
},
"relationships": {
"scores": {
"multiple_accounts": 0.45
},
"signals": {
"risk": [],
"trust": []
},
"data": {
"num_linked_accounts": 2,
"linked_accounts": [
{
"user_id": "usr_3n7v1x5c",
"link_score": 0.94,
"match_types": [
"device",
"browser",
"network"
],
"email": "j.ellis.2291@outlook.com",
"phone": null,
"first_name": "Jordan",
"last_name": "Ellis",
"username": "jellis2291",
"expected_countries": [
"US"
],
"first_seen": "2026-10-02T21:14:55.108Z",
"last_seen": "2026-11-10T03:27:41.562Z",
"lists": [],
"metadata": {
"plan": "free"
}
},
{
"user_id": "usr_6q2w8e4r",
"link_score": 0.58,
"match_types": [
"email"
],
"email": "jordanellis2291@gmail.com",
"phone": "+14155550187",
"first_name": "J",
"last_name": "Ellis",
"username": null,
"expected_countries": [
"US"
],
"first_seen": "2026-08-21T16:40:09.733Z",
"last_seen": "2026-11-08T19:02:13.290Z",
"lists": [
"manual_review"
],
"metadata": {}
}
]
}
},
"volatility": {
"scores": {
"volatility_risk": 0.35
},
"signals": {
"risk": [
"multiple_countries_7d"
],
"trust": []
},
"data": {
"unique_devices": {
"1d": 1,
"7d": 2
},
"unique_networks": {
"1d": 2,
"7d": 3
},
"countries_seen": [
"US",
"MX"
]
}
},
"user_avg_scores": {
"network": {
"network_risk": 0.52,
"proxy": 0.61,
"vpn": 0.04,
"datacenter": 0.01,
"ip_reputation": 0.27
},
"device": {
"device_risk": 0.69,
"tampering": 0.55,
"virtualization": 0.41,
"automation": 0.14
},
"location": {
"location_spoofing": 0.48,
"impossible_travel": 0.09
},
"behavior": {
"behavior_risk": 0.51,
"automation": 0.49
}
}
}
}{
"metadata": {
"timestamp": "2026-11-04T12:00:00.000Z",
"request_id": "3f2b8c1d-6e4a-4b7f-9c2d-8a1e5f6b7c90",
"project_id": "00000000-0000-4000-8000-000000000001"
},
"error": {
"code": "invalid_request",
"message": "Request validation failed",
"details": [
{
"field": "user.id",
"message": "user.id should not be empty"
}
]
}
}{
"metadata": {
"timestamp": "2026-11-04T12:00:00.000Z",
"request_id": "3f2b8c1d-6e4a-4b7f-9c2d-8a1e5f6b7c90",
"project_id": null
},
"error": {
"code": "api_key_not_found",
"message": "API Key not found",
"details": []
}
}{
"metadata": {
"timestamp": "2026-11-04T12:00:00.000Z",
"request_id": "3f2b8c1d-6e4a-4b7f-9c2d-8a1e5f6b7c90",
"project_id": "00000000-0000-4000-8000-000000000001"
},
"error": {
"code": "user_not_found",
"message": "User not found",
"details": []
}
}{
"metadata": {
"timestamp": "2026-11-04T12:00:00.000Z",
"request_id": "3f2b8c1d-6e4a-4b7f-9c2d-8a1e5f6b7c90",
"project_id": "00000000-0000-4000-8000-000000000001"
},
"error": {
"code": "rate_limit_exceeded",
"message": "Current rate limit is 900 requests per minute. Please try again later.",
"details": []
}
}