---
updatedAt: 2025-11-11T22:56:15.000Z
agentTools:
  projectIndex: https://pegasus.digitalcomtech.com/llms.txt
---

# Get reports

Get a list of reports

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "Pegasus Cloud IoT API",
    "description": "Pegasus IoT Cloud API reference documentation. [Github Repo](https://github.com/dctdevelop/pegasus) / [Release notes](https://github.com/dctdevelop/pegasus/tree/master/releases)",
    "contact": {
      "email": "developer@digitalcomtech.com"
    },
    "license": {
      "name": "Apache 2.0",
      "url": "http://www.apache.org/licenses/LICENSE-2.0.html"
    },
    "version": "1.0.12"
  },
  "servers": [
    {
      "url": "https://api.pegasusgateway.com",
      "description": "Production server"
    },
    {
      "url": "https://auth.pegasusgateway.com",
      "description": "Authentication server"
    }
  ],
  "tags": [
    {
      "name": "Reports"
    }
  ],
  "paths": {
    "/job_manager": {
      "get": {
        "tags": [
          "Reports"
        ],
        "summary": "Get reports",
        "description": "Get a list of reports",
        "operationId": "getReports",
        "parameters": [
          {
            "name": "from",
            "in": "query",
            "description": "Start date YYYY-MM-DD[Thh:mm:ss]",
            "required": true,
            "style": "form",
            "explode": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "to",
            "in": "query",
            "description": "End date YYYY-MM-DD[Thh:mm:ss]",
            "required": false,
            "style": "form",
            "explode": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "tz",
            "in": "query",
            "description": "Timezone",
            "required": false,
            "style": "form",
            "explode": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/responseJobs200"
                }
              }
            }
          }
        },
        "security": [
          {
            "apikeyAuth": []
          }
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "responseJobs200": {
        "type": "object",
        "properties": {
          "control": {
            "type": "string",
            "description": "Status of job (controlled by PUT)",
            "enum": [
              "run",
              "pause",
              "abort",
              "reboot",
              "hold",
              "resume",
              "stop"
            ]
          },
          "stdout": {
            "type": "string",
            "description": "Internal use"
          },
          "app": {
            "type": "string",
            "description": "App that requested the job"
          },
          "err_info": {
            "type": "string",
            "description": "Traceback of a job error"
          },
          "id": {
            "type": "number",
            "description": "Job id"
          },
          "user_id": {
            "type": "number",
            "description": "User id that created the job"
          },
          "state": {
            "type": "string",
            "description": "State of job (controlled by server)",
            "enum": [
              "running",
              "hold",
              "done",
              "stopped",
              "error"
            ]
          },
          "params": {
            "type": "object",
            "description": "Parameters to run the job"
          },
          "done_at": {
            "type": "number",
            "description": "Epoch of when job finished"
          },
          "progress": {
            "type": "object",
            "description": "Progress of a job"
          },
          "type": {
            "type": "string",
            "description": "API used for the job (counters, rawdata, etc)"
          },
          "qhash": {
            "type": "number",
            "description": "Internal use"
          },
          "data": {
            "type": "object",
            "description": "Internal use"
          },
          "src": {
            "type": "string",
            "description": "Source of data for the job"
          },
          "transaction": {
            "type": "number",
            "description": "Transaction ID"
          },
          "persist_secs": {
            "type": "number",
            "description": "Duration of job before auto deletion"
          },
          "jobman2": {
            "type": "boolean",
            "description": "Internal use"
          },
          "created_at": {
            "type": "number",
            "description": "Epoch of job creation"
          },
          "__v": {
            "type": "number",
            "description": "Internal use"
          },
          "stderr": {
            "type": "string",
            "description": "Error message for job"
          }
        }
      }
    },
    "securitySchemes": {
      "apikeyAuth": {
        "type": "apiKey",
        "name": "authenticate",
        "in": "header"
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  }
}
```