Product
Jentic OSThe workplace. An in-house AI platform for every employeeJentic OneSafe access. Agents reach your systems without holding keysJentic AIRThe foundation. Gets your existing platforms ready for AI
Pricing
Developers

GET STARTED

API DirectoryBrowse 10,000+ APIs Ready For AI Agent IntegrationDocumentationGuides and API reference

TOOLS

API ScoringCheck your AI Readiness using our scorecardArazzo UIVisualize Arazzo Workflows As Interactive DocumentationArazzo EditorBuild And Edit Multi-Step API Workflows Visually

COMMUNITY

GitHubOpen source projects and examplesOpen StandardsBuilt on open specs. Never locked in.
Resources
Company
About UsOur mission and teamCareersJoin our teamContactGet in touch
Try it now
Jentic OSJentic OneJentic AIR
Pricing
API DirectoryDocumentationAPI ScoringArazzo UIArazzo EditorGitHubOpen Standards
Resources
About UsCareersContact
Try it now
JenticJentic
Products
  • Jentic OS
  • Jentic One
  • Jentic AIR
For Developers
  • API Directory
  • Documentation
  • GitHub
Company
  • About Jentic
  • Careers
  • Contact Us
  • Trust Centre
ISO/IEC 27001:2022 certification badge issued by Prescient SecurityISO/IEC 27001:2022 certification badge issued by Prescient Security

Information Security Management System

Certified to ISO/IEC 27001:2022 by Prescient Security

AICPA SOC for Service Organizations logoAICPA SOC for Service Organizations logo

SOC 2® Type 1 report

Audited by Prescient Assurance

Terms & Conditions•Privacy Policy•
© 2026 Jentic Technology Ltd. All rights reserved.
2 Grattan Court East, Dublin, D02 VX86, Ireland
Switch to light modeSwitch to dark mode
APIs / Analytics / Google / Tag Manager API
Tag Manager API logo

Google Tag Manager API

Browse all Google APIs
40
AI ReadinessNon-Ready (F)40/100
See full scorecard
Official vendor OpenAPI document · agent-readyAnalyticsWeb Analyticsoauth255 EndpointsREST

For Agents

Programmatically create and publish Google Tag Manager containers, tags, triggers, variables, and workspaces, and manage user permissions across GTM accounts.

Use for: I need to publish a new container version for our GTM property, Create a custom HTML tag in a Google Tag Manager workspace, List all triggers configured in a container, Set up a new GTM environment for staging

Not supported: Does not handle event collection, report querying, or destination platform configuration - use for managing GTM containers, tags, triggers, and versions only.

The Google Tag Manager API gives programmatic access to GTM accounts, containers, workspaces, tags, triggers, variables, environments, and version history. It lets ops and analytics teams script tag deployments, audit container configurations, replicate environments across properties, and publish container versions without using the GTM web UI. Every change made through the API is captured in workspace history and can be promoted through environments for staged rollouts.

Jentic One on GithubView OpenAPI Document

Install Jentic One Beta

Connect the Tag Manager API to your agent

Jentic One is a self-hosted execution layer for AI agents. It lets your agent call the Tag Manager API, or any other public or private API you need. You set the rules, the agent never sees your credentials, and every call is logged.

Two steps, two machines. Install the instance in a safe environment, then register your agent from wherever it runs.

1

Step 1: Jentic One Host machine

# On the machine that will host your Jentic One instance:
curl -fsSL "https://jentic.com/install.sh?src=apis&api=%2Fapis%2Fgoogleapis.com%2Ftagmanager" | sh
2

Step 2: Agent machine

# On the machine where your agent runs (keep this separate from the instance):
curl -fsSL "https://jentic.com/install.sh?src=apis&api=%2Fapis%2Fgoogleapis.com%2Ftagmanager" | sh
jentic register       # connects your agent to your Jentic One instance

Jentic One is in public beta. The setup above keeps your agent separate from the instance, which is what you want before using real credentials: an agent running as the same OS user as Jentic One can read its stored keys directly. Just evaluating? A single local install is fine to start. See the secure deployment guide for the tiers.

Capabilities

What an agent can do with Tag Manager API.

Create, update, and publish container versions across GTM workspaces

Provision tags, triggers, and variables programmatically across containers

Replicate environments and promote container versions between staging and production

Audit user permissions and assign roles at the account or container level

List and inspect built-in variables, clients, and destinations attached to a container

Reauthorize, sync, or resolve workspace conflicts before publishing

Use Cases

Patterns agents use Tag Manager API for, with concrete tasks.

★ Programmatic Tag Deployment Across Properties

Marketing engineering teams managing tags across dozens of brand properties use the Tag Manager API to standardise tag definitions, push the same conversion-pixel configuration into every container, and audit drift. Instead of clicking through the GTM UI per property, the team scripts the create-tag, create-trigger, and create-version flow and runs it as part of their release pipeline.

