Amazon IoT Core Detect API

The Detect API from Amazon IoT Core — 4 operation(s) for detect.

GitHub OpenAPI
Business capability
Threat Detection & Response Management BC-620.30

Operations 5

GET /detect/mitigationactions/tasks/{taskId} Describe Detect Mitigation Actions Task #
PUT /detect/mitigationactions/tasks/{taskId} Start Detect Mitigation Actions Task #
GET /detect/mitigationactions/executions List Detect Mitigation Actions Executions #
GET /detect/mitigationactions/tasks List Detect Mitigation Actions Tasks #
PUT /detect/mitigationactions/tasks/{taskId}/cancel Cancel Detect Mitigation Actions Task #

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-detect-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-detect-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: AWS IoT Detect API
  version: '2015-05-28'
  description: Generated from AWS's published Smithy model for AWS IoT. 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://iot.{region}.amazonaws.com
  variables:
    region:
      default: us-east-1
security:
- sigv4: []
paths:
  /detect/mitigationactions/tasks/{taskId}:
    get:
      operationId: DescribeDetectMitigationActionsTask
      summary: Describe Detect Mitigation Actions Task
      description: The IoT Device Defender detect feature will no longer be available to new customers starting August 31,
        2026. If you would like to use the detect feature, sign up prior to August 31, 2026. To learn about alternatives to
        IoT Device Defender detect, see IoT Device Defender detect feature availability change in the IoT Device Defender
        Developer Guide. There is no change to IoT Device Defender audit availability. Gets information about a Device Defender
        ML Detect mitigation action. Requires permission to access the DescribeDetectMitigationActionsTask action.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DescribeDetectMitigationActionsTaskResponse'
        '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: taskId
        in: path
        required: true
        schema:
          type: string
        description: The unique identifier of the task.
      tags:
      - Detect
    put:
      operationId: StartDetectMitigationActionsTask
      summary: Start Detect Mitigation Actions Task
      description: The IoT Device Defender detect feature will no longer be available to new customers starting August 31,
        2026. If you would like to use the detect feature, sign up prior to August 31, 2026. To learn about alternatives to
        IoT Device Defender detect, see IoT Device Defender detect feature availability change in the IoT Device Defender
        Developer Guide. There is no change to IoT Device Defender audit availability. Starts a Device Defender ML Detect
        mitigation actions task. Requires permission to access the StartDetectMitigationActionsTask action.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StartDetectMitigationActionsTaskResponse'
        '500':
          description: InternalFailureException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalFailureException'
        '400':
          description: InvalidRequestException; TaskAlreadyExistsException; ThrottlingException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InvalidRequestException'
        '410':
          description: LimitExceededException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LimitExceededException'
      parameters:
      - name: taskId
        in: path
        required: true
        schema:
          type: string
        description: The unique identifier of the task.
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                target:
                  $ref: '#/components/schemas/DetectMitigationActionsTaskTarget'
                actions:
                  type: array
                  items:
                    type: string
                  description: The actions to be performed when a device has unexpected behavior.
                violationEventOccurrenceRange:
                  $ref: '#/components/schemas/ViolationEventOccurrenceRange'
                includeOnlyActiveViolations:
                  type: boolean
                  description: Specifies to list only active violations.
                includeSuppressedAlerts:
                  type: boolean
                  description: Specifies to include suppressed alerts.
                clientRequestToken:
                  type: string
                  description: Each mitigation action task must have a unique client request token. If you try to create a
                    new task with the same token as a task that already exists, an exception occurs. If you omit this value,
                    Amazon Web Services SDKs will automatically generate a unique client request.
              required:
              - target
              - actions
              - clientRequestToken
      tags:
      - Detect
  /detect/mitigationactions/executions:
    get:
      operationId: ListDetectMitigationActionsExecutions
      summary: List Detect Mitigation Actions Executions
      description: The IoT Device Defender detect feature will no longer be available to new customers starting August 31,
        2026. If you would like to use the detect feature, sign up prior to August 31, 2026. To learn about alternatives to
        IoT Device Defender detect, see IoT Device Defender detect feature availability change in the IoT Device Defender
        Developer Guide. There is no change to IoT Device Defender audit availability. Lists mitigation actions executions
        for a Device Defender ML Detect Security Profile. Requires permission to access the ListDetectMitigationActionsExecutions
        action.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListDetectMitigationActionsExecutionsResponse'
        '500':
          description: InternalFailureException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalFailureException'
        '400':
          description: InvalidRequestException; ThrottlingException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InvalidRequestException'
      parameters:
      - name: taskId
        in: query
        schema:
          type: string
        description: The unique identifier of the task.
      - name: violationId
        in: query
        schema:
          type: string
        description: The unique identifier of the violation.
      - name: thingName
        in: query
        schema:
          type: string
        description: The name of the thing whose mitigation actions are listed.
      - name: startTime
        in: query
        schema:
          type: string
          format: date-time
        description: A filter to limit results to those found after the specified time. You must specify either the startTime
          and endTime or the taskId, but not both.
      - name: endTime
        in: query
        schema:
          type: string
          format: date-time
        description: The end of the time period for which ML Detect mitigation actions executions are returned.
      - name: maxResults
        in: query
        schema:
          type: integer
        description: The maximum number of results to return at one time. The default is 25.
      - name: nextToken
        in: query
        schema:
          type: string
        description: The token for the next set of results.
      tags:
      - Detect
  /detect/mitigationactions/tasks:
    get:
      operationId: ListDetectMitigationActionsTasks
      summary: List Detect Mitigation Actions Tasks
      description: The IoT Device Defender detect feature will no longer be available to new customers starting August 31,
        2026. If you would like to use the detect feature, sign up prior to August 31, 2026. To learn about alternatives to
        IoT Device Defender detect, see IoT Device Defender detect feature availability change in the IoT Device Defender
        Developer Guide. There is no change to IoT Device Defender audit availability. List of Device Defender ML Detect mitigation
        actions tasks. Requires permission to access the ListDetectMitigationActionsTasks action.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListDetectMitigationActionsTasksResponse'
        '500':
          description: InternalFailureException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalFailureException'
        '400':
          description: InvalidRequestException; ThrottlingException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InvalidRequestException'
      parameters:
      - name: maxResults
        in: query
        schema:
          type: integer
        description: The maximum number of results to return at one time. The default is 25.
      - name: nextToken
        in: query
        schema:
          type: string
        description: The token for the next set of results.
      - name: startTime
        in: query
        required: true
        schema:
          type: string
          format: date-time
        description: A filter to limit results to those found after the specified time. You must specify either the startTime
          and endTime or the taskId, but not both.
      - name: endTime
        in: query
        required: true
        schema:
          type: string
          format: date-time
        description: The end of the time period for which ML Detect mitigation actions tasks are returned.
      tags:
      - Detect
  /detect/mitigationactions/tasks/{taskId}/cancel:
    put:
      operationId: CancelDetectMitigationActionsTask
      summary: Cancel Detect Mitigation Actions Task
      description: The IoT Device Defender detect feature will no longer be available to new customers starting August 31,
        2026. If you would like to use the detect feature, sign up prior to August 31, 2026. To learn about alternatives to
        IoT Device Defender detect, see IoT Device Defender detect feature availability change in the IoT Device Defender
        Developer Guide. There is no change to IoT Device Defender audit availability. Cancels a Device Defender ML Detect
        mitigation action. Requires permission to access the CancelDetectMitigationActionsTask action.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CancelDetectMitigationActionsTaskResponse'
        '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: taskId
        in: path
        required: true
        schema:
          type: string
        description: The unique identifier of the task.
      tags:
      - Detect
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:
    AddThingsToThingGroupParams:
      type: object
      properties:
        thingGroupNames:
          type: array
          items:
            type: string
          description: The list of groups to which you want to add the things that triggered the mitigation action. You can
            add a thing to a maximum of 10 groups, but you can't add a thing to more than one group in the same hierarchy.
        overrideDynamicGroups:
          type: boolean
          description: Specifies if this mitigation action can move the things that triggered the mitigation action even if
            they are part of one or more dynamic thing groups.
      required:
      - thingGroupNames
    CancelDetectMitigationActionsTaskResponse:
      type: object
      properties: {}
    DescribeDetectMitigationActionsTaskResponse:
      type: object
      properties:
        taskSummary:
          $ref: '#/components/schemas/DetectMitigationActionsTaskSummary'
    DetectMitigationActionExecution:
      type: object
      properties:
        taskId:
          type: string
          description: The unique identifier of the task.
        violationId:
          type: string
          description: The unique identifier of the violation.
        actionName:
          type: string
          description: The friendly name that uniquely identifies the mitigation action.
        thingName:
          type: string
          description: The name of the thing.
        executionStartDate:
          type: string
          format: date-time
          description: The date a mitigation action was started.
        executionEndDate:
          type: string
          format: date-time
          description: The date a mitigation action ended.
        status:
          type: string
          enum:
          - IN_PROGRESS
          - SUCCESSFUL
          - FAILED
          - SKIPPED
          description: The status of a mitigation action.
        errorCode:
          type: string
          description: The error code of a mitigation action.
        message:
          type: string
          description: The message of a mitigation action.
    DetectMitigationActionsTaskStatistics:
      type: object
      properties:
        actionsExecuted:
          type: integer
          description: The actions that were performed.
        actionsSkipped:
          type: integer
          description: The actions that were skipped.
        actionsFailed:
          type: integer
          description: The actions that failed.
    DetectMitigationActionsTaskSummary:
      type: object
      properties:
        taskId:
          type: string
          description: The unique identifier of the task.
        taskStatus:
          type: string
          enum:
          - IN_PROGRESS
          - SUCCESSFUL
          - FAILED
          - CANCELED
          description: The status of the task.
        taskStartTime:
          type: string
          format: date-time
          description: The date the task started.
        taskEndTime:
          type: string
          format: date-time
          description: The date the task ended.
        target:
          $ref: '#/components/schemas/DetectMitigationActionsTaskTarget'
        violationEventOccurrenceRange:
          $ref: '#/components/schemas/ViolationEventOccurrenceRange'
        onlyActiveViolationsIncluded:
          type: boolean
          description: Includes only active violations.
        suppressedAlertsIncluded:
          type: boolean
          description: Includes suppressed alerts.
        actionsDefinition:
          type: array
          items:
            $ref: '#/components/schemas/MitigationAction'
          description: The definition of the actions.
        taskStatistics:
          $ref: '#/components/schemas/DetectMitigationActionsTaskStatistics'
    DetectMitigationActionsTaskTarget:
      type: object
      properties:
        violationIds:
          type: array
          items:
            type: string
          description: The unique identifiers of the violations.
        securityProfileName:
          type: string
          description: The name of the security profile.
        behaviorName:
          type: string
          description: The name of the behavior.
    EnableIoTLoggingParams:
      type: object
      properties:
        roleArnForLogging:
          type: string
          description: The Amazon Resource Name (ARN) of the IAM role used for logging.
        logLevel:
          type: string
          enum:
          - DEBUG
          - INFO
          - ERROR
          - WARN
          - DISABLED
          description: Specifies the type of information to be logged.
      required:
      - roleArnForLogging
      - logLevel
    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.
    LimitExceededException:
      type: object
      properties:
        message:
          type: string
          description: The message for the exception.
    ListDetectMitigationActionsExecutionsResponse:
      type: object
      properties:
        actionsExecutions:
          type: array
          items:
            $ref: '#/components/schemas/DetectMitigationActionExecution'
          description: List of actions executions.
        nextToken:
          type: string
          description: A token that can be used to retrieve the next set of results, or null if there are no additional results.
    ListDetectMitigationActionsTasksResponse:
      type: object
      properties:
        tasks:
          type: array
          items:
            $ref: '#/components/schemas/DetectMitigationActionsTaskSummary'
          description: The collection of ML Detect mitigation tasks that matched the filter criteria.
        nextToken:
          type: string
          description: A token that can be used to retrieve the next set of results, or null if there are no additional results.
    MitigationAction:
      type: object
      properties:
        name:
          type: string
          description: A user-friendly name for the mitigation action.
        id:
          type: string
          description: A unique identifier for the mitigation action.
        roleArn:
          type: string
          description: The IAM role ARN used to apply this mitigation action.
        actionParams:
          $ref: '#/components/schemas/MitigationActionParams'
    MitigationActionParams:
      type: object
      properties:
        updateDeviceCertificateParams:
          $ref: '#/components/schemas/UpdateDeviceCertificateParams'
        updateCACertificateParams:
          $ref: '#/components/schemas/UpdateCACertificateParams'
        addThingsToThingGroupParams:
          $ref: '#/components/schemas/AddThingsToThingGroupParams'
        replaceDefaultPolicyVersionParams:
          $ref: '#/components/schemas/ReplaceDefaultPolicyVersionParams'
        enableIoTLoggingParams:
          $ref: '#/components/schemas/EnableIoTLoggingParams'
        publishFindingToSnsParams:
          $ref: '#/components/schemas/PublishFindingToSnsParams'
    PublishFindingToSnsParams:
      type: object
      properties:
        topicArn:
          type: string
          description: The ARN of the topic to which you want to publish the findings.
      required:
      - topicArn
    ReplaceDefaultPolicyVersionParams:
      type: object
      properties:
        templateName:
          type: string
          enum:
          - BLANK_POLICY
          description: The name of the template to be applied. The only supported value is BLANK_POLICY.
      required:
      - templateName
    ResourceNotFoundException:
      type: object
      properties:
        message:
          type: string
          description: The message for the exception.
    StartDetectMitigationActionsTaskResponse:
      type: object
      properties:
        taskId:
          type: string
          description: The unique identifier of the task.
    UpdateCACertificateParams:
      type: object
      properties:
        action:
          type: string
          enum:
          - DEACTIVATE
          description: The action that you want to apply to the CA certificate. The only supported value is DEACTIVATE.
      required:
      - action
    UpdateDeviceCertificateParams:
      type: object
      properties:
        action:
          type: string
          enum:
          - DEACTIVATE
          description: The action that you want to apply to the device certificate. The only supported value is DEACTIVATE.
      required:
      - action
    ViolationEventOccurrenceRange:
      type: object
      properties:
        startTime:
          type: string
          format: date-time
          description: The start date and time of a time period in which violation events occurred.
        endTime:
          type: string
          format: date-time
          description: The end date and time of a time period in which violation events occurred.
      required:
      - startTime
      - endTime
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)