Amazon Q Indices API

The Indices API from Amazon Q — 1 operation(s) for indices.

GitHub OpenAPI

Operations 5

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

POST /applications/{applicationId}/indices Create a Q Business index · Create Index #
Ask an LLM
“How do I create a Q Business index for my application?”
“Can I set capacity and tags on a new index?”
Tell an agent
Create a {type} index named {displayName} in application {applicationId}.
Create index {displayName} in application {applicationId} with tags {tags}.
GET /applications/{applicationId}/indices List Q Business indices · List Indices #
Ask an LLM
“Which Q Business indices have I created?”
“Can I page through my Q Business indices?”
Tell an agent
List indices in Q Business application {applicationId}.
Show up to {maxResults} indices for application {applicationId}.
GET /applications/{applicationId}/indices/{indexId} Get a Q Business index · Get Index #
Ask an LLM
“What capacity and status does one of my Q Business indices have?”
“Can I look up a single index by its ID?”
Tell an agent
Get index {indexId} in Q Business application {applicationId}.
Show the status of index {indexId} for application {applicationId}.
PUT /applications/{applicationId}/indices/{indexId} Update a Q Business index · Update Index #
Ask an LLM
“Can I change the capacity or document attributes of an existing index?”
“How do I rename a Q Business index?”
Tell an agent
Update index {indexId} in application {applicationId} to capacity {capacityConfiguration}.
Rename index {indexId} in application {applicationId} to {displayName}.
DELETE /applications/{applicationId}/indices/{indexId} Delete a Q Business index · Delete Index #
Ask an LLM
“How do I delete a Q Business index?”
“Can I remove an index I no longer use?”
Tell an agent destructive · confirm first
Delete index {indexId} from Q Business application {applicationId}.
Remove the unused index {indexId} in application {applicationId}.

Documentation

Specifications

SDKs

Schemas & Data

Other Resources

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/amazon-q:amazon-q-indices-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

amazon-q-indices-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: QBusiness Indices API
  version: '2023-11-27'
  description: Generated from AWS's published Smithy model for QBusiness. 5 operation(s).
  contact:
    name: Amazon Web Services
    url: https://aws.amazon.com/contact-us/
  license:
    name: Apache 2.0
    identifier: Apache-2.0
    url: https://github.com/aws/api-models-aws/blob/main/LICENSE
servers:
- url: https://qbusiness.{region}.amazonaws.com
  variables:
    region:
      default: us-east-1