Iterate over a list of GTM container IDs and POST to /tagmanager/v2/{parent}/tags to create the same Google Ads conversion tag in each, then create a version and publish.

Staged Environment Promotion

Large publishers run tags in a staging environment before promoting to production. The API lets engineering create a new workspace, modify tags, create a container version, and reauthorize a staging environment to point at it. Once QA passes, the same version is republished to the live environment in a single API call rather than reconfiguring tags by hand.

Create a workspace, add or modify tags via /tagmanager/v2/{parent}/tags, call workspace create_version, then reauthorize the production environment with the new container_version_id.

Container Configuration Audit

Compliance and privacy teams need an inventory of every tag firing on a property and which user has permission to modify them. The API exposes complete tag, trigger, and variable listings plus user-permission resources, enabling automated audit reports that flag unauthorised tags, third-party scripts without consent triggers, or stale custom HTML.

List all containers under an account, then for each container list tags, triggers, and user_permissions, and emit a CSV flagging any custom-HTML tag without an associated consent trigger.

Agent-Driven Tag Updates via Jentic

An AI agent embedded in a marketing workflow receives a request to swap an analytics tag's tracking ID across all brand containers. Through Jentic, the agent searches for the tag-update operation, loads the schema, iterates over container IDs, and publishes a new version per container. Jentic handles the OAuth refresh and credential isolation across the multi-step workflow.

Through Jentic, search 'update a Google Tag Manager tag', load the PUT tag operation, and execute it for each container ID, then publish a new version.

Key Endpoints

55 endpoints — the google tag manager api gives programmatic access to gtm accounts, containers, workspaces, tags, triggers, variables, environments, and version history.

METHOD

PATH

DESCRIPTION

GET

/tagmanager/v2/accounts

List GTM accounts the user has access to

GET

/tagmanager/v2/{parent}/containers

List containers under an account

POST

/tagmanager/v2/{parent}/containers

Create a new container

POST

/tagmanager/v2/{parent}/clients

Create a client in a workspace

GET

/tagmanager/v2/{parent}/built_in_variables

List built-in variables enabled in a workspace

GET

/tagmanager/v2/{parent}/destinations

List destinations linked to a container

GET

/tagmanager/v2/accounts

List GTM accounts the user has access to

GET

/tagmanager/v2/{parent}/containers

List containers under an account

POST

/tagmanager/v2/{parent}/containers

Create a new container

POST

/tagmanager/v2/{parent}/clients

Create a client in a workspace

GET

/tagmanager/v2/{parent}/built_in_variables

List built-in variables enabled in a workspace

GET

/tagmanager/v2/{parent}/destinations

List destinations linked to a container

Jentic AI Readiness Score

This API is usable in Jentic One now. Its AI-readiness score against Jentic's framework shows where it stands today and where improvements would make it even easier for agents to use.

T

Tag Manager API

- Non-Ready (F)
40/100
49
Foundational Compliance
56
Developer Experience & Jentic Compatibility
19
AI-Readiness & Agent Experience
93
Agent Usability
63
Security
61
AI Discoverability
Powered by JenticScoring Framework 1.0.0 | Scoring Engine 0.4.0
Show dimension breakdown
49

Foundational Compliance

Base layer of spec validity and structural soundness.

Grade: D+Signals: 4
54%

Lint Results

Aggregated quality score from linter diagnostics, weighted by severity.

100%

Resolution Completeness

Percentage of `$ref` references that resolve successfully.

0%

Specification Validity

Checks whether the API description parses successfully and conforms to its declared specification (e.g., OpenAPI).

42%

Structural Integrity

Structural correctness score based on schema issues using logarithmic dampening.

56

Developer Experience & Jentic Compatibility

Clarity, completeness, and ingestion readiness for developers and tooling.

Grade: CSignals: 4
0%

Example Density

How richly the API is illustrated with examples.

100%

Example Validity

Percentage of examples that conform to their schemas.

25%

Response Coverage

Percentage of operations with complete response definitions (success, client error, server error).

100%

Tooling Readiness

Health of API ingestion, bundling, and resolution within Jentic pipelines.

19

AI-Readiness & Agent Experience

Semantic breadth, depth, and agent comprehension for AI systems.

Grade: FSignals: 4
74%

Description Coverage

Coverage of descriptions across API elements.

0%

Error Standardization

Coverage of RFC 9457 Problem Details for error responses.

0%

OperationId Quality

Coverage, uniqueness, and casing consistency of operationIds for AI inference.

0%

Summary Coverage

Coverage of summaries across operations/tags/info.

93

Agent Usability

Functional utility, complexity comfort, and AI orchestration readiness.

Grade: A+Signals: 1
93%

Complexity Comfort

Agent comfort level based on API operational and structural complexity.

63

Security

