---
title: "Add Fastly account"
method: POST
path: "/api/v2/integrations/fastly/accounts"
tags: ["Fastly Integration"]
---

# Add Fastly account

`POST /api/v2/integrations/fastly/accounts`

Create a Fastly account.

## Request body

- FastlyAccountCreateRequest — Payload schema when adding a Fastly account.
  - `data` FastlyAccountCreateRequestData, required — Data object for creating a Fastly account.
    - `attributes` FastlyAccountCreateRequestAttributes, required — Attributes object for creating a Fastly account.
      - `api_key` string, required — The API key for the 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.
    - `type` 'fastly-accounts', required — The JSON:API type for this API. Should always be `fastly-accounts`.

## Response `201`

CREATED

- FastlyAccountResponse — The expected response schema when getting a Fastly account.
  - `data` FastlyAccountResponseData — Data object of a Fastly account.
    - `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.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/revisions/da68bf029e4c/schema)
