API reference
Reporting API
2 operations for reporting. Each one names the scope your API key needs.
Scopes used here: reporting.report.read
The datasets a report can be run against
GET /reports/datasets
Scope: reporting.report.read
Response 200
| Field | Type | Notes |
|---|---|---|
[].key | string required | |
[].columns | not yet published required | |
[].scopeRule | string required |
Errors: 400 · 401 · 403 · 404 · 422 · 429
(error format)
curl -s 'https://<your-company>.<app-domain>/api/v1/reports/datasets' \
-H 'Authorization: Bearer YOUR_API_KEY' Run a report against a dataset and return its rows
POST /reports/run
Scope: reporting.report.read
Headers: Idempotency-Key
(see idempotency)
Request body
| Field | Type | Notes |
|---|---|---|
dataset | string required | |
columns | array of string | |
filters | object | |
limit | integer |
Response 201
| Field | Type | Notes |
|---|---|---|
columns | array of string required | |
rows | array of object required | |
truncated | boolean |
Errors: 400 · 401 · 403 · 404 · 422 · 429
(error format)
curl -s -X POST 'https://<your-company>.<app-domain>/api/v1/reports/run' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-H 'Idempotency-Key: <a unique value>' \
--data '{ … }'