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 Variables API

Operations for managing variables within a workspace that provide dynamic values to tags and triggers.

Google Tag Manager Variables 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 Variables. 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 6 operations across 3 paths, and defines 5 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.

6 operations 3 paths 5 schemas 1 DELETE2 GET2 POST1 PUT

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 Variables 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 6

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

Variables 6

Operations for managing variables within a workspace that provide dynamic values to tags and triggers.

GET
/tagmanager/v2/{parent}/variables
Google Tag Manager List Variables in a Workspace
listVariables 2 params → 200
POST
/tagmanager/v2/{parent}/variables
Google Tag Manager Create a Variable
createVariable 1 param body → 200
GET
/tagmanager/v2/{variablePath}
Google Tag Manager Get a Variable
getVariable 1 param → 200
PUT
/tagmanager/v2/{variablePath}
Google Tag Manager Update a Variable
updateVariable 2 params body → 200
DELETE
/tagmanager/v2/{variablePath}
Google Tag Manager Delete a Variable
deleteVariable 1 param → 204
POST
/tagmanager/v2/{variablePath}:revert
Google Tag Manager Revert Changes to a Variable in a Workspace
revertVariable 1 param → 200

Schemas 5

The contract defines 5 schemas that model the data the API accepts and returns. The most detailed are Variable (17 properties), Parameter (6 properties), FormatValue (5 properties), ListVariablesResponse (2 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
FormatValue
object
Option to convert a variable value to another value.
5 properties
RevertVariableResponse
object
The result of reverting a variable in a workspace.
1 property
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
ListVariablesResponse
object
List Variables Response.
2 properties

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

google-tag-manager-variables-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 Versions API
Google Tag Manager Workspaces API
Where this information came from

This is an independent, third-party profile of Google Tag Manager Variables 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.