---
title: "POST /knowledgeBases/{knowledgeBaseId}/search"
method: POST
path: "/knowledgeBases/{knowledgeBaseId}/search"
---

# POST /knowledgeBases/{knowledgeBaseId}/search

`POST /knowledgeBases/{knowledgeBaseId}/search`

Searches for content in a specified knowledge base. Can be used to get a specific content resource by its name.

## Path parameters

- `knowledgeBaseId` 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

- SearchContentResponse
  - `contentSummaries` ContentSummary[], required — Summary information about the content.
    - `contentArn` string, required — The Amazon Resource Name (ARN) of the content.
    - `contentId` string, required — The identifier of the content.
    - `contentType` string, required — The media type of the content.
    - `knowledgeBaseArn` string, required — The Amazon Resource Name (ARN) of the knowledge base.
    - `knowledgeBaseId` string, required — The identifier of the knowledge base. This should not be a QUICK_RESPONSES type knowledge base if you're storing Wisdom Content resource to it.
    - `metadata` object, required — A key/value map to store attributes without affecting tagging or recommendations. For example, when synchronizing data between an external system and Wisdom, you can store an external version identifier as metadata to utilize for determining drift.
    - `name` string, required — The name of the content.
    - `revisionId` string, required — The identifier of the revision of the content.
    - `status` 'CREATE_IN_PROGRESS' | 'CREATE_FAILED' | 'ACTIVE' | 'DELETE_IN_PROGRESS' | 'DELETE_FAILED' | 'DELETED' | 'UPDATE_FAILED', required — The status of the content.
    - `tags` object — The tags used to organize, track, or control access for this resource.
    - `title` string, required — The title of the content.
  - `nextToken` string — If there are additional results, this is the token for the next set of results.

## 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)
