Custom reports

Any custom reports created at https://app.swarmia.com/explore become automatically available under this API. Go to Explore, save a report, then use its UUID to fetch results via the API. The specific properties available on the response rows depend on the report in question.

Custom report saved in the app

get

Executes a custom report and returns the results. Custom reports are created at app.swarmia.com/explore. The id parameter expected by the API is the UUID shown in the report's URL in the app (query parameter activeReport=<UUID>).

The response shape (columns, aggregates, grouping) is fully determined by the report. The schema object in the response describes each column so consumers can interpret the dynamic result.

Authorizations
AuthorizationstringRequired

API token passed as Authorization: Bearer <token>. The token must have the entityQuery scope enabled. Tokens can be provisioned at https://app.swarmia.com/settings/api-tokens.

Path parameters
idstring · uuidRequired

UUID of a custom report.

Example: a1b2c3d4-e5f6-7890-abcd-ef1234567890
Query parameters
outputstring · enumOptional

Response format.

Default: jsonPossible values:
timeframe.startstring · dateOptional

Start of the reporting period (inclusive). When provided together with timeframe.end, overrides all timeframe filters embedded in the report. When omitted, the report's original timeframes are used as-is.

Example: 2026-01-01
timeframe.endstring · dateOptional

End of the reporting period (inclusive). Must be provided together with timeframe.start.

Example: 2026-02-01
timezonestringOptional

IANA timezone used to interpret the date-only timeframe.start and timeframe.end values and for time bucketing. Defaults to UTC.

Default: UTCExample: America/New_York
Responses
200

Successful response.

get
/reports/custom/{id}

Last updated

Was this helpful?