Use this route to retrieve aggregated or summarised values for a given search view (eg jobs, quotes).
You need the information from getReportSetup to construct a report request accurately, so ensure you have it before calling this route. getReportSetup results are stable for the duration of a session (they only change when a new product release ships), so fetch it once and reuse it for subsequent reports rather than re-fetching before every call. Use cases for this route might be: How many jobs are there in the system? What's the total and average value of all my invoices that were issued last month? Give me a monthly breakdown of the total time spent on all my jobs.
Request
- Base URL: https://api.streamtime.net/v2
- URL: https://api.streamtime.net/v2/report
- Auth: HTTP bearer
Query parameters
What are you reporting on?
The data you are reporting on.
If true, returns results split into time based breakdowns based on the report's start and end dates (eg daily, weekly, monthly breakdowns). The duration of the breakdowns is automatically calculated based on the total duration of the search, eg short searches will get daily breakdowns, and longer searches will get monthly. If false, it will just return the totals for the entire time period.
Request body
Example request
{
"startDate": "2025-01-01",
"endDate": "2025-12-31",
"groupBy": "job_status",
"dateField": "job_start_date",
"statistics": [
{
"mode": "sum",
"column": "job_total_planned_time_ex_tax"
}
],
"query": "job_status = 'In Play' AND job_start_date >= '2023-01-01' AND job_start_date <= '2023-12-31' AND (job_total_planned_time_ex_tax > 0 or job_name contains 'account management')"
}Response
Search has been performed successfully.
Changes
No recorded changes to this operation across all 1 revision of this API.