security:
- sigv4: []
paths:
  /applications/{applicationId}/indices:
    post:
      operationId: CreateIndex
      summary: Create Index
      description: Creates an Amazon Q Business index. To determine if index creation has completed, check the Status field
        returned from a call to DescribeIndex. The Status field is set to ACTIVE when the index is ready to use. Once the
        index is active, you can index your documents using the BatchPutDocument API or the CreateDataSource API.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateIndexResponse'
        '403':
          description: AccessDeniedException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccessDeniedException'
        '409':
          description: ConflictException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConflictException'
        '500':
          description: InternalServerException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalServerException'
        '404':
          description: ResourceNotFoundException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceNotFoundException'
        '402':
          description: ServiceQuotaExceededException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ServiceQuotaExceededException'
        '429':
          description: ThrottlingException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ThrottlingException'
        '400':
          description: ValidationException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationException'
      parameters:
      - name: applicationId
        in: path
        required: true
        schema:
          type: string
        description: The identifier of the Amazon Q Business application using the index.
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                displayName:
                  type: string
                  description: A name for the Amazon Q Business index.
                description:
                  type: string
                  description: A description for the Amazon Q Business index.
                type:
                  type: string
                  enum:
                  - ENTERPRISE
                  - STARTER
                  description: The index type that's suitable for your needs. For more information on what's included in each
                    type of index, see Amazon Q Business tiers.
                tags:
                  type: array
                  items:
                    $ref: '#/components/schemas/Tag'
                  description: 'A list of key-value pairs that identify or categorize the index. You can also use tags to
                    help control access to the index. Tag keys and values can consist of Unicode letters, digits, white space,
                    and any of the following symbols: _ . : / = + - @.'
                capacityConfiguration:
                  $ref: '#/components/schemas/IndexCapacityConfiguration'
                clientToken:
                  type: string
                  description: A token that you provide to identify the request to create an index. Multiple calls to the
                    CreateIndex API with the same client token will create only one index.
              required:
              - displayName
      tags:
      - Indices
    get:
      operationId: ListIndices
      summary: List Indices
      description: Lists the Amazon Q Business indices you have created.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListIndicesResponse'
        '403':
          description: AccessDeniedException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccessDeniedException'
        '500':
          description: InternalServerException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalServerException'
        '404':
          description: ResourceNotFoundException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceNotFoundException'
        '429':
          description: ThrottlingException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ThrottlingException'
        '400':
          description: ValidationException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationException'
      parameters:
      - name: applicationId
        in: path
        required: true
        schema:
          type: string
        description: The identifier of the Amazon Q Business application connected to the index.
      - name: nextToken
        in: query
        schema:
          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 Amazon Q Business
          indices.
      - name: maxResults
        in: query
        schema:
          type: integer
        description: The maximum number of indices to return.
      tags:
      - Indices
  /applications/{applicationId}/indices/{indexId}:
    get:
      operationId: GetIndex
      summary: Get Index
      description: Gets information about an existing Amazon Q Business index.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetIndexResponse'
        '403':
          description: AccessDeniedException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccessDeniedException'
        '500':
          description: InternalServerException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalServerException'
        '404':
          description: ResourceNotFoundException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceNotFoundException'
        '429':
          description: ThrottlingException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ThrottlingException'
        '400':
          description: ValidationException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationException'
      parameters:
      - name: applicationId
        in: path
        required: true
        schema:
          type: string
        description: The identifier of the Amazon Q Business application connected to the index.
      - name: indexId
        in: path
        required: true
        schema:
          type: string
        description: The identifier of the Amazon Q Business index you want information on.
      tags:
      - Indices
    put:
      operationId: UpdateIndex
      summary: Update Index
      description: Updates an Amazon Q Business index.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UpdateIndexResponse'
        '403':
          description: AccessDeniedException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccessDeniedException'
        '409':
          description: ConflictException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConflictException'
        '500':
          description: InternalServerException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalServerException'
        '404':
          description: ResourceNotFoundException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceNotFoundException'
        '402':
          description: ServiceQuotaExceededException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ServiceQuotaExceededException'
        '429':
          description: ThrottlingException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ThrottlingException'
        '400':
          description: ValidationException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationException'
      parameters:
      - name: applicationId
        in: path
        required: true
        schema:
          type: string
        description: The identifier of the Amazon Q Business application connected to the index.
      - name: indexId
        in: path
        required: true
        schema:
          type: string
        description: The identifier of the Amazon Q Business index.
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                displayName:
                  type: string
                  description: The name of the Amazon Q Business index.
                description:
                  type: string
                  description: The description of the Amazon Q Business index.
                capacityConfiguration:
                  $ref: '#/components/schemas/IndexCapacityConfiguration'
                documentAttributeConfigurations:
                  type: array
                  items:
                    $ref: '#/components/schemas/DocumentAttributeConfiguration'
                  description: Configuration information for document metadata or fields. Document metadata are fields or
                    attributes associated with your documents. For example, the company department name associated with each
                    document. For more information, see Understanding document attributes.
      tags:
      - Indices
    delete:
      operationId: DeleteIndex
      summary: Delete Index
      description: Deletes an Amazon Q Business index.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeleteIndexResponse'
        '403':
          description: AccessDeniedException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccessDeniedException'
        '409':
          description: ConflictException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConflictException'
        '500':
          description: InternalServerException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalServerException'
        '404':
          description: ResourceNotFoundException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceNotFoundException'
        '429':
          description: ThrottlingException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ThrottlingException'
        '400':
          description: ValidationException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationException'
      parameters:
      - name: applicationId
        in: path
        required: true
        schema:
          type: string
        description: The identifier of the Amazon Q Business application the Amazon Q Business index is linked to.
      - name: indexId
        in: path
        required: true
        schema:
          type: string
        description: The identifier of the Amazon Q Business index.
      tags:
      - Indices
