---
title: List Self-Audit Reports
description: "List recent self-audit daemon reports generated by Mudabbir's background security monitoring. Each report contains results from 12 automated checks with timestamps and findings."
api: GET /api/self-audit/reports
baseUrl: http://localhost:8888
layout: '@/layouts/APIEndpointLayout.astro'
auth: bearer
section: API Reference
ogType: article
keywords: ["audit reports", "self-audit", "security monitoring"]
tags: ["api", "security"]
---

## Overview

Returns a list of recent self-audit reports generated by the self-audit daemon. Reports are stored as JSON files and sorted by date (most recent first).

## Response

Returns an array of report summary objects:

<ResponseField name="date" type="string">Report date in `YYYY-MM-DD` format</ResponseField>
<ResponseField name="total" type="integer">Total number of checks in the report</ResponseField>
<ResponseField name="passed" type="integer">Number of passing checks</ResponseField>
<ResponseField name="issues" type="integer">Number of issues found</ResponseField>

<RequestExample>
<Tabs items={["cURL", "JavaScript", "Python"]}>
  <Tab title="cURL">
    ```bash
    curl -X GET "http://localhost:8888/api/self-audit/reports" \
      -H "Authorization: Bearer <token>"
    ```
  </Tab>
  <Tab title="JavaScript">
    ```javascript
    const response = await fetch("http://localhost:8888/api/self-audit/reports", {
      headers: { "Authorization": "Bearer <token>" }
    });
    const data = await response.json();
    console.log(data);
    ```
  </Tab>
  <Tab title="Python">
    ```python
    import requests

    response = requests.get(
        "http://localhost:8888/api/self-audit/reports",
        headers={"Authorization": "Bearer <token>"}
    )
    print(response.json())
    ```
  </Tab>
</Tabs>
</RequestExample>

<ResponseExample>
<Tabs items={["200"]}>
  <Tab title="200">
    ```json
    [
      {
        "date": "2024-01-15",
        "total": 12,
        "passed": 10,
        "issues": 2
      },
      {
        "date": "2024-01-14",
        "total": 12,
        "passed": 12,
        "issues": 0
      }
    ]
    ```
  </Tab>
</Tabs>
</ResponseExample>
