---
updatedAt: 2026-08-10T15:38:51.000Z
agentTools:
  projectIndex: https://developer.doit.com/llms.txt
---

# Anomalies API

Cloud cost anomaly detection provides seamless end-to-end monitoring of spikes in your cloud billing across all your projects and services. See [cost anomalies](https://help.doit.com/docs/governance/cloud-anomalies) for more information.

The Anomalies API enables you to programmatically retrieve cloud cost or usage anomalies for Google Cloud, Amazon Web Services, and Microsoft Azure.

<Callout icon="📘" theme="info">
  ### Required Permissions

  Cloud Analytics User
</Callout>

Anomalies API has the following methods:

## anomalies.list

The **[anomalies.list](https://developer.doit.com/reference/listanomalies)** method provides a list of all anomalies available for your cloud platforms.

You can filter the list by using one or more of the following parameters:

<Table align={["left","left"]}>
  <thead>
    <tr>
      <th>
        Parameter
      </th>

      <th>
        Description
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `minCreationTime`
      </td>

      <td>
        `string`<br />Min value for a time of an anomaly, in milliseconds since the POSIX epoch. If set, only anomalies happened after or at this timestamp are returned.
      </td>
    </tr>

    <tr>
      <td>
        `maxCreationTime`
      </td>

      <td>
        `string`<br />Max value for a time of an anomaly time, in milliseconds since the POSIX epoch. If set, only anomalies happened before or at this timestamp are returned.
      </td>
    </tr>

    <tr>
      <td>
        `filter`
      </td>

      <td>
        `string`<br />An expression for filtering the results of the request. The syntax is `key:[<value>]`. For example, the `platforms:google-cloud` will filter the list to only Google Cloud anomalies.

        Supported filter keys:

        - `platform` - `google-cloud`, `amazon-web-services`, or `platform:microsoft-azure` [Learn more](https://developer.doit.com/docs/filters) about how to use filter \*.list requests
      </td>
    </tr>
  </tbody>
</Table>

Sample **anomalies.list** Request using both `minCreationTime` and `filter` parameters:

```shell anomalies.list sample request
curl --request GET \
     --url 'https://api.doit.com/anomalies/v1?maxResults=3&includeNotifications=false' \
     --header 'Authorization: Bearer {YOUR_API_KEY}' \
     --header 'accept: application/json'
```

> 📘 YOUR\_API\_KEY
>
> Replace "YOUR\_API\_KEY" with your actual API key as explained at [Get Started](https://developer.doit.com/docs/getting-started)

Sample **anomalies.list** Response:

```json anomalies.list response
{
  "pageToken": "NTNiMzUwODEtZmE3MC00NzA1LWE1MGYtMzMwMzg0MjQ4MDhi",
  "rowCount": 3,
  "anomalies": [
    {
      "id": "647f1347-80ea-4af6-8550-f63e21ea1287",
      "billingAccount": "xxxxxxxxxxxxxxxxxxxx",
      "attribution": "",
      "costOfAnomaly": 57.18,
      "actualCost": 311.51,
      "expectedMaxCost": 254.33,
      "platform": "amazon-web-services",
      "scope": "",
      "serviceName": "Claude Sonnet 5 (Amazon Bedrock Edition)",
      "top3SKUs": null,
      "severityLevel": "warning",
      "timeFrame": "DAILY",
      "startTime": 1785715200000,
      "status": "inactive",
      "endTime": 1785981600000,
      "acknowledged": false,
      "resourceData": [
        {
          "cost": 206.694923,
          "resource_id": "arn:aws:bedrock:us-east-1:123456789012:inference-profile/us.anthropic.claude-sonnet-5",
          "sku_description": "USE1-MP:USE1_cache_read_tokens_standard-Units"
        },
        {
          "cost": 85.409104,
          "resource_id": "arn:aws:bedrock:us-east-1:123456789012:inference-profile/us.anthropic.claude-sonnet-5",
          "sku_description": "USE1-MP:USE1_cache_write_tokens_standard-Units"
        },
        {
          "cost": 18.224294,
          "resource_id": "arn:aws:bedrock:us-east-1:123456789012:inference-profile/us.anthropic.claude-sonnet-5",
          "sku_description": "USE1-MP:USE1_output_tokens_standard-Units"
        },
        {
          "cost": 0.392898,
          "resource_id": "arn:aws:bedrock:us-east-1:987654321098:inference-profile/us.anthropic.claude-sonnet-5",
          "sku_description": "USE1-MP:USE1_output_tokens_standard-Units"
        },
        {
          "cost": 0.360945,
          "resource_id": "arn:aws:bedrock:us-east-1:987654321098:inference-profile/us.anthropic.claude-sonnet-5",
          "sku_description": "USE1-MP:USE1_cache_write_tokens_1h_standard-Units"
        },
        {
          "cost": 0.323983,
          "resource_id": "arn:aws:bedrock:us-east-1:987654321098:inference-profile/us.anthropic.claude-sonnet-5",
          "sku_description": "USE1-MP:USE1_cache_read_tokens_standard-Units"
        },
        {
          "cost": 0.106313,
          "resource_id": "arn:aws:bedrock:us-east-1:987654321098:inference-profile/us.anthropic.claude-sonnet-5",
          "sku_description": "USE1-MP:USE1_input_tokens_standard-Units"
        }
      ],
      "notifications": []
    },
    {
      ......
}
```

## anomalies.get

Get the full details of the individual anomaly using the anomaly id.

Sample **anomalies.get** Request

```shell anomalies.get sample request
curl --request GET \
     --url https://api.doit.com/anomalies/v1/647f1347-80ea-4af6-8550-f63e21ea1287 \
     --header 'Authorization: Bearer {YOUR_API_KEY}' \
     --header 'accept: application/json'
```

Sample **anomalies.get** Response:

```json anomalies.get sample response
{
  "anomalyChartUrl": "https://storage.googleapis.com/cmp-static-ephemeral/cost-anomalies/xxxxxxxxxxxxxxxxxxxx/647f1347-80ea-4af6-8550-f63e21ea1287/12de1e435e4b94d9c5772513c6d4f55e45d7bb5e776ea572d3053de87e86a674",
  "billingAccount": "xxxxxxxxxxxxxxxxxxxx",
  "attribution": "",
  "costOfAnomaly": 57.18,
  "actualCost": 311.51,
  "expectedMaxCost": 254.33,
  "platform": "amazon-web-services",
  "scope": "",
  "serviceName": "Claude Sonnet 5 (Amazon Bedrock Edition)",
  "top3SKUs": null,
  "severityLevel": "warning",
  "timeFrame": "DAILY",
  "startTime": 1785715200000,
  "status": "inactive",
  "endTime": 1785981600000,
  "acknowledged": false,
  "resourceData": [
    {
      "cost": 0.106313,
      "resource_id": "arn:aws:bedrock:us-east-1:123456789012:inference-profile/us.anthropic.claude-sonnet-5",
      "sku_description": "USE1-MP:USE1_input_tokens_standard-Units",
      "labels": [
        {
          "key": "accountTag/owner_email",
          "value": "john@example.com",
          "cost": 310.434634
        },
        {
          "key": "iamPrincipal/AKIAZQ3DUWV232PCJEXU",
          "value": "cli",
          "cost": 310.434634
        }
      ]
    },
    {
      "cost": 85.409104,
      "resource_id": "arn:aws:bedrock:us-east-1:123456789012:inference-profile/us.anthropic.claude-sonnet-5",
      "sku_description": "USE1-MP:USE1_cache_write_tokens_standard-Units",
      "labels": [
        {
          "key": "accountTag/owner_email",
          "value": "john@example.com",
          "cost": 310.434634
        },
        {
          "key": "iamPrincipal/AKIAZQ3DUWV232PCJEXU",
          "value": "cli",
          "cost": 310.434634
        }
      ]
    },
    {
      "cost": 18.224294,
      "resource_id": "arn:aws:bedrock:us-east-1:123456789012:inference-profile/us.anthropic.claude-sonnet-5",
      "sku_description": "USE1-MP:USE1_output_tokens_standard-Units",
      "labels": [
        {
          "key": "accountTag/owner_email",
          "value": "john@example.com",
          "cost": 310.434634
        },
        {
          "key": "iamPrincipal/AKIAZQ3DUWV232PCJEXU",
          "value": "cli",
          "cost": 310.434634
        }
      ]
    },
    ......
  ],
  "notifications": [
    {
      "timestamp": "2026-08-05T07:18:49.035Z",
      "channel": "email"
    },
    {
      "timestamp": "2026-08-05T07:18:49.035Z",
      "channel": "msteams"
    },
    {
      "timestamp": "2026-08-05T07:18:49.035Z",
      "channel": "slack"
    },
    {
      "timestamp": "2026-08-05T13:02:25.467Z",
      "channel": "email"
    },
    {
      "timestamp": "2026-08-05T13:02:25.467Z",
      "channel": "msteams"
    },
    {
      "timestamp": "2026-08-05T13:02:25.467Z",
      "channel": "slack"
    },
    {
      "timestamp": "2026-08-05T19:02:04.454Z",
      "channel": "email"
    },
    {
      "timestamp": "2026-08-05T19:02:04.454Z",
      "channel": "msteams"
    },
    {
      "timestamp": "2026-08-05T19:02:04.454Z",
      "channel": "slack"
    },
    {
      "timestamp": "2026-08-06T01:02:04.834Z",
      "channel": "email"
    },
    {
      "timestamp": "2026-08-06T01:02:04.834Z",
      "channel": "msteams"
    },
    {
      "timestamp": "2026-08-06T01:02:04.834Z",
      "channel": "slack"
    }
  ]
}
```

Response Body Fields

| Field            | Description                                                                                                                                                                                  |
| :--------------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `billingAccount` | `string`<br />Unique anomaly identifier                                                                                                                                                      |
| `platform`       | `string`<br />The cloud platform for the anomaly. Can be `google-cloud`, `amazon-web-services`, or `microsoft-azure`                                                                         |
| `scope`          | `string`<br />The Google Cloud project ID, AWS account ID, or Azure resource group name for the given anomaly                                                                                |
| `serviceName`    | `string`<br />The name of the service causing the anomaly. Examples are EC2, BigQuery, SQS, etc.                                                                                             |
| `severityLevel`  | `string`<br />All anomalies are classified as "info", "warning" or "critical"                                                                                                                |
| `timeFrame`      | `string`<br />Anomalies can be DAILY (when a certain day is abnormally large compared to other days) or HOURLY (a certain hour is abnormally large compared to other hours of the same day). |
| `startTime`      | `number`<br />The time when this anomaly was detected, in milliseconds since the epoch.\`                                                                                                    |
| `acknowledged`   | `boolean`<br />Indicates whether the anomaly has been acknowledged.                                                                                                                          |
| `acknowledgedAt` | `string`<br />When the anomaly was first acknowledged.                                                                                                                                       |
| `acknowledgedBy` | `string`<br />Email of the user who first acknowledged the anomaly.                                                                                                                          |
| `resourceData`   | Array of `objects`<br />Resources that contribute to the anomaly.                                                                                                                            |