# Matomo Tag Manager API

**Canonical:** https://apis.io/apis/matomo/matomo-tagmanager-api/  
**Provider:** Matomo — https://apis.io/providers/matomo/  
**Base URL:** https://{matomo_host}/index.php  
**Documentation:** https://developer.matomo.org/api-reference/reporting-api

Matomo Tag Manager API is one of 61 APIs that [Matomo](https://apis.io/providers/matomo/) publishes on the [APIs.io](https://apis.io/) network, described by a machine-readable OpenAPI specification. Tagged areas include Tag Manager. The published artifact set on APIs.io includes an OpenAPI specification and API documentation.

Exposes the Tag Manager API for managing containers, versions, tags, triggers, and variables. The endpoints also provide installation metadata, publishing workflows, preview controls, and import/export operations. A container may have several versions, and the current editable version is exposed as the "draft" version by {@link TagManager.getContainer}.

## Operations (47)

| Method | Path | Summary |
|---|---|---|
| GET | `/index.php?module=API&method=TagManager.getAvailableContexts` | — |
| GET | `/index.php?module=API&method=TagManager.getAvailableEnvironments` | — |
| GET | `/index.php?module=API&method=TagManager.getAvailableEnvironmentsWithPublishCapability` | — |
| GET | `/index.php?module=API&method=TagManager.getAvailableTagFireLimits` | — |
| GET | `/index.php?module=API&method=TagManager.getAvailableComparisons` | — |
| GET | `/index.php?module=API&method=TagManager.getAvailableTagTypesInContext` | — |
| GET | `/index.php?module=API&method=TagManager.getAvailableTriggerTypesInContext` | — |
| GET | `/index.php?module=API&method=TagManager.getAvailableVariableTypesInContext` | — |
| GET | `/index.php?module=API&method=TagManager.getContainerEmbedCode` | — |
| GET | `/index.php?module=API&method=TagManager.getContainerInstallInstructions` | — |
| GET | `/index.php?module=API&method=TagManager.getContainerTags` | — |
| GET | `/index.php?module=API&method=TagManager.createDefaultContainerForSite` | — |
| GET | `/index.php?module=API&method=TagManager.addContainerTag` | — |
| GET | `/index.php?module=API&method=TagManager.updateContainerTag` | — |
| GET | `/index.php?module=API&method=TagManager.deleteContainerTag` | — |
| GET | `/index.php?module=API&method=TagManager.pauseContainerTag` | — |
| GET | `/index.php?module=API&method=TagManager.resumeContainerTag` | — |
| GET | `/index.php?module=API&method=TagManager.getContainerTag` | — |
| GET | `/index.php?module=API&method=TagManager.getContainerTriggerReferences` | — |
| GET | `/index.php?module=API&method=TagManager.getContainerTriggers` | — |
| GET | `/index.php?module=API&method=TagManager.addContainerTrigger` | — |
| GET | `/index.php?module=API&method=TagManager.updateContainerTrigger` | — |
| GET | `/index.php?module=API&method=TagManager.deleteContainerTrigger` | — |
| GET | `/index.php?module=API&method=TagManager.getContainerTrigger` | — |
| GET | `/index.php?module=API&method=TagManager.getContainerVariableReferences` | — |
| GET | `/index.php?module=API&method=TagManager.getContainerVariables` | — |
| GET | `/index.php?module=API&method=TagManager.getAvailableContainerVariables` | — |
| GET | `/index.php?module=API&method=TagManager.addContainerVariable` | — |
| GET | `/index.php?module=API&method=TagManager.updateContainerVariable` | — |
| GET | `/index.php?module=API&method=TagManager.deleteContainerVariable` | — |
| GET | `/index.php?module=API&method=TagManager.getContainerVariable` | — |
| GET | `/index.php?module=API&method=TagManager.getContainers` | — |
| GET | `/index.php?module=API&method=TagManager.addContainer` | — |
| GET | `/index.php?module=API&method=TagManager.updateContainer` | — |
| GET | `/index.php?module=API&method=TagManager.createContainerVersion` | — |
| GET | `/index.php?module=API&method=TagManager.updateContainerVersion` | — |
| GET | `/index.php?module=API&method=TagManager.getContainerVersions` | — |
| GET | `/index.php?module=API&method=TagManager.getContainerVersion` | — |
| GET | `/index.php?module=API&method=TagManager.deleteContainerVersion` | — |
| GET | `/index.php?module=API&method=TagManager.publishContainerVersion` | — |
| GET | `/index.php?module=API&method=TagManager.deleteContainer` | — |
| GET | `/index.php?module=API&method=TagManager.getContainer` | — |
| GET | `/index.php?module=API&method=TagManager.enablePreviewMode` | — |
| GET | `/index.php?module=API&method=TagManager.disablePreviewMode` | — |
| GET | `/index.php?module=API&method=TagManager.changeDebugUrl` | — |
| GET | `/index.php?module=API&method=TagManager.exportContainerVersion` | — |
| GET | `/index.php?module=API&method=TagManager.importContainerVersion` | — |

## Machine-readable artifacts (5)

- **OpenAPI** — https://raw.githubusercontent.com/api-evangelist/matomo/refs/heads/main/openapi/matomo-tagmanager-api-openapi.yml
- **Documentation** — https://developer.matomo.org/api-reference/reporting-api
- **Documentation** — https://developer.matomo.org/api-reference/reporting-api#Live
- **Documentation** — https://developer.matomo.org/api-reference/reporting-api#Goals
- **Documentation** — https://developer.matomo.org/api-reference/reporting-api-segmentation

## Other Matomo APIs (12)

- [Matomo Reporting API (index.php entrypoint)](https://apis.io/apis/matomo/matomo-index-php-api/)
- [Matomo Tracking API (matomo.php entrypoint)](https://apis.io/apis/matomo/matomo-matomo-php-api/)
- [Matomo Ab Testing API](https://apis.io/apis/matomo/matomo-abtesting-api/)
- [Matomo Actions API](https://apis.io/apis/matomo/matomo-actions-api/)
- [Matomo Activity Log API](https://apis.io/apis/matomo/matomo-activitylog-api/)
- [Matomo Advertising Conversion Export API](https://apis.io/apis/matomo/matomo-advertisingconversionexport-api/)
- [Matomo Annotations API](https://apis.io/apis/matomo/matomo-annotations-api/)
- [Matomo API](https://apis.io/apis/matomo/matomo-api-api/)
- [Matomo API Reference API](https://apis.io/apis/matomo/matomo-apireference-api/)
- [Matomo Bandwidth API](https://apis.io/apis/matomo/matomo-bandwidth-api/)
- [Matomo Cohorts API](https://apis.io/apis/matomo/matomo-cohorts-api/)
- [Matomo Contents API](https://apis.io/apis/matomo/matomo-contents-api/)

## Tags

Tag Manager

---

Profiled by [API Evangelist](https://apievangelist.com) and published on [APIs.io](https://apis.io/apis/matomo/matomo-tagmanager-api/). The API's provider profile, Kin Score and agent-readiness rating are at https://apis.io/providers/matomo/.
