> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://apidocs.megamation.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://apidocs.megamation.com/_mcp/server.

# Get Available Reports

GET https://api.megamation.com/CLIENT_ID/DATABASE_ID/apireport

Reports need to be made available in the system before you can access them via API. System already has master reports made available for API users. If you can't see your report here please contact our support.

Reference: https://apidocs.megamation.com/api/api-reports/get-api-reports-get-available-reports

## Authentication

- `Authorization` header (basic auth, required) — Basic authentication of the form `Basic <base64(username:password)>`.
- `Authorization` header (bearer token, required) — Bearer authentication of the form `Bearer <token>`, where token is your auth token.

## Request

### Query parameters

- `api_report` (string, optional)

## Response

### 200

OK

## Examples

**Response**

```json
{
  "_embedded": {
    "Report": [
      {
        "_links": {
          "self": {
            "href": "https://api.megamation.com/dev2022/dl/apireport/MPC*1030*MPC"
          }
        },
        "api_report": "Yes",
        "description": "Reports date of last activity/movement from receiving and issue table data. If a 'Last Activity' date is specified, only items for which there has been no activity/movement since that date will be displayed.",
        "report_name": "INV - Slow Moving"
      },
      {
        "_links": {
          "self": {
            "href": "https://api.megamation.com/dev2022/dl/apireport/MPC*1023*MPC"
          }
        },
        "api_report": "Yes",
        "description": "Overdue Work Order List.  The following work order fields will be exported sorted by the primary and secondary sort:  work order number, date, due date, planned date, description, submitted by, status, priority, labor cost and material cost.",
        "report_name": "WO - Overdue Work Orders"
      },
      {
        "_links": {
          "self": {
            "href": "https://api.megamation.com/dev2022/dl/apireport/MPC*1025*MPC"
          }
        },
        "api_report": "Yes",
        "description": "Work Order List.  The following work order fields will be exported sorted by the primary and secondary sort:  work order number, date, description, downtime, submitted by, status, priority, labor cost and material cost.",
        "report_name": "WO - Work Order List"
      },
      {
        "_links": {
          "self": {
            "href": "https://api.megamation.com/dev2022/dl/apireport/MPC*1029*MPC"
          }
        },
        "api_report": "Yes",
        "description": "Voucher List.  Export a list of all invoices within the given date range. The report is sorted by Supplier Name by Purchase Order Number by Invoice Number by Voucher Dater.   The report contains the vouchered cost per PO Lineitem totaled by Invoice Number.",
        "report_name": "PUR - Voucher List"
      },
      {
        "_links": {
          "self": {
            "href": "https://api.megamation.com/dev2022/dl/apireport/MPC*1046*MPC"
          }
        },
        "api_report": "Yes",
        "description": "Assign Master",
        "report_name": "Assign Master"
      },
      {
        "_links": {
          "self": {
            "href": "https://api.megamation.com/dev2022/dl/apireport/MPC*1039*MPC"
          }
        },
        "api_report": "Yes",
        "description": "Rlisting of all print jobs",
        "report_name": "Print Log"
      },
      {
        "_links": {
          "self": {
            "href": "https://api.megamation.com/dev2022/dl/apireport/MPC*1024*MPC"
          }
        },
        "api_report": "Yes",
        "description": "Work Order totals by trade",
        "report_name": "WO - Work Order Labor Totals"
      },
      {
        "_links": {
          "self": {
            "href": "https://api.megamation.com/dev2022/dl/apireport/MPC*1022*MPC"
          }
        },
        "api_report": "Yes",
        "description": "Hierarchy Cost Report.  Labor cost and material cost will be collected and reported by hieararchy of the equipment. This report will roll up the cost of maintenance to all higher levels of the hierarchy.",
        "report_name": "WO - Eqp Hierarchical Cost"
      },
      {
        "_links": {
          "self": {
            "href": "https://api.megamation.com/dev2022/dl/apireport/MPC*1033*MPC"
          }
        },
        "api_report": "Yes",
        "description": "Exports a list of all work orders associated with a project and project step showing the work order material and labor costs.  ",
        "report_name": "PROJ - Work Order List"
      },
      {
        "_links": {
          "self": {
            "href": "https://api.megamation.com/dev2022/dl/apireport/MPC*1040*MPC"
          }
        },
        "api_report": "Yes",
        "description": "Equipment Readings. Export readings for a date range to a spreadsheet. This routine is restricted to groups of equipment with the same equipment definitions.",
        "report_name": "Utility Readings and Costs"
      },
      {
        "_links": {
          "self": {
            "href": "https://api.megamation.com/dev2022/dl/apireport/MPC*1062*MPC"
          }
        },
        "api_report": "Yes",
        "description": "Work Order Table for API completed work orders.\n",
        "report_name": "API - Closed Work Orders"
      },
      {
        "_links": {
          "self": {
            "href": "https://api.megamation.com/dev2022/dl/apireport/MPC*1013*MPC"
          }
        },
        "api_report": "Yes",
        "description": "Employee List.  The following employee fields will be exported sorted by the primary and secondary sort: employee number, employee name, trade, trade description, department, department description, skills and years employed.  No date selection is required.",
        "report_name": "EMP - Employee List"
      },
      {
        "_links": {
          "self": {
            "href": "https://api.megamation.com/dev2022/dl/apireport/MPC*1020*MPC"
          }
        },
        "api_report": "Yes",
        "description": "Inventory Listing including unit cost and average cost.  The following fields will also be exported if the primary or secondary sort is Part:  UOM (unit of measure), min, ROQ (reorder quantity), OHQ (on- hand quantity), Cost (either unit or average), Primary Supplier and Lead Time.",
        "report_name": "INV - Inventory List"
      },
      {
        "_links": {
          "self": {
            "href": "https://api.megamation.com/dev2022/dl/apireport/MPC*1027*MPC"
          }
        },
        "api_report": "Yes",
        "description": "Expedite Report.  Export a list of all active purchase order line items where received quantity is less than ordered quantity for the selected date range.",
        "report_name": "PUR - Expedite Report"
      },
      {
        "_links": {
          "self": {
            "href": "https://api.megamation.com/dev2022/dl/apireport/MPC*1028*MPC"
          }
        },
        "api_report": "Yes",
        "description": "Non-Vouchered PO Line Items.  Export a list of all active purchase order line items where received quantity is not equal to the vouchered quantity.",
        "report_name": "PUR - Voucher Outstanding"
      },
      {
        "_links": {
          "self": {
            "href": "https://api.megamation.com/dev2022/dl/apireport/MPC*1026*MPC"
          }
        },
        "api_report": "Yes",
        "description": "All inventory issues between a date range",
        "report_name": "INV - Inventory Issues"
      },
      {
        "_links": {
          "self": {
            "href": "https://api.megamation.com/dev2022/dl/apireport/MPC*1017*MPC"
          }
        },
        "api_report": "Yes",
        "description": "Equipment Readings.  Export readings for a date range to a spreadsheet. This routine is restricted to groups of equipment with the same reading definitions.",
        "report_name": "EQP - Equipment Readings"
      },
      {
        "_links": {
          "self": {
            "href": "https://api.megamation.com/dev2022/dl/apireport/MPC*1058*MPC"
          }
        },
        "api_report": "Yes",
        "description": "Time Card Analysis.  The calculation of regular, time and a half, & double time hours summarized by the primary sort and secondary sort for each time interval.  This routine captures time entered via the time card entry window.",
        "report_name": "Employee Timecard Report"
      },
      {
        "_links": {
          "self": {
            "href": "https://api.megamation.com/dev2022/dl/apireport/MPC*1009*MPC"
          }
        },
        "api_report": "Yes",
        "description": "Check-list Results by Task.  This reports shows all the checklist entered during a date range matching the search criteria.  You can select to only show specific checklist items rather than the entire checklist.  This allows you to trend/analyze a specific checklist result.",
        "report_name": "CL - Results"
      }
    ]
  },
  "_links": {
    "apiEntryPoint": {
      "href": "https://api.megamation.com/dev2022/dl"
    },
    "self": {
      "href": "https://api.megamation.com/dev2022/dl/apireport?api_report=1"
    }
  },
  "cursor": "",
  "has_more": "False",
  "next_page": "",
  "progress": "19/19"
}
```

