Authentication, scopes, rate limits, errors, retrying safely and paging are explained once, on the API reference.
Every request needs a token with the scope shown on its endpoint; without it the answer is 403.
Reports
List saved reports
GET/api/v1/reportsScope reports:read
Your saved custom reports and dashboards (Reports -> Custom): the ones shared with the workspace and the key creator's own. Archived ones are left out. Use an id to run one.
Parameters
Parameter
Type
What it is
kind
string, or null, in the query
Only reports, or only dashboards.
Answer (200): these fields
Field
Type
What it is
datarequired
list of objects
—
data[].idrequired
string (uuid)
—
data[].namerequired
string
—
data[].kindrequired
string
report or dashboard.
data[].source
string, or null
What a report counts (calls, messages and so on), in words.
data[].sharedrequired
boolean
Shared with the workspace, or kept by the key's owner.
data[].updated_at
string (date-time), or null
—
Errors
Code
When
401
The token is missing, unknown or revoked, or its workspace was deleted.
402
The workspace's plan does not include API access. The token is paused, not revoked: it works again as soon as the plan includes API access.
403
The token does not have this endpoint's scope, it is a sandbox token, the workspace is suspended, or the request came from a network the workspace, or the token's IP allowlist, does not allow.
422
A field is missing or not in the form this endpoint takes. detail says which, and why.
429
This token has made more requests this minute than your plan allows. The Retry-After header says how many seconds to wait.
Run a saved custom report or dashboard now and get its figures, exactly as the Custom reports screen would show them to the key's owner. A report comes as JSON or CSV; a dashboard as JSON. Each run is a real query, capped at 10 seconds, and a key may run 30 a minute.
Parameters
Parameter
Type
What it is
report_idrequired
string (uuid), in the path
—
format
string, in the query
json, or csv for a report's table. Default: json.
Answer (200): these fields
Field
Type
What it is
idrequired
string (uuid)
—
namerequired
string
—
kindrequired
string
—
result
object, or null
A report: its columns, rows, totals and range, as the Custom reports screen shows them.
pages
list of object, or null
A dashboard: each page with its widgets' figures.
Errors
Code
When
401
The token is missing, unknown or revoked, or its workspace was deleted.
402
The workspace's plan does not include API access. The token is paused, not revoked: it works again as soon as the plan includes API access.
403
The token does not have this endpoint's scope, it is a sandbox token, the workspace is suspended, or the request came from a network the workspace, or the token's IP allowlist, does not allow.
404
No saved report of yours has this id.
422
A field is missing or not in the form this endpoint takes. detail says which, and why.
429
This token has made more requests this minute than your plan allows. The Retry-After header says how many seconds to wait.