v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-1475719557.8 KB

Retrieves all the documents contained in a data source that is connected to a knowledge base. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/kb-direct-ingestion.html">Ingest changes directly into a knowledge base</a> in the Amazon Bedrock User Guide.

post/knowledgebases/{knowledgeBaseId}/datasources/{dataSourceId}/documents

Path parameters

knowledgeBaseIdstring required

The unique identifier of the knowledge base that is connected to the data source.

dataSourceIdstring required

The unique identifier of the data source that contains the documents.

Request body

maxResultsinteger

The maximum number of results to return in the response. If the total number of results is greater than this value, use the token returned in the response in the <code>nextToken</code> field when making another request to return the next batch of results.

nextTokenstring

If the total number of results is greater than the <code>maxResults</code> value provided in the request, enter the token returned in the <code>nextToken</code> field in the response in this field to return the next batch of results.

Response

Success

nextTokenstring

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.