---
title: "Create Cloud Cost Management AWS CUR config"
method: POST
path: "/api/v2/cost/aws_cur_config"
tags: ["Cloud Cost Management"]
---

# Create Cloud Cost Management AWS CUR config

`POST /api/v2/cost/aws_cur_config`

## Request

- Base URL: `https://api.datadoghq.com`
- URL: `https://api.datadoghq.com/api/v2/cost/aws_cur_config`
- Auth: one of:
  - API key in header `DD-API-KEY` and API key in header `DD-APPLICATION-KEY`
  - OAuth 2
    - Authorization code: `/oauth2/v1/authorize`
    - Token URL: `/oauth2/v1/token` scopes: `cloud_cost_management_write`

Create a Cloud Cost Management account for an AWS CUR config.

## Request body

- AwsCURConfigPostRequest: AWS CUR config Post Request.
  - `data` AwsCURConfigPostData, required: AWS CUR config Post data.
    - `attributes` AwsCURConfigPostRequestAttributes: Attributes for AWS CUR config Post Request.
      - `account_filters` AccountFilteringConfig: The account filtering configuration.
        - `excluded_accounts` string[]: The AWS account IDs to be excluded from your billing dataset. This field is used when `include_new_accounts` is `true`.
        - `include_new_accounts` boolean, nullable: Whether or not to automatically include new member accounts by default in your billing dataset.
        - `included_accounts` string[]: The AWS account IDs to be included in your billing dataset. This field is used when `include_new_accounts` is `false`.
      - `account_id` string, required: The AWS account ID.
      - `bucket_name` string, required: The AWS bucket name used to store the Cost and Usage Report.
      - `bucket_region` string: The region the bucket is located in.
      - `months` integer: The month of the report.
      - `report_name` string, required: The name of the Cost and Usage Report.
      - `report_prefix` string, required: The report prefix used for the Cost and Usage Report.
    - `type` 'aws_cur_config_post_request', required: Type of AWS CUR config Post Request.

## Response `200`

OK

- AwsCurConfigResponse: The definition of `AwsCurConfigResponse` object.
  - `data` AwsCurConfigResponseData: The definition of `AwsCurConfigResponseData` object.
    - `attributes` AwsCurConfigResponseDataAttributes: The definition of `AwsCurConfigResponseDataAttributes` object.
      - `account_filters` AwsCurConfigResponseDataAttributesAccountFilters: The definition of `AwsCurConfigResponseDataAttributesAccountFilters` object.
        - `excluded_accounts` string[]: The `account_filters` `excluded_accounts`.
        - `include_new_accounts` boolean, nullable: The `account_filters` `include_new_accounts`.
        - `included_accounts` string[]: The `account_filters` `included_accounts`.
      - `account_id` string: The `attributes` `account_id`.
      - `bucket_name` string: The `attributes` `bucket_name`.
      - `bucket_region` string: The `attributes` `bucket_region`.
      - `created_at` string: The `attributes` `created_at`.
      - `error_messages` string[], nullable: The `attributes` `error_messages`.
      - `months` integer: The `attributes` `months`.
      - `report_name` string: The `attributes` `report_name`.
      - `report_prefix` string: The `attributes` `report_prefix`.
      - `status` string: The `attributes` `status`.
      - `status_updated_at` string: The `attributes` `status_updated_at`.
      - `updated_at` string: The `attributes` `updated_at`.
    - `id` string: The `AwsCurConfigResponseData` `id`.
    - `type` 'aws_cur_config', required: AWS CUR config resource type.

## Other responses

- `400`: Bad Request
- `403`: Forbidden
- `429`: Too many requests

---

[API](https://skmtc.dev/datadog/apis/datadog-api-v2-collection.md) - [All operations](https://skmtc.dev/datadog/apis/datadog-api-v2-collection/llms.txt) - [OpenAPI document](https://skmtc.dev/datadog/apis/datadog-api-v2-collection/revisions/da68bf029e4c?raw)
