Using js-genai with googleapis.com

TypeScript integration

✓ Official SDK
Install
npm install js-genai
Quick start
import Js_genai from 'js-genai';

const client = new Js_genai({ accessToken: "YOUR_ACCESS_TOKEN" });
Gets a user's Account & Container access.
curl \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  https://tagmanager.googleapis.com/tagmanager/v2/{path}
Lists all GTM Accounts that a user has access to.
curl \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  https://tagmanager.googleapis.com/tagmanager/v2/accounts
Lists all GTM Tags of a Container.
curl \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  https://tagmanager.googleapis.com/tagmanager/v2/{parent}/tags
SDK on GitHub 📄 API Docs
SDK
js-genai
TypeScript
API
googleapis.com
googleapis.com:tagmanager
At a glance
Language TypeScript
Endpoints52
Base URLhttps://tagmanager.googleapis.com
✓ Official