# Create AWS CloudWatch integration

Returns either a newly created AWS CloudWatch integration, or validation errors.

[endpoint]
base_url = "https://uptime.betterstack.com"
path = "/api/v2/aws-cloudwatch-integrations"
method = "POST"

[[body_param]]
name = "team_name"
description = "Required if using [global API token](https://betterstack.com/docs/uptime/api/getting-started-with-uptime-api/#get-a-global-api-token) to specify the team which should own the resource"
required = false
type = "string"

[[body_param]]
name = "name"
description = "The name of the AWS CloudWatch integration that you can see in the dashboard."
required = false
type = "string"

[[body_param]]
name = "*"
description = "Any other params you'd like to set. See the [list of all AWS CloudWatch integration API parameters](https://betterstack.com/docs/uptime/api/aws-cloudwatch-integrations-response-params/) for details."
required = false

[[header]]
name = "Authorization"
description = "Bearer `$TOKEN`"
required = true
type = "string"

[[header]]
name = "Content_Type"
description = "application/json"
required = false
type = "string"
[/endpoint]

[responses]
[[response]]
status = 201
description = '''Returns newly created AWS CloudWatch integration'''
body = '''{
  "data": {
    "id": "37",
    "type": "aws_cloudwatch_integration",
    "attributes": {
      "call": false,
      "sms": false,
      "email": true,
      "team_wait": 180,
      "recovery_period": null,
      "policy_id": null,
      "push": true,
      "name": "Test",
      "paused": false,
      "webhook_url": "https://uptime.betterstack.dev/api/v1/aws-cloudwatch/webhook/[token]"
      "team_name": "Production"
    }
  }
}'''

[/responses]

#### Example cURL 

```shell
[label Example]
curl -X "POST" "https://uptime.betterstack.com/api/v2/aws-cloudwatch-integrations/" \
     -H "Authorization: Bearer $TOKEN" \
     -H 'Content-Type: application/json; charset=utf-8' \
     -d $'{
  "name": "Test"
}'
```

[info]
#### Looking for the details of a specific parameter?
Explore [the list of all AWS CloudWatch integration API parameters](https://betterstack.com/docs/uptime/api/aws-cloudwatch-integrations-response-params/)
[/info]
