v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-1433660423.8 KB

Queries a knowledge base and retrieves information from it.

post/knowledgebases/{knowledgeBaseId}/retrieve

Path parameters

knowledgeBaseIdstring required

The unique identifier of the knowledge base to query.

Request body

nextTokenstring

If there are more results than can fit in the response, the response returns a <code>nextToken</code>. Use this token in the <code>nextToken</code> field of another request to retrieve the next batch of results.

Response

Success

guardrailAction'INTERVENED' | 'NONE'

Specifies if there is a guardrail intervention in the response.

nextTokenstring

If there are more results than can fit in the response, the response returns a <code>nextToken</code>. Use this token in the <code>nextToken</code> field of another request to retrieve the next batch of results.