How AI is applied across API Evangelist and APIs.io. Read my AI disclosure →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

Google Tag Manager Versions API

Operations for managing container versions, including publishing and rollback.

Google Tag Manager Versions API is one of 9 APIs that Google Tag Manager publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

This API exposes 1 JSON Schema definition.

Tagged areas include Versions. The published artifact set on APIs.io includes an OpenAPI specification, a JSON-LD context, API documentation, an API reference, authentication docs, a getting-started guide, and 1 JSON Schema.

This API exposes 5 operations across 4 paths, and defines 15 schemas. It is described by OpenAPI 3.2.0, at version 2.0.0.

Requests are made against a single base URL, https://tagmanager.googleapis.com.

5 operations 4 paths 15 schemas 1 DELETE3 GET1 POST

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.2.0
API Version
2.0.0
Base URL
https://tagmanager.googleapis.com
Authentication
OAuth 2.0
Terms of Service
Resource Areas
1

Authentication & Security 1

Google Tag Manager Versions API declares 1 security scheme for authenticating requests. It supports OAuth 2.0 (oauth2) using the authorizationCode flow, exposing 7 scopes. By default, every request must be authenticated.

  • oauth2 — OAuth 2.0 authentication for Google Tag Manager API.

Paths & Operations 5

Across 4 paths, the API surfaces 5 operations — 1 DELETE, 3 GET, 1 POST. Each is listed below with its method, path, parameters, and response codes.

Versions 5

Operations for managing container versions, including publishing and rollback.

GET
/tagmanager/v2/{parent}/versions
Google Tag Manager List All Container Version Headers
listContainerVersionHeaders 3 params → 200
GET
/tagmanager/v2/{versionPath}
Google Tag Manager Get a Container Version
getContainerVersion 1 param → 200
DELETE
/tagmanager/v2/{versionPath}
Google Tag Manager Delete a Container Version
deleteContainerVersion 1 param → 204
POST
/tagmanager/v2/{versionPath}:publish
Google Tag Manager Publish a Container Version
publishContainerVersion 2 params → 200
GET
/tagmanager/v2/{parent}/versions:live
Google Tag Manager Get the Live Container Version
getLiveContainerVersion 1 param → 200

Schemas 15

The contract defines 15 schemas that model the data the API accepts and returns. The most detailed are Trigger (32 properties), Tag (25 properties), Variable (17 properties), ContainerFeatures (14 properties). Each schema is shown below with its type and property counts.

Parameter
object
Represents a Google Tag Manager Parameter. Parameters are key-value pairs that configure tags, triggers, and variables.
6 properties 1 required
Container
object
Represents a Google Tag Manager Container, which is a collection of tags, triggers, and variables used on a website or mobile app.
13 properties 2 required
Trigger
object
Represents a Google Tag Manager Trigger. A trigger defines conditions under which tags should fire, such as page views, clicks, form submissions, or custom eve…
32 properties 2 required
Tag
object
Represents a Google Tag Manager Tag. A tag is a snippet of code that executes on a page when certain conditions (triggers) are met.
25 properties 2 required
FormatValue
object
Option to convert a variable value to another value.
5 properties
ContainerVersion
object
Represents a version of a Google Tag Manager Container. A container version is a snapshot of all tags, triggers, variables, and configuration at a point in tim…
13 properties
ContainerFeatures
object
Read-only container feature set.
14 properties
PublishContainerVersionResponse
object
Publish container version response.
2 properties
Variable
object
Represents a Google Tag Manager Variable. A variable provides dynamic values that can be used in tags and triggers, such as page URL, click text, or custom Jav…
17 properties 2 required
Condition
object
Represents a predicate that is evaluated against a data layer value or variable. Used in trigger filter conditions.
2 properties
SetupTag
object
Represents a setup tag relationship. A setup tag fires before the main tag.
2 properties
ConsentSettings
object
Tag consent settings.
2 properties
TeardownTag
object
Represents a teardown tag relationship. A teardown tag fires after the main tag.
2 properties
ListContainerVersionsResponse
object
List Container Versions Response.
2 properties
ContainerVersionHeader
object
Represents a summary of a container version, without the full tag, trigger, and variable details.
9 properties

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

google-tag-manager-versions-api-openapi.yml Raw ↑

Other APIs Google Tag Manager publishes across the network.

Google Tag Manager Server-side Tagging API
Google Tag Manager Accounts API
Google Tag Manager Containers API
Google Tag Manager Tagmanager API
Google Tag Manager Triggers API
Google Tag Manager User Permissions API
Google Tag Manager Variables API
Google Tag Manager Workspaces API
Where this information came from

This is an independent, third-party profile of Google Tag Manager Versions API, published by API Evangelist. We do not operate, host, resell, or support these APIs, and we are not affiliated with or endorsed by the company unless stated above. Everything here is built from publicly available information — the company's own site, developer portal, documentation, public repositories, and the specifications it publishes for public use. Nothing is obtained by breaching a system, defeating an access control, or using credentials.

The Kin Score and Agent Readiness rating are independently calculated assessments of a company's public API artifacts, scored against a published rubric. They are not certifications, endorsements, security assessments, or audits.

Corrections, re-scores, and removal are free — no partnership or purchase required, and you do not need to justify the request. A removed company is recorded as unrated, never scored zero for having asked. Acknowledgement within one business day; removal within two.

info@apievangelist.com · Read the full data-sourcing policy →
On a security or compliance team? Put security in the subject line and you will get a person, not a form — we will tell you exactly which public URLs this profile was built from.