List Compliance Scans
curl --request GET \
--url https://api.enkryptai.com/compliance/list-scans \
--header 'apikey: <api-key>'import requests
url = "https://api.enkryptai.com/compliance/list-scans"
headers = {"apikey": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {apikey: '<api-key>'}};
fetch('https://api.enkryptai.com/compliance/list-scans', 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.enkryptai.com/compliance/list-scans",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"apikey: <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.enkryptai.com/compliance/list-scans"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("apikey", "<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.enkryptai.com/compliance/list-scans")
.header("apikey", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.enkryptai.com/compliance/list-scans")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["apikey"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"scans": [
{
"scan_id": "11111111-2222-3333-4444-555555555555",
"id": "00000000-1111-2222-3333-444444444444",
"project_name": "default",
"scan_name": "ChatGPT Enterprise",
"created_by": "00000000-1111-2222-3333-444444444444",
"updated_by": "00000000-1111-2222-3333-444444444444",
"provider": "openai",
"workspace_id": "00000000-0000-0000-0000-000000000000",
"event_types": [
"CONVERSATION_MESSAGE"
],
"guardrails_name": "My Guardrail",
"cursor_end_time": "2026-09-01T00:00:00Z",
"cursor_file_id": null,
"last_polled_at": "2026-09-23T10:00:00Z",
"list_interval_s": 60,
"pending_cap": 5000,
"status": "active",
"created_at": "2026-09-01T09:00:00Z",
"updated_at": "2026-09-01T09:00:00Z"
}
],
"pagination": {
"page": 1,
"per_page": 20,
"total_count": 1,
"total_pages": 1,
"has_next": false,
"has_previous": false
}
}{
"error": "Scan not found"
}{
"code": 403,
"error": "Forbidden",
"message": "Access Denied",
"request_id": "<string>",
"time": 123
}{
"error": "Scan not found"
}{
"error": "Scan not found"
}⚖️ Compliance API
List Compliance Scans
Lists every compliance scan in the project your API key belongs to, newest first, with page / per_page paging and an optional status filter.
No key is included, and no live scanner state is joined — use Get Compliance Scan for one scan’s lag_s.
status=needs_reconnect is the useful filter: it lists exactly the scans whose stored key the provider has rejected.
Requires the governance officer role on the project your API key belongs to. The organization owner is not exempt — an owner without the role gets 403 — and an individual (non-organization) account cannot hold the role at all.
GET
/
compliance
/
list-scans
List Compliance Scans
curl --request GET \
--url https://api.enkryptai.com/compliance/list-scans \
--header 'apikey: <api-key>'import requests
url = "https://api.enkryptai.com/compliance/list-scans"
headers = {"apikey": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {apikey: '<api-key>'}};
fetch('https://api.enkryptai.com/compliance/list-scans', 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.enkryptai.com/compliance/list-scans",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"apikey: <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.enkryptai.com/compliance/list-scans"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("apikey", "<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.enkryptai.com/compliance/list-scans")
.header("apikey", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.enkryptai.com/compliance/list-scans")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["apikey"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"scans": [
{
"scan_id": "11111111-2222-3333-4444-555555555555",
"id": "00000000-1111-2222-3333-444444444444",
"project_name": "default",
"scan_name": "ChatGPT Enterprise",
"created_by": "00000000-1111-2222-3333-444444444444",
"updated_by": "00000000-1111-2222-3333-444444444444",
"provider": "openai",
"workspace_id": "00000000-0000-0000-0000-000000000000",
"event_types": [
"CONVERSATION_MESSAGE"
],
"guardrails_name": "My Guardrail",
"cursor_end_time": "2026-09-01T00:00:00Z",
"cursor_file_id": null,
"last_polled_at": "2026-09-23T10:00:00Z",
"list_interval_s": 60,
"pending_cap": 5000,
"status": "active",
"created_at": "2026-09-01T09:00:00Z",
"updated_at": "2026-09-01T09:00:00Z"
}
],
"pagination": {
"page": 1,
"per_page": 20,
"total_count": 1,
"total_pages": 1,
"has_next": false,
"has_previous": false
}
}{
"error": "Scan not found"
}{
"code": 403,
"error": "Forbidden",
"message": "Access Denied",
"request_id": "<string>",
"time": 123
}{
"error": "Scan not found"
}{
"error": "Scan not found"
}Authorizations
Query Parameters
1-based page number.
Required range:
x >= 1Rows per page, 1–100.
Required range:
1 <= x <= 100Only return scans in this state. needs_reconnect is filterable even though it cannot be written by a caller.
Available options:
active, paused, disabled, needs_reconnect 
