Reports
The reporting engine and saved views.
9 endpoints · base URL https://api.aerscheduler.com
/reports/catalogList available reports
Every report you may run, with its id and category. Start here: the ids returned are what POST /reports/run and POST /reports/export take, and the catalog is filtered to what your roles allow, so you never see a report you cannot run.
Responses
200 | OK | Success.→ { data: object } |
401 | Unauthorized | No token, an expired token, or a malformed one. Sign in again. |
403 | Forbidden | Authenticated, but not allowed to do this. |
429 | Too Many Requests | Rate limited. Retry-After says how long to wait. |
curl https://api.aerscheduler.com/reports/catalog \
-H "Authorization: Bearer $AERSCHEDULER_TOKEN"/reports/exportExport a report as CSV
Same inputs as run, but the response is text/csv rather than the usual JSON envelope.
Request body
Which report, over what window.
reportIdrequired | string | |
startDate | string | |
endDate | string | |
format | "csv" |
Responses
200 | OK | The report as CSV. |
400 | Bad Request | Unknown report id. |
401 | Unauthorized | No token, an expired token, or a malformed one. Sign in again. |
403 | Forbidden | Authenticated, but not allowed to do this. |
429 | Too Many Requests | Rate limited. Retry-After says how long to wait. |
curl -X POST https://api.aerscheduler.com/reports/export \
-H "Authorization: Bearer $AERSCHEDULER_TOKEN" \
-H "Content-Type: application/json" \
-d '{"reportId":"…"}'/reports/overviewOrganization overview
The headline numbers for a window — the figures behind the dashboard.
Query parameters
startDate | string | Start of the window, ISO 8601. Include an offset or Z. |
endDate | string | End of the window, ISO 8601. |
Responses
200 | OK | Success.→ { data: object } |
401 | Unauthorized | No token, an expired token, or a malformed one. Sign in again. |
403 | Forbidden | Authenticated, but not allowed to do this. |
429 | Too Many Requests | Rate limited. Retry-After says how long to wait. |
curl https://api.aerscheduler.com/reports/overview \
-H "Authorization: Bearer $AERSCHEDULER_TOKEN"/reports/runRun a report
Runs one report from the catalog and returns columns, rows, and totals.
Request body
Which report, over what window.
reportIdrequired | string | |
startDate | string | |
endDate | string | |
config | object |
Responses
200 | OK | Success.→ { data: ReportResult } |
400 | Bad Request | Unknown report id, or an unparseable window. |
401 | Unauthorized | No token, an expired token, or a malformed one. Sign in again. |
403 | Forbidden | Authenticated, but not allowed to do this. |
429 | Too Many Requests | Rate limited. Retry-After says how long to wait. |
curl -X POST https://api.aerscheduler.com/reports/run \
-H "Authorization: Bearer $AERSCHEDULER_TOKEN" \
-H "Content-Type: application/json" \
-d '{"reportId":"revenue"}'/reports/viewsList saved report views
Every saved report view in your organization.
Responses
200 | OK | The saved report views.→ { data: ReportDefinition[] } |
401 | Unauthorized | No token, an expired token, or a malformed one. Sign in again. |
403 | Forbidden | Authenticated, but not allowed to do this. |
429 | Too Many Requests | Rate limited. Retry-After says how long to wait. |
curl https://api.aerscheduler.com/reports/views \
-H "Authorization: Bearer $AERSCHEDULER_TOKEN"/reports/viewsCreate a saved report view
Adds a saved report view to your organization.
Request body
The saved view.
reportIdrequired | string | |
namerequired | string | |
config | object | |
isShared | boolean |
Responses
201 | Created | The saved report view that was created.→ { data: ReportDefinition } |
400 | Bad Request | The body failed validation. message says which field. |
401 | Unauthorized | No token, an expired token, or a malformed one. Sign in again. |
403 | Forbidden | Authenticated, but not allowed to do this. |
429 | Too Many Requests | Rate limited. Retry-After says how long to wait. |
curl -X POST https://api.aerscheduler.com/reports/views \
-H "Authorization: Bearer $AERSCHEDULER_TOKEN" \
-H "Content-Type: application/json" \
-d '{"reportId":"…","name":"…"}'/reports/views/{viewId}Get a saved report view
Fetches one saved report view by id.
Path parameters
viewIdrequired | integer | The saved view id. |
Responses
200 | OK | Success.→ { data: ReportDefinition } |
401 | Unauthorized | No token, an expired token, or a malformed one. Sign in again. |
403 | Forbidden | Authenticated, but not allowed to do this. |
404 | Not Found | No such saved report view, or it belongs to another organization. |
429 | Too Many Requests | Rate limited. Retry-After says how long to wait. |
curl https://api.aerscheduler.com/reports/views/:viewId \
-H "Authorization: Bearer $AERSCHEDULER_TOKEN"/reports/views/{viewId}Update a saved report view
Changes the fields you send and leaves the rest alone.
Path parameters
viewIdrequired | integer | The saved view id. |
Request body
Fields to change.
name | string | |
config | object | |
isShared | boolean |
Responses
200 | OK | The updated saved report view.→ { data: ReportDefinition } |
400 | Bad Request | The body failed validation. |
401 | Unauthorized | No token, an expired token, or a malformed one. Sign in again. |
403 | Forbidden | Authenticated, but not allowed to do this. |
429 | Too Many Requests | Rate limited. Retry-After says how long to wait. |
curl -X PATCH https://api.aerscheduler.com/reports/views/:viewId \
-H "Authorization: Bearer $AERSCHEDULER_TOKEN" \
-H "Content-Type: application/json" \
-d '{"name":"…","config":{}}'/reports/views/{viewId}Delete a saved report view
Removes the saved report view.
Path parameters
viewIdrequired | integer | The saved view id. |
Responses
204 | No Content | Success. No body. |
400 | Bad Request | The saved report view could not be deleted — usually because something still references it. |
401 | Unauthorized | No token, an expired token, or a malformed one. Sign in again. |
403 | Forbidden | Authenticated, but not allowed to do this. |
429 | Too Many Requests | Rate limited. Retry-After says how long to wait. |
curl -X DELETE https://api.aerscheduler.com/reports/views/:viewId \
-H "Authorization: Bearer $AERSCHEDULER_TOKEN"