APG PayAPG Paydocs

Reporting

List report charts

GET/report-charts
Request
GEThttps://api.tst.au.apgpay.dev/report-charts
curl -X GET https://api.tst.au.apgpay.dev/report-charts \
  -H "Authorization: Bearer $API_KEY"

Return a page of the charts the caller can read, in the order they were saved. q matches part of a title. Walk the pages by passing nextStartingAfter back as startingAfter; page and endingBefore are refused with 400.

Permissions

Required permission
reports:query

Requires the `query` action on `reports` for the supplied runtime context

Query parameters

qstring

Free-text search. Supplying it engages the search index; omit it to filter only.

startingAfterstring

Cursor pagination, forward only: the nextStartingAfter of the page before.

limitinteger (int32)

Maximum items per page.

columnsarray of RchtColumn

Columns to include, in order, when asking for text/csv. Omit for all of them. Sending it with application/json is a 400.

reportSpaceIdstring

Only the charts saved in this space.

ownerstring

me for what the caller saved.

Responses

The response is a tagged shape: type is always "RchtPageAttributes". Switch on it; subtypes can be added, and a client that already reads it will not break.

Discriminated by type
type = "RchtPageAttributes"
hasMorebooleanrequired

Whether further items exist after this page.

Example true

nextStartingAfterstring

Id to pass as startingAfter to fetch the next page. Present in cursor mode only.

totalCountinteger (int64)

Total items matching the query.

Example 42

pageinteger (int32)

The 1-based page returned. Present in offset mode only.

Example 1250

totalPagesinteger (int32)

Total pages available. Present in offset mode only.

Example 1250

Example
{
  "type": "RchtPageAttributes",
  "data": [
    {
      "type": "RchtViewAttributes",
      "reportChartId": "rcht_9f2Kd8QpLzXw",
      "reportSpaceId": "rspc_9f2Kd8QpLzXw",
      "title": "string",
      "question": {
        "type": "RqryCmdRun",
        "reportDatasetId": "string",
        "measures": [
          "string"
        ],
        "dimensions": [
          "string"
        ],
        "time": {
          "type": "RqryTimeSliceAttributes",
          "grain": "string",
          "range": {
            "type": "RqryRangeBetween",
            "from": "2026-08-19",
            "to": "2026-08-19"
          },
          "compare": "PreviousPeriod"
        },
        "filters": [
          {
            "type": "RqryFilterAbove",
            "dimension": "string",
            "value": "string"
          }
        ],
        "sort": [
          {
            "type": "RqrySortDimension",
            "dimension": "string",
            "ascending": true
          }
        ],
        "limit": 25,
        "page": "string",
        "segments": [
          "string"
        ],
        "measureFilters": [
          {
            "type": "RqryMeasureFilterAbove",
            "measure": "string",
            "value": "string"
          }
        ],
        "top": {
          "type": "RqryTopAttributes",
          "dimension": "string",
          "count": 42,
          "measure": "string"
        },
        "narrowTo": {
          "type": "RqryNarrowCustomers",
          "customerIds": [
            "cust_9f2Kd8QpLzXw"
          ]
        },
        "asAt": "2026-08-19T04:21:07Z",
        "pivot": {
          "type": "RqryPivotAttributes",
          "rows": [
            "string"
          ],
          "columns": [
            "string"
          ],
          "subtotals": true
        },
        "timezone": "string"
      },
      "presentation": {
        "type": "RchtPresentationAttributes",
        "chartType": "Auto",
        "colours": {
          "type": "RchtColoursAttributes",
          "palette": "Categorical",
          "overrides": [
            {
              "type": "RchtColourOverrideAttributes",
              "series": "string",
              "swatch": "string"
            }
          ]
        },
        "description": "string",
        "riseIs": "Good",
        "stackTotal": "string",
        "referenceLines": [
          {
            "type": "RchtReferenceLineConstant",
            "label": "string",
            "value": "string"
          }
        ],
        "table": {
          "type": "RchtTableAttributes",
          "rowLink": "string",
          "statuses": [
            {
              "type": "RchtStatusColumnAttributes",
              "column": "string",
              "tones": [
                {
                  "type": "RchtValueToneAttributes",
                  "value": "string",
                  "tone": "Danger"
                }
              ]
            }
          ]
        }
      },
      "stale": "string",
      "access": "Private",
      "tenant": {
        "type": "RspcTenantEnterprise",
        "enterpriseId": "ent_9f2Kd8QpLzXw"
      },
      "ownedByCaller": true,
      "editable": true,
      "createdAt": "2026-08-19T04:21:07Z",
      "updatedAt": "2026-08-19T04:21:07Z"
    }
  ],
  "hasMore": true,
  "nextStartingAfter": "string",
  "totalCount": 42,
  "page": 1250,
  "totalPages": 1250
}

Error responses