Trust, risk posture, and security compliance.

Grade: B-Signals: 1
62%

Authentication Strength

Average quality of security schemes based on authentication method strength (weakest link for OAuth2).

61

AI Discoverability

Findability, semantic richness, and reasoning readiness.

Grade: B-Signals: 1
61%

Descriptive Richness

Clarity and depth of descriptions across API elements.

View full reportHow the score is calculatedMore about the dimensions

Score it yourself

Every API in the directory is allowlisted, so you can re-score it with no key required.

Score your own APIScoring CLI agent skill
npx @jentic/api-scorecard-cli score <openapi-url>

Why Jentic?

What agents get from Jentic-routed access to this vendor.

Setup

Wiring the Tag Manager API by hand means setting up Google OAuth, picking the right narrow scope from readonly through publish and delete.containers, building the account and container path templates, and refreshing tokens yourself. Through Jentic you install once, import the Tag Manager API from the API Directory, store the OAuth credential once, and your agent calls it.

Permission scoping

Tag Manager puts the account and container in the URL path (/tagmanager/v2/{parent}/containers), so a rule can pin your agent to one container: it can read and edit tags and triggers there and nothing else. You choose the operations it may call, so destructive ones like container deletion or version publishing are not included unless you add them.

Credential isolation

Your Tag Manager OAuth credential is stored once, encrypted, by your own Jentic One instance and injected at execution time. It never enters the agent's prompt, logs, or context.

Intent-based discovery

Agents search Jentic by intent such as 'create a GTM trigger' or 'list tag manager containers', and Jentic returns the matching Tag Manager v2 operation with its input schema, including the parent path template, so the agent calls the right endpoint without browsing the reference docs.

Related APIs

Alternatives and complements available in the Jentic catalogue.

Complementary

Google Analytics API

→

Read reporting data from the analytics destinations that GTM tags send events to

Use Tag Manager to deploy the GA tracking tags; use Analytics API to query the resulting reports.

Complementary

Google Analytics Admin API

→

Manage GA4 properties, data streams, and accounts that GTM tags target

Pair with Tag Manager to fully automate onboarding a new property - create the GA4 stream, then deploy the GTM tag pointing at it.

Complementary

Google Analytics Data API

→

Run GA4 reports against the data collected via GTM-deployed tags

Use after Tag Manager has deployed tracking tags to retrieve the resulting event and conversion data.

FAQs

Specific to using Tag Manager API through Jentic.

What authentication does the Tag Manager API use?

Google Tag Manager API uses OAuth 2.0 with seven scopes including tagmanager.edit.containers, tagmanager.publish, tagmanager.manage.accounts, and tagmanager.manage.users. Pick the narrowest scope your workflow needs - read-only audits should use tagmanager.readonly. Through Jentic, OAuth tokens and refresh tokens are stored encrypted and rotated automatically; the agent never sees the raw token.

Can I publish a new container version with the Tag Manager API?

Yes. Create or modify entities in a workspace under /tagmanager/v2/{parent}, then call the workspace create_version action and finally publish the resulting version. The publish operation activates the version in the live environment and increments the container's published version pointer.

What are the rate limits for the Tag Manager API?

Google enforces a per-project quota of 25 read requests per second and 25 write requests per second by default, plus a separate per-user limit. Bulk operations should be paginated and back off on 429 responses; quota increases can be requested through the Google Cloud Console for high-volume publishers.

How do I create a tag through Jentic?

Search Jentic for 'create a Google Tag Manager tag', load the schema for POST /tagmanager/v2/{parent}/tags, and execute it with your account, container, and workspace IDs plus the tag definition. Jentic handles the OAuth flow and returns the created tag resource. Get started with Jentic One, the self-hosted execution layer.

Does the Tag Manager API support server-side tagging containers?

Yes. Server-side containers are managed through the same v2 API surface - the container's usageContext field indicates whether it is a web, iOS, Android, AMP, or server container. Tags, triggers, and variables specific to server-side templates are configured via the standard tag and trigger endpoints under the workspace.

Can I manage user permissions for a GTM account via the API?

Yes. The user_permissions resource under /tagmanager/v2/accounts/{accountId}/user_permissions supports listing, creating, updating, and revoking access at both the account and container level. This is the recommended way to script onboarding and offboarding when many editors share a GTM property.

Can I limit what my agent is allowed to do with the Google Tag Manager API?

Yes. Because you run Jentic One yourself, your own rules decide which Tag Manager operations and OAuth credentials the agent may use. Since the account and container sit in the URL path (/tagmanager/v2/{parent}/containers), you can pin the agent to a single container so it reads and edits only that container's tags and triggers. You also pick the exact operations it may call, so destructive actions like container deletion or version publishing stay off limits unless you explicitly grant them.

GET STARTED

Start building with Tag Manager API

Explore with Jentic One
View OpenAPI Document