GET
/api/self-audit/reports/{date} BearerGet Self-Audit Report
Retrieve a specific self-audit daemon report by date. Contains detailed results from 12 automated security and operational checks including pass/fail status and remediation suggestions.
Overview
Returns the full self-audit report for a specific date. The report contains 12 check results covering configuration, security, and system health.
Parameters
Path Parameters
date requiredReport date in YYYY-MM-DD format.
Response
date stringReport date
total integerTotal checks executed
passed integerChecks passed
issues integerIssues found
checks arrayDetailed results for each of the 12 checks.
name stringCheck identifier
passed booleanWhether the check passed
message stringDescription of findings
severity stringIssue severity (
info, warning, critical)Error Responses
| Status | Description |
|---|---|
| 404 | No report found for the given date |
curl -X GET "http://localhost:8000/api/self-audit/reports/2024-01-15" \ -H "Authorization: Bearer <token>"const response = await fetch("http://localhost:8000/api/self-audit/reports/2024-01-15", { headers: { "Authorization": "Bearer <token>" }});const data = await response.json();console.log(data);import requests
response = requests.get( "http://localhost:8000/api/self-audit/reports/2024-01-15", headers={"Authorization": "Bearer <token>"})print(response.json()){ "date": "2024-01-15", "total": 12, "passed": 10, "issues": 2, "checks": [ {"name": "config_permissions", "passed": true, "message": "OK", "severity": "info"}, {"name": "audit_log_integrity", "passed": true, "message": "OK", "severity": "info"}, {"name": "memory_store_health", "passed": false, "message": "Qdrant unreachable", "severity": "warning"} ]}{ "detail": "No report found for the given date"}Was this page helpful?
Request
curl -X GET "http://localhost:8000/api/self-audit/reports/{date}" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer <token>"const response = await fetch("http://localhost:8000/api/self-audit/reports/{date}", {
method: "GET",
headers: {
"Content-Type": "application/json",
"Authorization": "Bearer <token>"
},
});
const data = await response.json();
console.log(data);import requests
response = requests.get(
"http://localhost:8000/api/self-audit/reports/{date}",
headers={'Content-Type':'application/json','Authorization':'Bearer <token>'},
)
print(response.json())package main
import (
"fmt"
"net/http"
"io"
)
func main() {
req, _ := http.NewRequest("GET", "http://localhost:8000/api/self-audit/reports/{date}", nil)
req.Header.Set("Content-Type", "application/json")
req.Header.Set("Authorization", "Bearer <token>")
client := &http.Client{}
resp, _ := client.Do(req)
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}Response
Send a request to see the response
Authorization
Headers
Response