# List Datadog integrations

Returns a list of all your Datadog integrations.

[endpoint]
base_url = "https://incidents.betterstack.com"
path = "/api/v2/datadog-integrations"
method = "GET"

[[query_param]]
name = "team_name"
description = "Filter Datadog integrations belonging to a specified team when using [global API token](https://betterstack.com/docs/uptime/api/getting-started-with-uptime-api/#get-a-global-api-token)."
required = false
type = "string"

[[query_param]]
name = "page"
description = "The page number to return, starting with `1`."
required = false
type = "integer"

[[query_param]]
name = "per_page"
description = "Number of results per page. Defaults to `50`, maximum `250`."
required = false
type = "integer"

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

[responses]
[[response]]
status = 200
description = '''Returns list of existing Datadog integrations'''
body = '''{
  "data": [
    {
      "id": "37",
      "type": "datadog_integration",
      "attributes": {
        "call": false,
        "sms": true,
        "email": true,
        "team_wait": 180,
        "recovery_period": null,
        "policy_id": null,
        "push": false,
        "critical_alert": false,
        "name": "Datadog alerts",
        "webhook_url": "https://incidents.betterstack.com/api/v1/datadog/webhook/[token]",
        "team_name": "Testing",
        "paused": false,
        "alerting_rule": "alert"
      }
    }
  ],
  "pagination": {
    "first": "https://incidents.betterstack.com/api/v2/datadog-integrations?page=1",
    "last": "https://incidents.betterstack.com/api/v2/datadog-integrations?page=1",
    "prev": null,
    "next": null
  }
}'''

[/responses]

[params]
title = "Response attributes"

[[param]]
name = "id"
type = "string"
description = "The ID of the Datadog integration."

[[param]]
name = "type"
type = "string"
description = "Always `datadog_integration`."

[[param]]
name = "attributes.call"
type = "boolean"
description = "Whether to call the on-call person."

[[param]]
name = "attributes.sms"
type = "boolean"
description = "Whether to send an SMS to the on-call person."

[[param]]
name = "attributes.email"
type = "boolean"
description = "Whether to send an e-mail to the on-call person."

[[param]]
name = "attributes.team_wait"
type = "integer or null"
description = "How long we wait before escalating the incident to the team in seconds, `0` to alert the whole team right away, or `null` to never escalate to the team."

[[param]]
name = "attributes.recovery_period"
type = "integer or null"
description = "A recovery period in seconds, or `null` when none is set, which this integration doesn't use since incidents resolve as soon as Datadog reports the alert as resolved."

[[param]]
name = "attributes.policy_id"
type = "integer or null"
description = "ID of the escalation policy for incidents from this integration, or `null` when incidents alert the on-call person directly."

[[param]]
name = "attributes.push"
type = "boolean"
description = "Whether to send a push notification to the on-call person."

[[param]]
name = "attributes.critical_alert"
type = "boolean"
description = "Whether to send a critical push notification that ignores the mute switch and Do Not Disturb mode."

[[param]]
name = "attributes.name"
type = "string or null"
description = "The name of the Datadog integration shown in the dashboard, or `null` when no name is set."

[[param]]
name = "attributes.webhook_url"
type = "string"
description = "The URL to point your Datadog webhook to."

[[param]]
name = "attributes.team_name"
type = "string"
description = "The team this integration belongs to."

[[param]]
name = "attributes.paused"
type = "boolean"
description = "Whether the Datadog integration is paused, which makes it ignore incoming alerts."

[[param]]
name = "attributes.alerting_rule"
type = "string"
description = "When an incident starts: `alert` when the Datadog monitor reaches its ALERT threshold, or `alert_and_warn` when it reaches its ALERT or WARN threshold."

[[param]]
name = "pagination.first"
type = "string"
description = "The URL of the first page. Read more about [pagination](https://betterstack.com/docs/uptime/api/getting-started-with-uptime-api/#pagination)."

[[param]]
name = "pagination.last"
type = "string"
description = "The URL of the last page."

[[param]]
name = "pagination.prev"
type = "string or null"
description = "The URL of the previous page, or `null` on the first page."

[[param]]
name = "pagination.next"
type = "string or null"
description = "The URL of the next page, or `null` on the last page."
[/params]

#### Example cURL 

```shell
[label Example]
curl --request GET \
  --url https://incidents.betterstack.com/api/v2/datadog-integrations \
  --header "Authorization: Bearer $TOKEN"
```