components:
  securitySchemes:
    sigv4:
      type: apiKey
      in: header
      name: Authorization
      description: AWS Signature Version 4. The Authorization header carries an AWS4-HMAC-SHA256 signature over the canonical
        request, with X-Amz-Date (and X-Amz-Security-Token for temporary credentials). Not a bearer token.
      x-aws-sigv4:
        signingName: qbusiness
  schemas:
    AccessDeniedException:
      type: object
      properties:
        message:
          type: string
      required:
      - message
    ConflictException:
      type: object
      properties:
        message:
          type: string
          description: The message describing a ConflictException.
        resourceId:
          type: string
          description: The identifier of the resource affected.
        resourceType:
          type: string
          description: The type of the resource affected.
      required:
      - message
      - resourceId
      - resourceType
    CreateIndexResponse:
      type: object
      properties:
        indexId:
          type: string
          description: The identifier for the Amazon Q Business index.
        indexArn:
          type: string
          description: The Amazon Resource Name (ARN) of an Amazon Q Business index.
    DeleteIndexResponse:
      type: object
      properties: {}
    DocumentAttributeConfiguration:
      type: object
      properties:
        name:
          type: string
          description: The name of the document attribute.
        type:
          type: string
          enum:
          - STRING
          - STRING_LIST
          - NUMBER
          - DATE
          description: The type of document attribute.
        search:
          type: string
          enum:
          - ENABLED
          - DISABLED
          description: Information about whether the document attribute can be used by an end user to search for information
            on their web experience.
    ErrorDetail:
      type: object
      properties:
        errorMessage:
          type: string
          description: The message explaining the Amazon Q Business request error.
        errorCode:
          type: string
          enum:
          - InternalError
          - InvalidRequest
          - ResourceInactive
          - ResourceNotFound
          description: The code associated with the Amazon Q Business request error.
    GetIndexResponse:
      type: object
      properties:
        applicationId:
          type: string
          description: The identifier of the Amazon Q Business application associated with the index.
        indexId:
          type: string
          description: The identifier of the Amazon Q Business index.
        displayName:
          type: string
          description: The name of the Amazon Q Business index.
        indexArn:
          type: string
          description: The Amazon Resource Name (ARN) of the Amazon Q Business index.
        status:
          type: string
          enum:
          - CREATING
          - ACTIVE
          - DELETING
          - FAILED
          - UPDATING
          description: The current status of the index. When the value is ACTIVE, the index is ready for use. If the Status
            field value is FAILED, the ErrorMessage field contains a message that explains why.
        type:
          type: string
          enum:
          - ENTERPRISE
          - STARTER
          description: The type of index attached to your Amazon Q Business application.
        description:
          type: string
          description: The description for the Amazon Q Business index.
        createdAt:
          type: string
          format: date-time
          description: The Unix timestamp when the Amazon Q Business index was created.
        updatedAt:
          type: string
          format: date-time
          description: The Unix timestamp when the Amazon Q Business index was last updated.
        capacityConfiguration:
          $ref: '#/components/schemas/IndexCapacityConfiguration'
        documentAttributeConfigurations:
          type: array
          items:
            $ref: '#/components/schemas/DocumentAttributeConfiguration'
          description: Configuration information for document attributes or metadata. Document metadata are fields associated
            with your documents. For example, the company department name associated with each document. For more information,
            see Understanding document attributes.
        error:
          $ref: '#/components/schemas/ErrorDetail'
        indexStatistics:
          $ref: '#/components/schemas/IndexStatistics'
    Index:
      type: object
      properties:
        displayName:
          type: string
          description: The name of the index.
        indexId:
          type: string
          description: The identifier for the index.
        createdAt:
          type: string
          format: date-time
          description: The Unix timestamp when the index was created.
        updatedAt:
          type: string
          format: date-time
          description: The Unix timestamp when the index was last updated.
        status:
          type: string
          enum:
          - CREATING
          - ACTIVE
          - DELETING
          - FAILED
          - UPDATING
          description: The current status of the index. When the status is ACTIVE, the index is ready.
    IndexCapacityConfiguration:
      type: object
      properties:
        units:
          type: integer
          description: The number of storage units configured for an Amazon Q Business index.
    IndexStatistics:
      type: object
      properties:
        textDocumentStatistics:
          $ref: '#/components/schemas/TextDocumentStatistics'
    InternalServerException:
      type: object
      properties:
        message:
          type: string
      required:
      - message
    ListIndicesResponse:
      type: object
      properties:
        nextToken:
          type: string
          description: If the response is truncated, Amazon Q Business returns this token that you can use in the subsequent
            request to retrieve the next set of indexes.
        indices:
          type: array
          items:
            $ref: '#/components/schemas/Index'
          description: An array of information on the items in one or more indexes.
    ResourceNotFoundException:
      type: object
      properties:
        message:
          type: string
          description: The message describing a ResourceNotFoundException.
        resourceId:
          type: string
          description: The identifier of the resource affected.
        resourceType:
          type: string
          description: The type of the resource affected.
      required:
      - message
      - resourceId
      - resourceType
    ServiceQuotaExceededException:
      type: object
      properties:
        message:
          type: string
          description: The message describing a ServiceQuotaExceededException.
        resourceId:
          type: string
          description: The identifier of the resource affected.
        resourceType:
          type: string
          description: The type of the resource affected.
      required:
      - message
      - resourceId
      - resourceType
    Tag:
      type: object
      properties:
        key:
          type: string
          description: The key for the tag. Keys are not case sensitive and must be unique for the Amazon Q Business application
            or data source.
        value:
          type: string
          description: The value associated with the tag. The value may be an empty string but it can't be null.
      required:
      - key
      - value
    TextDocumentStatistics:
      type: object
      properties:
        indexedTextBytes:
          type: integer
          description: The total size, in bytes, of the indexed documents.
        indexedTextDocumentCount:
          type: integer
          description: The number of text documents indexed.
    ThrottlingException:
      type: object
      properties:
        message:
          type: string
      required:
      - message
    UpdateIndexResponse:
      type: object
      properties: {}
    ValidationException:
      type: object
      properties:
        message:
          type: string
          description: The message describing the ValidationException.
        reason:
          type: string
          enum:
          - CANNOT_PARSE
          - FIELD_VALIDATION_FAILED
          - UNKNOWN_OPERATION
          description: The reason for the ValidationException.
        fields:
          type: array
          items:
            $ref: '#/components/schemas/ValidationExceptionField'
          description: The input field(s) that failed validation.
      required:
      - message
      - reason
    ValidationExceptionField:
      type: object
      properties:
        name:
          type: string
          description: The field name where the invalid entry was detected.
        message:
          type: string
          description: A message about the validation exception.
      required:
      - name
      - message
x-provenance:
  method: harvested
  publisher: Amazon Web Services
  source: https://raw.githubusercontent.com/aws/api-models-aws/3cd98287b471c106254abd89279cc87308d38bfd/models/qbusiness/service/2023-11-27/qbusiness-2023-11-27.json
  note: converted by smithy-to-openapi.py from AWS's Smithy model (roadmap#1001)