AML histories
curl --request GET \
--url https://api.onswitch.xyz/compliance/aml/history \
--header 'x-service-key: <api-key>'import requests
url = "https://api.onswitch.xyz/compliance/aml/history"
headers = {"x-service-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-service-key': '<api-key>'}};
fetch('https://api.onswitch.xyz/compliance/aml/history', 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.onswitch.xyz/compliance/aml/history",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-service-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"
"net/http"
"io"
)
func main() {
url := "https://api.onswitch.xyz/compliance/aml/history"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-service-key", "<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.onswitch.xyz/compliance/aml/history")
.header("x-service-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.onswitch.xyz/compliance/aml/history")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-service-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"success": true,
"message": "AML lookup history fetched successfully",
"timestamp": "2026-05-13T22:06:37.088Z",
"data": {
"data": [
{
"status": "REJECTED",
"reference": "18a51cca-ed07-4a74-b1b7-03cceab33e23",
"details": {
"subject": {
"type": "INDIVIDUAL",
"country": "NG",
"name": "tinubu bola",
"is_sandbox": false
},
"matches": [
{
"certainty": 92,
"name": "Bola Ahmed Tinubu",
"flags": [
"PEP"
],
"last_updated": "2024-10-11T12:50:30"
},
{
"certainty": 83,
"name": "Bola Ahmed Tinubu Gcfr",
"flags": [
"PEP"
],
"last_updated": "2026-04-26T13:01:02"
}
]
},
"created_at": "2026-05-13T21:44:33.170Z",
"updated_at": "2026-05-13T21:44:33.170Z"
}
],
"page": 1,
"limit": 10,
"total": 1,
"pages": 1
}
}{
"success": false,
"message": "amount must be greater than 0 for the selected corridor",
"timestamp": "2026-04-18T14:22:08.631Z",
"data": null
}AML histories
Returns paginated previous AML lookup history.
GET
/
compliance
/
aml
/
history
AML histories
curl --request GET \
--url https://api.onswitch.xyz/compliance/aml/history \
--header 'x-service-key: <api-key>'import requests
url = "https://api.onswitch.xyz/compliance/aml/history"
headers = {"x-service-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-service-key': '<api-key>'}};
fetch('https://api.onswitch.xyz/compliance/aml/history', 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.onswitch.xyz/compliance/aml/history",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-service-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"
"net/http"
"io"
)
func main() {
url := "https://api.onswitch.xyz/compliance/aml/history"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-service-key", "<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.onswitch.xyz/compliance/aml/history")
.header("x-service-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.onswitch.xyz/compliance/aml/history")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-service-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"success": true,
"message": "AML lookup history fetched successfully",
"timestamp": "2026-05-13T22:06:37.088Z",
"data": {
"data": [
{
"status": "REJECTED",
"reference": "18a51cca-ed07-4a74-b1b7-03cceab33e23",
"details": {
"subject": {
"type": "INDIVIDUAL",
"country": "NG",
"name": "tinubu bola",
"is_sandbox": false
},
"matches": [
{
"certainty": 92,
"name": "Bola Ahmed Tinubu",
"flags": [
"PEP"
],
"last_updated": "2024-10-11T12:50:30"
},
{
"certainty": 83,
"name": "Bola Ahmed Tinubu Gcfr",
"flags": [
"PEP"
],
"last_updated": "2026-04-26T13:01:02"
}
]
},
"created_at": "2026-05-13T21:44:33.170Z",
"updated_at": "2026-05-13T21:44:33.170Z"
}
],
"page": 1,
"limit": 10,
"total": 1,
"pages": 1
}
}{
"success": false,
"message": "amount must be greater than 0 for the selected corridor",
"timestamp": "2026-04-18T14:22:08.631Z",
"data": null
}Authorizations
Service key for API authentication
Query Parameters
Filter by status
Available options:
PENDING, REJECTED, APPROVED, REVIEW Filter by category
Available options:
INDIVIDUAL, BUSINESS, CRYPTO_WALLET Filter by reference
Maximum string length:
200Filter by start date e.g 2026-01-01
Filter by end date e.g 2026-01-01
Results page number. Default 1.
Required range:
x >= 1Results per page. Default 10, maximum 100.
Required range:
1 <= x <= 100Response
AML lookup history retrieved successfully
Hide child attributes
Hide child attributes
Hide child attributes
Hide child attributes
Available options:
KYC, KYB, AML Available options:
INDIVIDUAL, BUSINESS, CRYPTO_WALLET, IDENTITY Available options:
PENDING, REJECTED, APPROVED, REVIEW Hide child attributes
Hide child attributes
Hide child attributes
Hide child attributes
Available options:
INDIVIDUAL, BUSINESS, CRYPTO_WALLET ⌘I