---
title: "GET /portals/{portalId}/sessions"
method: GET
path: "/portals/{portalId}/sessions"
---

# GET /portals/{portalId}/sessions

`GET /portals/{portalId}/sessions`

Lists information for multiple secure browser sessions from a specific portal.

## Path parameters

- `portalId` string, required

## Query parameters

- `username` string, password
- `sessionId` string
- `sortBy` 'StartTimeAscending' | 'StartTimeDescending'
- `status` 'Active' | 'Terminated'
- `maxResults` integer
- `nextToken` string

## Response `200`

Success

- ListSessionsResponse
  - `sessions` SessionSummary[], required — The sessions in a list.
    - `portalArn` string — The ARN of the web portal.
    - `sessionId` string — The ID of the session.
    - `username` string, password — The username of the session.
    - `status` 'Active' | 'Terminated' — The status of the session.
    - `startTime` string, date-time — The start time of the session.
    - `endTime` string, date-time — The end time of the session.
  - `nextToken` string — The pagination token used to retrieve the next page of results for this operation.

## Other responses

- `480` — InternalServerException
- `481` — ResourceNotFoundException
- `482` — AccessDeniedException
- `483` — ThrottlingException
- `484` — ValidationException

---

[API](https://skmtc.net/aws/apis/workspaces-web.md) · [All operations](https://skmtc.net/aws/apis/workspaces-web/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aws/workspaces-web/versions/4206b0208021/schema)
