---
updatedAt: 2026-08-03T12:32:45.000Z
agentTools:
  projectIndex: https://developer.scantopay.io/llms.txt
---

# /diagnostic/list-reports

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "Scan to Pay API",
    "version": "V0.1"
  },
  "servers": [
    {
      "url": "https://ragstest.oltio.co.za/pluto/",
      "description": "QA/Test Service"
    },
    {
      "url": "https://rags.oltio.co.za/rags/",
      "description": "Production Service"
    }
  ],
  "security": [
    {
      "basicAuth": []
    }
  ],
  "paths": {
    "/diagnostic/list-reports": {
      "post": {
        "tags": [
          "diagnostic-monitor-controller"
        ],
        "operationId": "listFiles",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DiagnosticReportFileRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/DiagnosticReportFileListResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request"
          },
          "403": {
            "description": "Forbidden"
          },
          "500": {
            "description": "Internal Server Error"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "DiagnosticReportFileRequest": {
        "type": "object",
        "properties": {
          "medium": {
            "type": "string",
            "enum": [
              "CONSOLE",
              "LOCAL_FILE",
              "AWS_S3"
            ]
          },
          "prefix": {
            "type": "string"
          },
          "s3BucketName": {
            "type": "string"
          },
          "outputDirectoryPath": {
            "type": "string"
          },
          "fileName": {
            "type": "string"
          }
        }
      },
      "DiagnosticReportFile": {
        "type": "object",
        "properties": {
          "fileName": {
            "type": "string"
          },
          "size": {
            "type": "string"
          },
          "lastModified": {
            "type": "string"
          }
        }
      },
      "DiagnosticReportFileListResponse": {
        "type": "object",
        "properties": {
          "files": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DiagnosticReportFile"
            }
          }
        }
      }
    },
    "securitySchemes": {
      "basicAuth": {
        "type": "http",
        "scheme": "basic"
      }
    }
  }
}
```