---
title: "List Cloudflare accounts"
method: GET
path: "/api/v2/integrations/cloudflare/accounts"
tags: ["Cloudflare Integration"]
---

# List Cloudflare accounts

`GET /api/v2/integrations/cloudflare/accounts`

List Cloudflare accounts.

## Response `200`

OK

- CloudflareAccountsResponse — The expected response schema when getting Cloudflare accounts.
  - `data` CloudflareAccountResponseData[] — The JSON:API data schema.
    - `attributes` CloudflareAccountResponseAttributes, required — Attributes object of a Cloudflare account.
      - `email` string — The email associated with the Cloudflare account.
      - `name` string, required — The name of the Cloudflare account.
      - `resources` string[] — An allowlist of resources, such as `web`, `dns`, `lb` (load balancer), `worker`, that restricts pulling metrics from those resources.
      - `zones` string[] — An allowlist of zones to restrict pulling metrics for.
    - `id` string, required — The ID of the Cloudflare account, a hash of the account name.
    - `type` 'cloudflare-accounts', required — The JSON:API type for this API. Should always be `cloudflare-accounts`.

## Other responses

- `400` — Bad Request
- `403` — Forbidden
- `404` — Not Found
- `429` — Too many requests

---

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