---
title: "POST /sessions/"
method: POST
path: "/sessions/"
---

# POST /sessions/

`POST /sessions/`

Lists all sessions in your Amazon Web Services account. For more information about sessions, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/sessions.html">Store and retrieve conversation history and context with Amazon Bedrock sessions</a>.

## Query parameters

- `maxResults` integer — Max Results.
- `nextToken` string

## Response `200`

Success

- ListSessionsResponse
  - `nextToken` string — If the total number of results is greater than the <code>maxResults</code> value provided in the request, use this token when making another request in the <code>nextToken</code> field to return the next batch of results.
  - `sessionSummaries` SessionSummary[], required — A list of summaries for each session in your Amazon Web Services account.
    - `createdAt` string, date-time, required — The timestamp for when the session was created.
    - `lastUpdatedAt` string, date-time, required — The timestamp for when the session was last modified.
    - `sessionArn` string, required — The Amazon Resource Name (ARN) of the session.
    - `sessionId` string, required — The unique identifier for the session.
    - `sessionStatus` 'ACTIVE' | 'EXPIRED' | 'ENDED', required — The current status of the session.

## Other responses

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

---

[API](https://skmtc.net/aws/apis/bedrock-agent-runtime.md) · [All operations](https://skmtc.net/aws/apis/bedrock-agent-runtime/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aws/bedrock-agent-runtime/versions/fe358131c0ad/schema)
