APG PayAPG Paydocs

Operations

List queues

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

Return every queue the platform drains, with what each consumer group on it is doing.

Permissions

Required permission
queues:query

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

Query parameters

pageinteger (int32)

1-based page number.

limitinteger (int32)

Maximum items per page.

columnsarray of QueueColumn

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

Discriminated by type
type = "QueuePageAttributes"
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": "QueuePageAttributes",
  "data": [
    {
      "type": "QueueAttributes",
      "queue": "string",
      "tickerLagSeconds": 1250,
      "eventsPerSecond": 12.5,
      "consumers": [
        {
          "type": "QueueConsumerAttributes",
          "consumer": "string",
          "backlog": 1250,
          "lagSeconds": 1250,
          "members": 1250,
          "silentMembers": 1250
        }
      ]
    }
  ],
  "hasMore": true,
  "nextStartingAfter": "string",
  "totalCount": 42,
  "page": 1250,
  "totalPages": 1250
}

Error responses