Amazon IoT Core Thing Groups API

The Thing Groups API from Amazon IoT Core — 6 operation(s) for thing groups.

GitHub OpenAPI

Operations 10

PUT /thing-groups/addThingToThingGroup Add Thing To Thing Group #
POST /thing-groups/{thingGroupName} Create Thing Group #
DELETE /thing-groups/{thingGroupName} Delete Thing Group #
GET /thing-groups/{thingGroupName} Describe Thing Group #
PATCH /thing-groups/{thingGroupName} Update Thing Group #
GET /thing-groups List Thing Groups #
GET /things/{thingName}/thing-groups List Thing Groups For Thing #
PUT /thing-groups/removeThingFromThingGroup Remove Thing From Thing Group #
PUT /thing-groups/updateThingGroupsForThing Update Thing Groups For Thing #
GET /thing-groups/{thingGroupName}/things List Things In Thing Group #

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-thing-groups-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-thing-groups-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: AWS IoT Thing Groups API
  version: '2015-05-28'
  description: Generated from AWS's published Smithy model for AWS IoT. 10 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:
  /thing-groups/addThingToThingGroup:
    put:
      operationId: AddThingToThingGroup
      summary: Add Thing To Thing Group
      description: Adds a thing to a thing group. Requires permission to access the AddThingToThingGroup action.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AddThingToThingGroupResponse'
        '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'
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                thingGroupName:
                  type: string
                  description: The name of the group to which you are adding a thing.
                thingGroupArn:
                  type: string
                  description: The ARN of the group to which you are adding a thing.
                thingName:
                  type: string
                  description: The name of the thing to add to a group.
                thingArn:
                  type: string
                  description: The ARN of the thing to add to a group.
                overrideDynamicGroups:
                  type: boolean
                  description: Override dynamic thing groups with static thing groups when 10-group limit is reached. If a
                    thing belongs to 10 thing groups, and one or more of those groups are dynamic thing groups, adding a thing
                    to a static group removes the thing from the last dynamic group.
      tags:
      - Thing Groups
  /thing-groups/{thingGroupName}:
    post:
      operationId: CreateThingGroup
      summary: Create Thing Group
      description: Create a thing group. This is a control plane operation. See Authorization for information about authorizing
        control plane actions. If the ThingGroup that you create has the exact same attributes as an existing ThingGroup,
        you will get a 200 success response. Requires permission to access the CreateThingGroup action.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateThingGroupResponse'
        '500':
          description: InternalFailureException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalFailureException'
        '400':
          description: InvalidRequestException; ThrottlingException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InvalidRequestException'
        '409':
          description: ResourceAlreadyExistsException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceAlreadyExistsException'
      parameters:
      - name: thingGroupName
        in: path
        required: true
        schema:
          type: string
        description: The thing group name to create.
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                parentGroupName:
                  type: string
                  description: The name of the parent thing group.
                thingGroupProperties:
                  $ref: '#/components/schemas/ThingGroupProperties'
                tags:
                  type: array
                  items:
                    $ref: '#/components/schemas/Tag'
                  description: Metadata which can be used to manage the thing group.
      tags:
      - Thing Groups
    delete:
      operationId: DeleteThingGroup
      summary: Delete Thing Group
      description: Deletes a thing group. Requires permission to access the DeleteThingGroup action.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeleteThingGroupResponse'
        '500':
          description: InternalFailureException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalFailureException'
        '400':
          description: InvalidRequestException; ThrottlingException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InvalidRequestException'
        '409':
          description: VersionConflictException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/VersionConflictException'
      parameters:
      - name: thingGroupName
        in: path
        required: true
        schema:
          type: string
        description: The name of the thing group to delete.
      - name: expectedVersion
        in: query
        schema:
          type: integer
        description: The expected version of the thing group to delete.
      tags:
      - Thing Groups
    get:
      operationId: DescribeThingGroup
      summary: Describe Thing Group
      description: Describe a thing group. Requires permission to access the DescribeThingGroup action.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DescribeThingGroupResponse'
        '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'
      parameters:
      - name: thingGroupName
        in: path
        required: true
        schema:
          type: string
        description: The name of the thing group.
      tags:
      - Thing Groups
    patch:
      operationId: UpdateThingGroup
      summary: Update Thing Group
      description: Update a thing group. Requires permission to access the UpdateThingGroup action.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UpdateThingGroupResponse'
        '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'
        '409':
          description: VersionConflictException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/VersionConflictException'
      parameters:
      - name: thingGroupName
        in: path
        required: true
        schema:
          type: string
        description: The thing group to update.
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                thingGroupProperties:
                  $ref: '#/components/schemas/ThingGroupProperties'
                expectedVersion:
                  type: integer
                  description: The expected version of the thing group. If this does not match the version of the thing group
                    being updated, the update will fail.
              required:
              - thingGroupProperties
      tags:
      - Thing Groups
  /thing-groups:
    get:
      operationId: ListThingGroups
      summary: List Thing Groups
      description: List the thing groups in your account. Requires permission to access the ListThingGroups action.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListThingGroupsResponse'
        '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'
      parameters:
      - name: nextToken
        in: query
        schema:
          type: string
        description: To retrieve the next set of results, the nextToken value from a previous response; otherwise null to
          receive the first set of results.
      - name: maxResults
        in: query
        schema:
          type: integer
        description: The maximum number of results to return at one time.
      - name: parentGroup
        in: query
        schema:
          type: string
        description: A filter that limits the results to those with the specified parent group.
      - name: namePrefixFilter
        in: query
        schema:
          type: string
        description: A filter that limits the results to those with the specified name prefix.
      - name: recursive
        in: query
        schema:
          type: boolean
        description: If true, return child groups as well.
      tags:
      - Thing Groups
  /things/{thingName}/thing-groups:
    get:
      operationId: ListThingGroupsForThing
      summary: List Thing Groups For Thing
      description: List the thing groups to which the specified thing belongs. Requires permission to access the ListThingGroupsForThing
        action.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListThingGroupsForThingResponse'
        '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'
      parameters:
      - name: thingName
        in: path
        required: true
        schema:
          type: string
        description: The thing name.
      - name: nextToken
        in: query
        schema:
          type: string
        description: To retrieve the next set of results, the nextToken value from a previous response; otherwise null to
          receive the first set of results.
      - name: maxResults
        in: query
        schema:
          type: integer
        description: The maximum number of results to return at one time.
      tags:
      - Thing Groups
  /thing-groups/removeThingFromThingGroup:
    put:
      operationId: RemoveThingFromThingGroup
      summary: Remove Thing From Thing Group
      description: Remove the specified thing from the specified group. You must specify either a thingGroupArn or a thingGroupName
        to identify the thing group and either a thingArn or a thingName to identify the thing to remove from the thing group.
        Requires permission to access the RemoveThingFromThingGroup action.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RemoveThingFromThingGroupResponse'
        '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'
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                thingGroupName:
                  type: string
                  description: The group name.
                thingGroupArn:
                  type: string
                  description: The group ARN.
                thingName:
                  type: string
                  description: The name of the thing to remove from the group.
                thingArn:
                  type: string
                  description: The ARN of the thing to remove from the group.
      tags:
      - Thing Groups
  /thing-groups/updateThingGroupsForThing:
    put:
      operationId: UpdateThingGroupsForThing
      summary: Update Thing Groups For Thing
      description: Updates the groups to which the thing belongs. Requires permission to access the UpdateThingGroupsForThing
        action.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UpdateThingGroupsForThingResponse'
        '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'
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                thingName:
                  type: string
                  description: The thing whose group memberships will be updated.
                thingGroupsToAdd:
                  type: array
                  items:
                    type: string
                  description: The groups to which the thing will be added.
                thingGroupsToRemove:
                  type: array
                  items:
                    type: string
                  description: The groups from which the thing will be removed.
                overrideDynamicGroups:
                  type: boolean
                  description: Override dynamic thing groups with static thing groups when 10-group limit is reached. If a
                    thing belongs to 10 thing groups, and one or more of those groups are dynamic thing groups, adding a thing
                    to a static group removes the thing from the last dynamic group.
      tags:
      - Thing Groups
  /thing-groups/{thingGroupName}/things:
    get:
      operationId: ListThingsInThingGroup
      summary: List Things In Thing Group
      description: Lists the things in the specified group. Requires permission to access the ListThingsInThingGroup action.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListThingsInThingGroupResponse'
        '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'
      parameters:
      - name: thingGroupName
        in: path
        required: true
        schema:
          type: string
        description: The thing group name.
      - name: recursive
        in: query
        schema:
          type: boolean
        description: When true, list things in this thing group and in all child groups as well.
      - name: nextToken
        in: query
        schema:
          type: string
        description: To retrieve the next set of results, the nextToken value from a previous response; otherwise null to
          receive the first set of results.
      - name: maxResults
        in: query
        schema:
          type: integer
        description: The maximum number of results to return at one time.
      tags:
      - Thing Groups
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:
    AddThingToThingGroupResponse:
      type: object
      properties: {}
    AttributePayload:
      type: object
      properties:
        attributes:
          type: object
          additionalProperties:
            type: string
          description: 'A JSON string containing up to three key-value pair in JSON format. For example: {\"attributes\":{\"string1\":\"string2\"}}'
        merge:
          type: boolean
          description: Specifies whether the list of attributes provided in the AttributePayload is merged with the attributes
            stored in the registry, instead of overwriting them. To remove an attribute, call UpdateThing with an empty attribute
            value. The merge attribute is only valid when calling UpdateThing or UpdateThingGroup.
    CreateThingGroupResponse:
      type: object
      properties:
        thingGroupName:
          type: string
          description: The thing group name.
        thingGroupArn:
          type: string
          description: The thing group ARN.
        thingGroupId:
          type: string
          description: The thing group ID.
    DeleteThingGroupResponse:
      type: object
      properties: {}
    DescribeThingGroupResponse:
      type: object
      properties:
        thingGroupName:
          type: string
          description: The name of the thing group.
        thingGroupId:
          type: string
          description: The thing group ID.
        thingGroupArn:
          type: string
          description: The thing group ARN.
        version:
          type: integer
          description: The version of the thing group.
        thingGroupProperties:
          $ref: '#/components/schemas/ThingGroupProperties'
        thingGroupMetadata:
          $ref: '#/components/schemas/ThingGroupMetadata'
        indexName:
          type: string
          description: The dynamic thing group index name.
        queryString:
          type: string
          description: The dynamic thing group search query string.
        queryVersion:
          type: string
          description: The dynamic thing group query version.
        status:
          type: string
          enum:
          - ACTIVE
          - BUILDING
          - REBUILDING
          description: The dynamic thing group status.
    GroupNameAndArn:
      type: object
      properties:
        groupName:
          type: string
          description: The group name.
        groupArn:
          type: string
          description: The group ARN.
    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.
    ListThingGroupsForThingResponse:
      type: object
      properties:
        thingGroups:
          type: array
          items:
            $ref: '#/components/schemas/GroupNameAndArn'
          description: The thing groups.
        nextToken:
          type: string
          description: The token to use to get the next set of results, or null if there are no additional results.
    ListThingGroupsResponse:
      type: object
      properties:
        thingGroups:
          type: array
          items:
            $ref: '#/components/schemas/GroupNameAndArn'
          description: The thing groups.
        nextToken:
          type: string
          description: The token to use to get the next set of results. Will not be returned if operation has returned all
            results.
    ListThingsInThingGroupResponse:
      type: object
      properties:
        things:
          type: array
          items:
            type: string
          description: The things in the specified thing group.
        nextToken:
          type: string
          description: The token to use to get the next set of results, or null if there are no additional results.
    RemoveThingFromThingGroupResponse:
      type: object
      properties: {}
    ResourceAlreadyExistsException:
      type: object
      properties:
        message:
          type: string
          description: The message for the exception.
        resourceId:
          type: string
          description: The ID of the resource that caused the exception.
        resourceArn:
          type: string
          description: The ARN of the resource that caused the exception.
    ResourceNotFoundException:
      type: object
      properties:
        message:
          type: string
          description: The message for the exception.
    Tag:
      type: object
      properties:
        Key:
          type: string
          description: The tag's key.
        Value:
          type: string
          description: The tag's value.
      required:
      - Key
    ThingGroupMetadata:
      type: object
      properties:
        parentGroupName:
          type: string
          description: The parent thing group name.
        rootToParentThingGroups:
          type: array
          items:
            $ref: '#/components/schemas/GroupNameAndArn'
          description: The root parent thing group.
        creationDate:
          type: string
          format: date-time
          description: The UNIX timestamp of when the thing group was created.
    ThingGroupProperties:
      type: object
      properties:
        thingGroupDescription:
          type: string
          description: The thing group description.
        attributePayload:
          $ref: '#/components/schemas/AttributePayload'
    UpdateThingGroupResponse:
      type: object
      properties:
        version:
          type: integer
          description: The version of the updated thing group.
    UpdateThingGroupsForThingResponse:
      type: object
      properties: {}
    VersionConflictException:
      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)