AML Watchlist
Retrieve AML Watchlist
Retrieves all entities from a custom AML watchlist for the authenticated business account.
GET
/
v2
/
api
/
verifications
/
watchlist
Retrieve AML Watchlist
curl --request GET \
--url https://api.youverify.co/v2/api/verifications/watchlist \
--header 'token: <api-key>'import requests
url = "https://api.youverify.co/v2/api/verifications/watchlist"
headers = {"token": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {token: '<api-key>'}};
fetch('https://api.youverify.co/v2/api/verifications/watchlist', 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.youverify.co/v2/api/verifications/watchlist",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"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://api.youverify.co/v2/api/verifications/watchlist"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("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.get("https://api.youverify.co/v2/api/verifications/watchlist")
.header("token", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.youverify.co/v2/api/verifications/watchlist")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["token"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"success": true,
"statusCode": 200,
"message": "Retrieved watchlist entities successfully!",
"data": {
"docs": [
{
"entity": "lamba fc",
"entityType": "business",
"reasonAdded": "Fraud",
"riskRating": "High Risk",
"dateAdded": "2023-11-22T00:00:00.000Z",
"businessId": "628b38f03ae28a14f52d4bf7",
"parentId": null,
"createdAt": "2023-11-23T06:42:23.814Z",
"lastModifiedAt": "2023-11-23T06:42:23.814Z",
"id": "655ef44f194cc11535887d79"
},
{
"entity": "Hush puppi",
"entityType": "individual",
"reasonAdded": "Fraud",
"riskRating": "High Risk",
"dateAdded": "2023-11-22T00:00:00.000Z",
"businessId": "628b38f03ae28a14f52d4bf7",
"parentId": null,
"createdAt": "2023-11-23T06:41:32.430Z",
"lastModifiedAt": "2023-11-23T06:41:32.430Z",
"id": "655ef41c194cc19765887d76"
}
],
"pagination": {
"totalDocs": 9,
"perPage": 20,
"totalPages": 1,
"currentPage": 1,
"serialNo": 1,
"hasPrevPage": false,
"hasNextPage": false,
"prevPage": null,
"nextPage": null
}
},
"links": []
}{
"success": false,
"statusCode": 401,
"message": "Permission denied",
"name": "UnauthorizedError",
"data": {}
}{
"success": false,
"statusCode": 404,
"message": "You have attempted to get a resource that does not exist.",
"name": "ResourceNotFoundError",
"data": {}
}{
"success": false,
"statusCode": 429,
"message": "Too many requests",
"name": "RateLimitError",
"data": {}
}{
"success": false,
"statusCode": 500,
"message": "Internal Server Error",
"name": "Error",
"data": {}
}⌘I
Retrieve AML Watchlist
curl --request GET \
--url https://api.youverify.co/v2/api/verifications/watchlist \
--header 'token: <api-key>'import requests
url = "https://api.youverify.co/v2/api/verifications/watchlist"
headers = {"token": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {token: '<api-key>'}};
fetch('https://api.youverify.co/v2/api/verifications/watchlist', 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.youverify.co/v2/api/verifications/watchlist",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"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://api.youverify.co/v2/api/verifications/watchlist"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("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.get("https://api.youverify.co/v2/api/verifications/watchlist")
.header("token", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.youverify.co/v2/api/verifications/watchlist")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["token"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"success": true,
"statusCode": 200,
"message": "Retrieved watchlist entities successfully!",
"data": {
"docs": [
{
"entity": "lamba fc",
"entityType": "business",
"reasonAdded": "Fraud",
"riskRating": "High Risk",
"dateAdded": "2023-11-22T00:00:00.000Z",
"businessId": "628b38f03ae28a14f52d4bf7",
"parentId": null,
"createdAt": "2023-11-23T06:42:23.814Z",
"lastModifiedAt": "2023-11-23T06:42:23.814Z",
"id": "655ef44f194cc11535887d79"
},
{
"entity": "Hush puppi",
"entityType": "individual",
"reasonAdded": "Fraud",
"riskRating": "High Risk",
"dateAdded": "2023-11-22T00:00:00.000Z",
"businessId": "628b38f03ae28a14f52d4bf7",
"parentId": null,
"createdAt": "2023-11-23T06:41:32.430Z",
"lastModifiedAt": "2023-11-23T06:41:32.430Z",
"id": "655ef41c194cc19765887d76"
}
],
"pagination": {
"totalDocs": 9,
"perPage": 20,
"totalPages": 1,
"currentPage": 1,
"serialNo": 1,
"hasPrevPage": false,
"hasNextPage": false,
"prevPage": null,
"nextPage": null
}
},
"links": []
}{
"success": false,
"statusCode": 401,
"message": "Permission denied",
"name": "UnauthorizedError",
"data": {}
}{
"success": false,
"statusCode": 404,
"message": "You have attempted to get a resource that does not exist.",
"name": "ResourceNotFoundError",
"data": {}
}{
"success": false,
"statusCode": 429,
"message": "Too many requests",
"name": "RateLimitError",
"data": {}
}{
"success": false,
"statusCode": 500,
"message": "Internal Server Error",
"name": "Error",
"data": {}
}