Run a configured Query Report and retrieve the results as JSON data or a downloadable file.
GET /api/public/QueryReport
Parameter Type Required Description
APIKey string Yes Your API key
RepID string Yes Encrypted report ID provided by your TrakIT administrator
Params string No Semicolon-separated parameter values in the order the report expects them
AsFile boolean No true to download the report as a file; false (default) to return JSON data
Returns an array of row objects (the report data) directly:
[
{
"JobRef": "JOB-2025-001",
"Customer": "ABC Logistics",
"Origin": "Johannesburg",
"Destination": "Cape Town",
"Status": "In Transit"
}
]
Returns a file download (Excel, PDF, or CSV depending on the report configuration). The Content-Disposition header will contain the filename.
The report must be enabled for API access by a TrakIT administrator.
Report parameters must be configured in advance.
The report is added to the Report Queue, and a delivery record is logged.