APG PayAPG Paydocs

Identity

List sessions

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

Return the session you are holding, and what it can do. A page of one, the platform stores no sessions, so there are no others to list.

Permissions

Required permission
sessions:query

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

Query parameters

pageinteger (int32)

1-based page number.

limitinteger (int32)

Maximum items per page.

columnsarray of SessColumn

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 "SessPageAttributes". Switch on it; subtypes can be added, and a client that already reads it will not break.

Discriminated by type
type = "SessPageAttributes"
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": "SessPageAttributes",
  "data": [
    {
      "type": "SessViewAuthenticated",
      "userId": "user_9f2Kd8QpLzXw",
      "displayName": "Ada Lovelace",
      "activeDomain": {
        "type": "SessDomainAttributes",
        "domain": {
          "type": "UserDomainAnonymous",
          "restrictedTo": {
            "type": "UserDomainCustomer",
            "customerId": "cust_9f2Kd8QpLzXw"
          }
        },
        "description": "string"
      },
      "roleIds": [
        "role_9f2Kd8QpLzXw"
      ],
      "capabilities": [
        {
          "type": "SessCapabilityAttributes",
          "resource": "BlockedCard",
          "actions": [
            "Create"
          ]
        }
      ],
      "rbacHash": "string",
      "directDebitAccountKinds": [
        "Au"
      ],
      "expiresAt": "2026-08-19T04:21:07Z"
    }
  ],
  "hasMore": true,
  "nextStartingAfter": "string",
  "totalCount": 42,
  "page": 1250,
  "totalPages": 1250
}

Error responses