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

# List Fastly accounts

`GET /api/v2/integrations/fastly/accounts`

## Request

- Base URL: `https://api.datadoghq.com`
- URL: `https://api.datadoghq.com/api/v2/integrations/fastly/accounts`
- Auth: API key in header `DD-API-KEY` and API key in header `DD-APPLICATION-KEY`

List Fastly accounts.

## Response `200`

OK

- FastlyAccountsResponse: The expected response schema when getting Fastly accounts.
  - `data` FastlyAccountResponseData[]: The JSON:API data schema.
    - `attributes` FastlyAccounResponseAttributes, required: Attributes object of a Fastly account.
      - `name` string, required: The name of the Fastly account.
      - `services` FastlyService[]: A list of services belonging to the parent account.
        - `id` string, required: The ID of the Fastly service
        - `tags` string[]: A list of tags for the Fastly service.
    - `id` string, required: The ID of the Fastly account, a hash of the account name.
    - `type` 'fastly-accounts', required: The JSON:API type for this API. Should always be `fastly-accounts`.

## Other responses

- `400`: Bad Request
- `403`: Forbidden
- `404`: Not Found
- `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)
