{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-q/json-schema/amazon-q-list-documents-request-schema.json",
  "title": "ListDocumentsRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-q-documents-api-openapi.yml#/components/schemas/ListDocumentsRequest",
  "type": "object",
  "properties": {
    "applicationId": {
      "type": "string",
      "description": "The identifier of the application id the documents are attached to."
    },
    "indexId": {
      "type": "string",
      "description": "The identifier of the index the documents are attached to."
    },
    "dataSourceIds": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "The identifier of the data sources the documents are attached to."
    },
    "nextToken": {
      "type": "string",
      "description": "If the maxResults response was incomplete because there is more data to retrieve, Amazon Q Business returns a pagination token in the response. You can use this pagination token to retrieve the next set of documents."
    },
    "maxResults": {
      "type": "integer",
      "description": "The maximum number of documents to return."
    }
  },
  "required": [
    "applicationId",
    "indexId"
  ]
}