---
title: "POST /CreateAnomalyDetector"
method: POST
path: "/CreateAnomalyDetector"
---

# POST /CreateAnomalyDetector

`POST /CreateAnomalyDetector`

Creates an anomaly detector.

## Request body

- object
  - `AnomalyDetectorName` string, required — The name of the detector.
  - `AnomalyDetectorDescription` string — A description of the detector.
  - `AnomalyDetectorConfig` object, required — Contains information about a detector's configuration.
    - `AnomalyDetectorFrequency` 'P1D' | 'PT1H' | 'PT10M' | 'PT5M' — The frequency at which the detector analyzes its source data.
  - `KmsKeyArn` string — The ARN of the KMS key to use to encrypt your data.
  - `Tags` object — A list of <a href="https://docs.aws.amazon.com/lookoutmetrics/latest/dev/detectors-tags.html">tags</a> to apply to the anomaly detector.

## Response `200`

Success

- CreateAnomalyDetectorResponse
  - `AnomalyDetectorArn` string — The ARN of the detector.

## Other responses

- `480` — ConflictException
- `481` — ValidationException
- `482` — ServiceQuotaExceededException
- `483` — ConflictException
- `484` — AccessDeniedException
- `485` — TooManyRequestsException
- `486` — InternalServerException

---

[API](https://skmtc.net/aws/apis/lookoutmetrics.md) · [All operations](https://skmtc.net/aws/apis/lookoutmetrics/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aws/lookoutmetrics/versions/aace1e573660/schema)
