---
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`

## Request

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

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/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)
