---
title: "POST /assistants/{assistantId}/searchSessions"
method: POST
path: "/assistants/{assistantId}/searchSessions"
---

# POST /assistants/{assistantId}/searchSessions

`POST /assistants/{assistantId}/searchSessions`

Searches for sessions.

## Path parameters

- `assistantId` string, required

## Query parameters

- `maxResults` integer
- `nextToken` string

## Request body

- object
  - `searchExpression` object, required — The search expression.
    - `filters` Filter[] — The search expression filters.
      - `field` 'NAME', required — The field on which to filter.
      - `operator` 'EQUALS', required — The operator to use for comparing the field’s value with the provided value.
      - `value` string, required — The desired field value on which to filter.

## Response `200`

Success

- SearchSessionsResponse
  - `nextToken` string — If there are additional results, this is the token for the next set of results.
  - `sessionSummaries` SessionSummary[], required — Summary information about the sessions.
    - `assistantArn` string, required — The Amazon Resource Name (ARN) of the Wisdom assistant.
    - `assistantId` string, required — The identifier of the Wisdom assistant.
    - `sessionArn` string, required — The Amazon Resource Name (ARN) of the session.
    - `sessionId` string, required — The identifier of the session.

## Other responses

- `480` — ValidationException
- `481` — AccessDeniedException
- `482` — ResourceNotFoundException

---

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