---
title: "Create the Katla tag in a Tag Manager container"
method: POST
path: "/sites/{id}/gtm/install"
tags: ["Sites"]
---

# Create the Katla tag in a Tag Manager container

`POST /sites/{id}/gtm/install`

## Request

- Base URL: `https://api.katla.app`
- URL: `https://api.katla.app/sites/{id}/gtm/install`
- Auth: HTTP bearer

## Path parameters

- `id` string, uuid, required

## Request body

- object
  - `accountId` string, required
  - `accountName` string
  - `containerId` string, required
  - `containerPublicId` string, required
  - `containerName` string
  - `workspaceId` string, required
  - `workspaceName` string
  - `publish` boolean
  - `theme` 'system' | 'light' | 'dark'
  - `locale` string

## Response `200`

Default Response

- object
  - `connected` boolean, required
  - `available` boolean, required
  - `snippet` string, required
  - `connection` object, nullable, required
    - `googleEmail` string, nullable, required
    - `accountId` string, required
    - `accountName` string, nullable, required
    - `containerId` string, required
    - `containerPublicId` string, required
    - `containerName` string, nullable, required
    - `workspaceId` string, required
    - `workspaceName` string, nullable, required
    - `tagId` string, nullable, required
    - `triggerId` string, nullable, required
    - `versionId` string, nullable, required
    - `publishedAt` string, nullable, required
    - `containerUrl` string, required
    - `updatedAt` string, required
  - `published` boolean, required

## Other responses

- `403`: Default Response
- `404`: Default Response
- `502`: Default Response

---

[API](https://skmtc.dev/katla/apis/katla-api.md) · [All operations](https://skmtc.dev/katla/apis/katla-api/llms.txt) · [OpenAPI document](https://skmtc.dev/katla/apis/katla-api/revisions/6ed2d7f0b009?raw)
