curl --request GET \
--url https://api.hq.zone/v1/admin/audit \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.hq.zone/v1/admin/audit"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.hq.zone/v1/admin/audit', 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.hq.zone/v1/admin/audit",
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://api.hq.zone/v1/admin/audit"
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://api.hq.zone/v1/admin/audit")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.hq.zone/v1/admin/audit")
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{
"events": [
{
"actor_kind": "<string>",
"entry_hash": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"kind": "<string>",
"occurred_at": "2023-11-07T05:31:56Z",
"outcome": "<string>",
"seq": 123,
"actor_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"agent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"agent_version": "<string>",
"args_redacted": "<unknown>",
"capability_scope": "<string>",
"conversation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"intent": "<string>",
"latency_ms": 123,
"on_behalf_of": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"prev_hash": "<string>",
"result_hash": "<string>",
"source": "<string>",
"target": "<string>"
}
],
"page": 123,
"page_size": 123,
"total": 123
}List audit log
Returns a paginated, recency-first list of audit-log events for the caller’s own workspace, newest first. Admin only. Supports optional filtering by event kind, outcome, actor kind, agent id, and conversation id, a free-text query matched against the event target and intent, a lookback window in days (default 90; 0 or negative means all time), and page/page_size paging (page_size defaults to 50 and is clamped to 1-200). Each event includes its sequence number, hash-chain fields, and redacted details, alongside the unpaginated total.
curl --request GET \
--url https://api.hq.zone/v1/admin/audit \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.hq.zone/v1/admin/audit"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.hq.zone/v1/admin/audit', 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.hq.zone/v1/admin/audit",
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://api.hq.zone/v1/admin/audit"
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://api.hq.zone/v1/admin/audit")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.hq.zone/v1/admin/audit")
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{
"events": [
{
"actor_kind": "<string>",
"entry_hash": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"kind": "<string>",
"occurred_at": "2023-11-07T05:31:56Z",
"outcome": "<string>",
"seq": 123,
"actor_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"agent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"agent_version": "<string>",
"args_redacted": "<unknown>",
"capability_scope": "<string>",
"conversation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"intent": "<string>",
"latency_ms": 123,
"on_behalf_of": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"prev_hash": "<string>",
"result_hash": "<string>",
"source": "<string>",
"target": "<string>"
}
],
"page": 123,
"page_size": 123,
"total": 123
}Authorizations
Personal Access Token. Send as Authorization: Bearer hq_pat_....
Query Parameters
1-based page. Defaults to 1.
Rows per page. Defaults to 50, clamped to [1, 200].
Lookback window in days for partition pruning. Defaults to 90.
0 (or negative) means "all time" (binds a 1970 floor).
Exact-match filters (all optional).
Free-text needle matched (ILIKE) against target and intent.