---
title: "Add Fastly service"
method: POST
path: "/api/v2/integrations/fastly/accounts/{account_id}/services"
tags: ["Fastly Integration"]
---

# Add Fastly service

`POST /api/v2/integrations/fastly/accounts/{account_id}/services`

Create a Fastly service for an account.

## Path parameters

- `account_id` string, required

## Request body

- FastlyServiceRequest — Payload schema for Fastly service requests.
  - `data` FastlyServiceData, required — Data object for Fastly service requests.
    - `attributes` FastlyServiceAttributes — Attributes object for Fastly service requests.
      - `tags` string[] — A list of tags for the Fastly service.
    - `id` string, required — The ID of the Fastly service.
    - `type` 'fastly-services', required — The JSON:API type for this API. Should always be `fastly-services`.

## Response `201`

CREATED

- FastlyServiceResponse — The expected response schema when getting a Fastly service.
  - `data` FastlyServiceData — Data object for Fastly service requests.
    - `attributes` FastlyServiceAttributes — Attributes object for Fastly service requests.
      - `tags` string[] — A list of tags for the Fastly service.
    - `id` string, required — The ID of the Fastly service.
    - `type` 'fastly-services', required — The JSON:API type for this API. Should always be `fastly-services`.

## Other responses

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

---

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