Amazon IoT Core Indices API

The Indices API from Amazon IoT Core — 7 operation(s) for indices.

GitHub OpenAPI

Operations 7

GET /indices/{indexName} Describe Index #
POST /indices/buckets Get Buckets Aggregation #
POST /indices/cardinality Get Cardinality #
POST /indices/percentiles Get Percentiles #
POST /indices/statistics Get Statistics #
GET /indices List Indices #
POST /indices/search Search Index #

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-iot-core:amazon-iot-core-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-iot-core-indices-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: AWS IoT Indices API
  version: '2015-05-28'
  description: Generated from AWS's published Smithy model for AWS IoT. 7 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://iot.{region}.amazonaws.com
  variables:
    region:
      default: us-east-1
security:
- sigv4: []
paths:
  /indices/{indexName}:
    get:
      operationId: DescribeIndex
      summary: Describe Index
      description: Describes a search index. Requires permission to access the DescribeIndex action.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DescribeIndexResponse'
        '500':
          description: InternalFailureException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalFailureException'
        '400':
          description: InvalidRequestException; ThrottlingException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InvalidRequestException'
        '404':
          description: ResourceNotFoundException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceNotFoundException'
        '503':
          description: ServiceUnavailableException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ServiceUnavailableException'
        '401':
          description: UnauthorizedException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UnauthorizedException'
      parameters:
      - name: indexName
        in: path
        required: true
        schema:
          type: string
        description: The index name.
      tags:
      - Indices
  /indices/buckets:
    post:
      operationId: GetBucketsAggregation
      summary: Get Buckets Aggregation
      description: Aggregates on indexed data with search queries pertaining to particular fields. Requires permission to
        access the GetBucketsAggregation action.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetBucketsAggregationResponse'
        '400':
          description: IndexNotReadyException; InvalidAggregationException; InvalidQueryException; InvalidRequestException;
            ThrottlingException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IndexNotReadyException'
        '500':
          description: InternalFailureException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalFailureException'
        '404':
          description: ResourceNotFoundException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceNotFoundException'
        '503':
          description: ServiceUnavailableException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ServiceUnavailableException'
        '401':
          description: UnauthorizedException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UnauthorizedException'
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                indexName:
                  type: string
                  description: The name of the index to search.
                queryString:
                  type: string
                  description: The search query string.
                aggregationField:
                  type: string
                  description: The aggregation field.
                queryVersion:
                  type: string
                  description: The version of the query.
                bucketsAggregationType:
                  $ref: '#/components/schemas/BucketsAggregationType'
              required:
              - queryString
              - aggregationField
              - bucketsAggregationType
      tags:
      - Indices
  /indices/cardinality:
    post:
      operationId: GetCardinality
      summary: Get Cardinality
      description: Returns the approximate count of unique values that match the query. Requires permission to access the
        GetCardinality action.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetCardinalityResponse'
        '400':
          description: IndexNotReadyException; InvalidAggregationException; InvalidQueryException; InvalidRequestException;
            ThrottlingException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IndexNotReadyException'
        '500':
          description: InternalFailureException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalFailureException'
        '404':
          description: ResourceNotFoundException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceNotFoundException'
        '503':
          description: ServiceUnavailableException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ServiceUnavailableException'
        '401':
          description: UnauthorizedException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UnauthorizedException'
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                indexName:
                  type: string
                  description: The name of the index to search.
                queryString:
                  type: string
                  description: The search query string.
                aggregationField:
                  type: string
                  description: The field to aggregate.
                queryVersion:
                  type: string
                  description: The query version.
              required:
              - queryString
      tags:
      - Indices
  /indices/percentiles:
    post:
      operationId: GetPercentiles
      summary: Get Percentiles
      description: 'Groups the aggregated values that match the query into percentile groupings. The default percentile groupings
        are: 1,5,25,50,75,95,99, although you can specify your own when you call GetPercentiles. This function returns a value
        for each percentile group specified (or the default percentile groupings). The percentile group "1" contains the aggregated
        field value that occurs in approximately one percent of the values that match the query. The percentile group "5"
        contains the aggregated field value that occurs in approximately five percent of the values that match the query,
        and so on. The result is an approximation, the more values that match the query, the more accurate the percentile
        values. Requires permission to access the GetPercentiles action.'
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetPercentilesResponse'
        '400':
          description: IndexNotReadyException; InvalidAggregationException; InvalidQueryException; InvalidRequestException;
            ThrottlingException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IndexNotReadyException'
        '500':
          description: InternalFailureException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalFailureException'
        '404':
          description: ResourceNotFoundException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceNotFoundException'
        '503':
          description: ServiceUnavailableException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ServiceUnavailableException'
        '401':
          description: UnauthorizedException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UnauthorizedException'
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                indexName:
                  type: string
                  description: The name of the index to search.
                queryString:
                  type: string
                  description: The search query string.
                aggregationField:
                  type: string
                  description: The field to aggregate.
                queryVersion:
                  type: string
                  description: The query version.
                percents:
                  type: array
                  items:
                    type: number
                  description: The percentile groups returned.
              required:
              - queryString
      tags:
      - Indices
  /indices/statistics:
    post:
      operationId: GetStatistics
      summary: Get Statistics
      description: Returns the count, average, sum, minimum, maximum, sum of squares, variance, and standard deviation for
        the specified aggregated field. If the aggregation field is of type String, only the count statistic is returned.
        Requires permission to access the GetStatistics action.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetStatisticsResponse'
        '400':
          description: IndexNotReadyException; InvalidAggregationException; InvalidQueryException; InvalidRequestException;
            ThrottlingException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IndexNotReadyException'
        '500':
          description: InternalFailureException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalFailureException'
        '404':
          description: ResourceNotFoundException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceNotFoundException'
        '503':
          description: ServiceUnavailableException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ServiceUnavailableException'
        '401':
          description: UnauthorizedException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UnauthorizedException'
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                indexName:
                  type: string
                  description: The name of the index to search. The default value is AWS_Things.
                queryString:
                  type: string
                  description: The query used to search. You can specify "*" for the query string to get the count of all
                    indexed things in your Amazon Web Services account.
                aggregationField:
                  type: string
                  description: The aggregation field name.
                queryVersion:
                  type: string
                  description: The version of the query used to search.
              required:
              - queryString
      tags:
      - Indices
  /indices:
    get:
      operationId: ListIndices
      summary: List Indices
      description: Lists the search indices. Requires permission to access the ListIndices action.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListIndicesResponse'
        '500':
          description: InternalFailureException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalFailureException'
        '400':
          description: InvalidRequestException; ThrottlingException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InvalidRequestException'
        '503':
          description: ServiceUnavailableException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ServiceUnavailableException'
        '401':
          description: UnauthorizedException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UnauthorizedException'
      parameters:
      - name: nextToken
        in: query
        schema:
          type: string
        description: The token used to get the next set of results, or null if there are no additional results.
      - name: maxResults
        in: query
        schema:
          type: integer
        description: The maximum number of results to return at one time.
      tags:
      - Indices
  /indices/search:
    post:
      operationId: SearchIndex
      summary: Search Index
      description: Searches the specified index. If a device has never connected to IoT Core or was disconnected for more
        than 1 hour before fleet indexing's thingConnectivityIndexingMode was enabled, the connectivity object for this device
        in the response will have the connected field set to false with no additional session details. Requires permission
        to access the SearchIndex action.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SearchIndexResponse'
        '400':
          description: IndexNotReadyException; InvalidQueryException; InvalidRequestException; ThrottlingException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IndexNotReadyException'
        '500':
          description: InternalFailureException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalFailureException'
        '404':
          description: ResourceNotFoundException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceNotFoundException'
        '503':
          description: ServiceUnavailableException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ServiceUnavailableException'
        '401':
          description: UnauthorizedException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UnauthorizedException'
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                indexName:
                  type: string
                  description: The search index name.
                queryString:
                  type: string
                  description: The search query string. For more information about the search query syntax, see Query syntax.
                nextToken:
                  type: string
                  description: The token used to get the next set of results, or null if there are no additional results.
                maxResults:
                  type: integer
                  description: The maximum number of results to return per page at one time. This maximum number cannot exceed
                    100. The response might contain fewer results but will never contain more. You can use nextToken to retrieve
                    the next set of results until nextToken returns NULL.
                queryVersion:
                  type: string
                  description: The query version.
              required:
              - queryString
      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: iot
  schemas:
    Bucket:
      type: object
      properties:
        keyValue:
          type: string
          description: The value counted for the particular bucket.
        count:
          type: integer
          description: The number of documents that have the value counted for the particular bucket.
    BucketsAggregationType:
      type: object
      properties:
        termsAggregation:
          $ref: '#/components/schemas/TermsAggregation'
    DescribeIndexResponse:
      type: object
      properties:
        indexName:
          type: string
          description: The index name.
        indexStatus:
          type: string
          enum:
          - ACTIVE
          - BUILDING
          - REBUILDING
          description: The index status.
        schema:
          type: string
          description: 'Contains a value that specifies the type of indexing performed. Valid values are: REGISTRY – Your
            thing index contains only registry data. REGISTRY_AND_SHADOW - Your thing index contains registry data and shadow
            data. REGISTRY_AND_CONNECTIVITY_STATUS - Your thing index contains registry data and thing connectivity status
            data. REGISTRY_AND_SHADOW_AND_CONNECTIVITY_STATUS - Your thing index contains registry data, shadow data, and
            thing connectivity status data. MULTI_INDEXING_MODE - Your thing index contains multiple data sources. For more
            information, see GetIndexingConfiguration.'
    GetBucketsAggregationResponse:
      type: object
      properties:
        totalCount:
          type: integer
          description: The total number of things that fit the query string criteria.
        buckets:
          type: array
          items:
            $ref: '#/components/schemas/Bucket'
          description: 'The main part of the response with a list of buckets. Each bucket contains a keyValue and a count.
            keyValue: The aggregation field value counted for the particular bucket. count: The number of documents that have
            that value.'
    GetCardinalityResponse:
      type: object
      properties:
        cardinality:
          type: integer
          description: The approximate count of unique values that match the query.
    GetPercentilesResponse:
      type: object
      properties:
        percentiles:
          type: array
          items:
            $ref: '#/components/schemas/PercentPair'
          description: The percentile values of the aggregated fields.
    GetStatisticsResponse:
      type: object
      properties:
        statistics:
          $ref: '#/components/schemas/Statistics'
    IndexNotReadyException:
      type: object
      properties:
        message:
          type: string
          description: The message for the exception.
    InternalFailureException:
      type: object
      properties:
        message:
          type: string
          description: The message for the exception.
    InvalidRequestException:
      type: object
      properties:
        message:
          type: string
          description: The message for the exception.
    ListIndicesResponse:
      type: object
      properties:
        indexNames:
          type: array
          items:
            type: string
          description: The index names.
        nextToken:
          type: string
          description: The token used to get the next set of results, or null if there are no additional results.
    PercentPair:
      type: object
      properties:
        percent:
          type: number
          description: The percentile.
        value:
          type: number
          description: The value of the percentile.
    ResourceNotFoundException:
      type: object
      properties:
        message:
          type: string
          description: The message for the exception.
    SearchIndexResponse:
      type: object
      properties:
        nextToken:
          type: string
          description: The token used to get the next set of results, or null if there are no additional results.
        things:
          type: array
          items:
            $ref: '#/components/schemas/ThingDocument'
          description: The things that match the search query.
        thingGroups:
          type: array
          items:
            $ref: '#/components/schemas/ThingGroupDocument'
          description: The thing groups that match the search query.
    ServiceUnavailableException:
      type: object
      properties:
        message:
          type: string
          description: The message for the exception.
    Statistics:
      type: object
      properties:
        count:
          type: integer
          description: The count of things that match the query string criteria and contain a valid aggregation field value.
        average:
          type: number
          description: The average of the aggregated field values.
        sum:
          type: number
          description: The sum of the aggregated field values.
        minimum:
          type: number
          description: The minimum aggregated field value.
        maximum:
          type: number
          description: The maximum aggregated field value.
        sumOfSquares:
          type: number
          description: The sum of the squares of the aggregated field values.
        variance:
          type: number
          description: The variance of the aggregated field values.
        stdDeviation:
          type: number
          description: The standard deviation of the aggregated field values.
    TermsAggregation:
      type: object
      properties:
        maxBuckets:
          type: integer
          description: The number of buckets to return in the response. Default to 10.
    ThingConnectivity:
      type: object
      properties:
        connected:
          type: boolean
          description: True if the thing is connected to the Amazon Web Services IoT Core service; false if it is not connected.
        timestamp:
          type: integer
          description: The epoch time (in milliseconds) when the thing last connected or disconnected.
        disconnectReason:
          type: string
          description: The reason that the client is disconnected.
        keepAliveDuration:
          type: integer
          description: The keep-alive interval in seconds that the client specified when establishing the connection.
        cleanSession:
          type: boolean
          description: Indicates whether the client is using a clean session. Returns true for clean sessions.
        sessionExpiry:
          type: integer
          description: The session expiry interval in seconds for the MQTT client connection. This value indicates how long
            the session will remain active after the client disconnects.
        clientId:
          type: string
          description: The unique identifier of the MQTT client.
    ThingDocument:
      type: object
      properties:
        thingName:
          type: string
          description: The thing name.
        thingId:
          type: string
          description: The thing ID.
        thingTypeName:
          type: string
          description: The thing type name.
        thingGroupNames:
          type: array
          items:
            type: string
          description: Thing group and billing group names.
        attributes:
          type: object
          additionalProperties:
            type: string
          description: The attributes.
        shadow:
          type: string
          description: The unnamed shadow and named shadow. For more information about shadows, see IoT Device Shadow service.
        deviceDefender:
          type: string
          description: Contains Device Defender data. For more information about Device Defender, see Device Defender.
        connectivity:
          $ref: '#/components/schemas/ThingConnectivity'
    ThingGroupDocument:
      type: object
      properties:
        thingGroupName:
          type: string
          description: The thing group name.
        thingGroupId:
          type: string
          description: The thing group ID.
        thingGroupDescription:
          type: string
          description: The thing group description.
        attributes:
          type: object
          additionalProperties:
            type: string
          description: The thing group attributes.
        parentGroupNames:
          type: array
          items:
            type: string
          description: Parent group names.
    UnauthorizedException:
      type: object
      properties:
        message:
          type: string
          description: The message for the exception.
x-provenance:
  method: harvested
  publisher: Amazon Web Services
  source: https://raw.githubusercontent.com/aws/api-models-aws/3cd98287b471c106254abd89279cc87308d38bfd/models/iot/service/2015-05-28/iot-2015-05-28.json
  note: converted by smithy-to-openapi.py from AWS's Smithy model (roadmap#1001)