Connected Apps

List Portal Connected App sessions

Changed on

Returns all active Portal Connected App sessions (active refresh tokens) for the given portal, across all developers. Optionally filter to a single developer with filter[developer_id].

get/v1/connected-apps/portals/{portalId}/sessions

Request

  • Base URL
    https://global.api.konghq.com
  • Auth
    • HTTP bearer
    • or HTTP bearer
    • or HTTP bearer
    • or HTTP bearer

Path parameters

portalId, string uuid required
Example:d32d905a-ed33-46a3-a093-d8f536af9a8a

The portal ID

Query parameters

page[size], integer
Example:10

The maximum number of items to include per page. The last page of a collection may include fewer items.

page[number], integer
Example:1

Determines which page of the entities to retrieve.

sort, string

The asc suffix is optional as the default sort order is ascending. The desc suffix is used to specify a descending order. Multiple sort attributes may be provided via a comma separated list. JSONPath notation may be used to specify a sub-attribute (eg: 'foo.bar desc').

Example:created_at desc

Sorts a collection of sessions. Supported sort attributes are:

  • created_at
  • expires_at
filter, object
developer_id, StringFieldEqualsFilter

Filters on the given string field value by exact match.

Filter sessions returned in the response.

Response

Paginated list of Portal Connected App sessions

ListPortalConnectedAppSessionsResponse required
data, PortalConnectedAppSession[] required
meta, PaginatedMeta required

returns the pagination information

Example response

{
  "data": [
    {
      "client_id": "abc123-client",
      "client_name": "My Connected App",
      "granted_scope_names": [
        "konnect:read",
        "konnect:write"
      ],
      "created_at": "2022-11-04T20:10:06.927Z",
      "expires_at": "2022-11-04T20:10:06.927Z"
    }
  ],
  "meta": {
    "page": {
      "number": 1,
      "size": 10,
      "total": 100
    }
  }
}

Changes