GET /api/self-audit/reports/{date} Bearer

Get 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 required
string

Report date in YYYY-MM-DD format.

Response

date string
Report date
total integer
Total checks executed
passed integer
Checks passed
issues integer
Issues found
checks array

Detailed results for each of the 12 checks.

name string
Check identifier
passed boolean
Whether the check passed
message string
Description of findings
severity string
Issue severity (info, warning, critical)

Error Responses

StatusDescription
404No report found for the given date
Terminal window
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"
}
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