Get a customer's AML status
curl --request GET \
--url https://app.instantcompliance.ai/api/v1/customers/{id}/aml \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.instantcompliance.ai/api/v1/customers/{id}/aml"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.instantcompliance.ai/api/v1/customers/{id}/aml', 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://app.instantcompliance.ai/api/v1/customers/{id}/aml",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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://app.instantcompliance.ai/api/v1/customers/{id}/aml"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://app.instantcompliance.ai/api/v1/customers/{id}/aml")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.instantcompliance.ai/api/v1/customers/{id}/aml")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"status": "NOT_SCREENED",
"flags": {
"pep": true,
"sanctions": true,
"adverse_media": true,
"terrorism": true
},
"screened_at": "2023-11-07T05:31:56Z",
"last_reviewed_at": "2023-11-07T05:31:56Z"
}{
"error": {
"code": "unauthorized",
"message": "Invalid or revoked API key."
}
}{
"error": {
"code": "forbidden_scope",
"message": "This API key does not have the required scope. customers:write",
"details": {
"required_scope": "customers:write"
}
}
}{
"error": {
"code": "not_found",
"message": "Customer not found."
}
}{
"error": {
"code": "rate_limited",
"message": "Rate limit exceeded. Slow down and retry shortly.",
"details": {
"limit": 60,
"window_seconds": 60
}
}
}Customers
Get a customer's AML status
AML compliance sub-resource. Returns only the AML status and category
flags — useful for reporting-only integrations that hold the narrower
aml:read scope instead of customers:read.
GET
/
customers
/
{id}
/
aml
Get a customer's AML status
curl --request GET \
--url https://app.instantcompliance.ai/api/v1/customers/{id}/aml \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.instantcompliance.ai/api/v1/customers/{id}/aml"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.instantcompliance.ai/api/v1/customers/{id}/aml', 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://app.instantcompliance.ai/api/v1/customers/{id}/aml",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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://app.instantcompliance.ai/api/v1/customers/{id}/aml"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://app.instantcompliance.ai/api/v1/customers/{id}/aml")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.instantcompliance.ai/api/v1/customers/{id}/aml")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"status": "NOT_SCREENED",
"flags": {
"pep": true,
"sanctions": true,
"adverse_media": true,
"terrorism": true
},
"screened_at": "2023-11-07T05:31:56Z",
"last_reviewed_at": "2023-11-07T05:31:56Z"
}{
"error": {
"code": "unauthorized",
"message": "Invalid or revoked API key."
}
}{
"error": {
"code": "forbidden_scope",
"message": "This API key does not have the required scope. customers:write",
"details": {
"required_scope": "customers:write"
}
}
}{
"error": {
"code": "not_found",
"message": "Customer not found."
}
}{
"error": {
"code": "rate_limited",
"message": "Rate limit exceeded. Slow down and retry shortly.",
"details": {
"limit": 60,
"window_seconds": 60
}
}
}Returns only the AML compliance block from the customer record. Useful
for reporting integrations that hold the narrower
By
aml:read scope
instead of customers:read.
Identifier
The{id} path parameter accepts either form:
- Instant Compliance UUID — e.g.
550e8400-e29b-41d4-a716-446655440000 - Your own
external_id— e.g.crm-7741
Why a sub-resource?
So you can issue a reporting-only key with the minimal scopeaml:read. Such a key cannot enumerate customer identity — it can
only fetch AML status for ids you already know.
Status semantics
See Customer lifecycle → AML status.Examples
By UUID:curl https://app.instantcompliance.ai/api/v1/customers/550e8400-e29b-41d4-a716-446655440000/aml \
-H "Authorization: Bearer ic_live_..."
external_id:
curl https://app.instantcompliance.ai/api/v1/customers/crm-7741/aml \
-H "Authorization: Bearer ic_live_..."
{
"status": "CLEAR",
"screened_at": "2026-06-23T01:12:00Z",
"last_reviewed_at": null,
"flags": {
"pep": false,
"sanctions": false,
"adverse_media": false,
"terrorism": false
}
}
Authorizations
Bearer API key issued from Settings → Developers in your
Instant Compliance organisation. Format: ic_live_….
Path Parameters
Customer identifier. Accepts either Instant Compliance's UUID
(550e8400-…) or your own external_id — the format is
detected automatically.