**SDK Code**

```python
import requests

url = "https://api.megamation.com/CLIENT_ID/DATABASE_ID/apireport"

querystring = {"api_report":"1"}

response = requests.get(url, params=querystring, auth=("<username>", "<password>"))

print(response.json())
```

```javascript
const url = 'https://api.megamation.com/CLIENT_ID/DATABASE_ID/apireport?api_report=1';
const credentials = btoa("<username>:<password>");

const options = {method: 'GET', headers: {Authorization: `Basic ${credentials}`}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.megamation.com/CLIENT_ID/DATABASE_ID/apireport?api_report=1"

	req, _ := http.NewRequest("GET", url, nil)

	req.SetBasicAuth("<username>", "<password>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://api.megamation.com/CLIENT_ID/DATABASE_ID/apireport?api_report=1")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request.basic_auth("<username>", "<password>")

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.megamation.com/CLIENT_ID/DATABASE_ID/apireport?api_report=1")
  .basicAuth("<username>", "<password>")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.megamation.com/CLIENT_ID/DATABASE_ID/apireport?api_report=1', [
  'headers' => [
  ],
    'auth' => ['<username>', '<password>'],
]);

echo $response->getBody();
```

```csharp
using RestSharp;
using RestSharp.Authenticators;

var client = new RestClient("https://api.megamation.com/CLIENT_ID/DATABASE_ID/apireport?api_report=1");
client.Authenticator = new HttpBasicAuthenticator("<username>", "<password>");
var request = new RestRequest(Method.GET);

IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let credentials = Data("<username>:<password>".utf8).base64EncodedString()

let headers = ["Authorization": "Basic \(credentials)"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.megamation.com/CLIENT_ID/DATABASE_ID/apireport?api_report=1")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```