Reports
Query retained customer, channel, agent, bot, and campaign activity with explicit date anchors. 2 endpoints in this resource.
List reports
GET
https://api.flownally.com/v1/reportsReturns the reports you can query, with each report's metrics, the dimensions you can
group it by and the filters it accepts.
Authorization
Required scopes
- report:read
Allowed roles
- owner
- admin
List report definitions.
Responses
- 200Report definitionsapplication/json
- defaultNo description in the spec.
Related schemas
GET /v1/reports
curl "https://api.flownally.com/v1/reports" \
-H "Authorization: Bearer $FLOWNALLY_API_TOKEN"200Example response
application/json{
"reports": [
{
"id": "string",
"title": "string",
"description": "string",
"dataset": "string",
"grain": "string",
"dateAnchor": "string",
"definitionVersion": "string",
"metrics": [
{
"id": "string",
"label": "string",
"unit": "count",
"aggregation": "additive"
}
],
"dimensions": [
"string"
],
"filters": [
"string"
]
}
]
}Query report
POST
https://api.flownally.com/v1/reports/{reportId}/queryReturns one page of a report's rows for a date range, with metric totals for the range and for the same number of days just before it.
fromandtomust each be the start of a day intimezone, 1 to 90 days apart.groupBymust be one of the report'sdimensions. Omit it to group by the report'sgrain.- Use only the
filtersthe report lists. - Rows grouped by
dayinclude every day or week in the range, even ones with no data. - For the next page, send the same query with
afterset topageInfo.endCursor.
400 and code reporting_invalid_query.Open as its own pageAuthorization
Required scopes
- report:read
Allowed roles
- owner
- admin
Query a report.
Parameters
- Name
reportId- Type
- path · string
- required
Report ID fromGET /reports, for examplecustomer-sessionsorcampaigns.
Body parameters
Send a application/json body. The body is required.
- Name
from- Type
- string
- required
Start of the range, inclusive. Must be the start of a day intimezone.- Name
to- Type
- string
- required
End of the range, exclusive. Must be the start of a day intimezone.- Name
timezone- Type
- string
- required
IANA time zone that days and weeks follow, for exampleEurope/Warsaw.- Name
interval- Type
- enum
Bucket size for rows grouped byday. Weekly buckets start on Monday; the first starts atfrom.One of: day, week- Name
groupBy- Type
- string
One of the report'sdimensions. Defaults to the report'sgrain.- Name
population- Type
- enum
createddates sessions by when they were created instead of by the report'sdateAnchor, and adds thecustomer,outboundandemptymetrics. Only thecustomer-sessions,channelsandagentsreports support it.One of: customer, created- Name
filters- Type
- ReportFilters
- Name
search- Type
- string
Supported only by theagentsreport.- Name
first- Type
- integer
- Name
after- Type
- string
pageInfo.endCursorfrom the previous page of the same query.
Responses
- 200Report resultapplication/json
- defaultNo description in the spec.
Related schemas
POST /v1/reports/{reportId}/query
curl -X POST "https://api.flownally.com/v1/reports/$REPORT_ID/query" \
-H "Authorization: Bearer $FLOWNALLY_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"from": "string",
"to": "string",
"timezone": "string",
"interval": "day",
"groupBy": "string",
"population": "customer",
"filters": {
"inboxIds": [
"string"
],
"channels": [
"string"
],
"agentIds": [
"string"
],
"botIds": [
"string"
],
"initiators": [
"string"
],
"campaignIds": [
"string"
]
},
"search": "string",
"first": 0,
"after": "string"
}'200Example response
application/json{
"reportId": "string",
"definitionVersion": "string",
"generatedAt": "2026-04-27T00:00:00.000Z",
"from": "string",
"to": "string",
"timezone": "string",
"interval": "string",
"dateAnchor": "string",
"population": "string",
"filters": {
"inboxIds": [
"string"
],
"channels": [
"string"
],
"agentIds": [
"string"
],
"botIds": [
"string"
],
"initiators": [
"string"
],
"campaignIds": [
"string"
]
},
"columns": [
{
"id": "string",
"label": "string",
"kind": "dimension",
"unit": "count"
}
],
"rows": [
{
"key": "string",
"label": "string",
"bucketStart": "string",
"dimensions": {},
"values": {}
}
],
"totals": {},
"comparisonTotals": {},
"pageInfo": {
"hasNextPage": true,
"endCursor": "string"
},
"totalCount": 0
}