APG PayAPG Paydocs

Reporting

List exports

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

Return your exports, newest first, with no links: read one to sign a link to its file.

Permissions

Required permission
reports:query

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

Query parameters

startingAfterstring

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

limitinteger (int32)

Maximum items per page.

columnsarray of ExptColumn

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

Responses

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

Discriminated by type
type = "ExptPageAttributes"
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": "ExptPageAttributes",
  "data": [
    {
      "type": "ExptViewAttributes",
      "exportId": "expt_9f2Kd8QpLzXw",
      "source": "string",
      "sourceKind": "List",
      "summary": "string",
      "state": "Queued",
      "rowsWritten": 1250,
      "bytesWritten": 1250,
      "failureCode": "Refused",
      "failure": "string",
      "downloadUrl": "https://example.com/callback",
      "downloadUrlExpiresAt": "2026-08-19T04:21:07Z",
      "createdAt": "2026-08-19T04:21:07Z",
      "startedAt": "2026-08-19T04:21:07Z",
      "finishedAt": "2026-08-19T04:21:07Z"
    }
  ],
  "hasMore": true,
  "nextStartingAfter": "string",
  "totalCount": 42,
  "page": 1250,
  "totalPages": 1250
}

Error responses