Tag Manager Variables
Manage reusable variables that tags and triggers reference inside a tag manager: data-layer lookups, constants, lookup tables, and derived values.
Variables are reusable lookups that tags and triggers reference instead of hardcoding values. Call GET /rest/v1/tag-manager-variables/types for the full set of supported type values (DataLayer, Constant, UrlParameter, Cookie, JavaScript, etc.) and the per-type parameters schema.
For variable types where supportsVariables is true, the variable's own parameters fields can contain {{OtherVariable}} references that resolve at runtime.
Folder assignment goes through POST /rest/v1/tag-manager-asset-folders, so folderId is read-only on this endpoint.
GET/rest/v1/tag-manager-variables
Ours Privacy API key
In: header
Query Parameters
Maximum number of variables to return. Defaults to 25; values below 1 are clamped to 1 and values above 1000 are clamped to 1000.
Opaque pagination cursor from pagination.nextCursor in the previous response. Do not decode or modify it. Malformed cursors return 400 Bad Request.
Parent tag manager whose variables should be returned. Variables are always scoped to one tag manager; discover ids with GET /tag-managers.
1 <= lengthResponse Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/rest/v1/tag-manager-variables?tagManagerId=string"{ "entities": [ { "id": "string", "tagManagerId": "string", "accountId": "string", "name": "string", "type": "string", "parameters": {}, "defaultValue": "string", "lookUpTable": "string", "enabled": true, "folderId": "string", "createdAt": "string", "updatedAt": "string" } ], "pagination": { "nextCursor": "string", "hasMore": true }}POST/rest/v1/tag-manager-variables
Ours Privacy API key
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/rest/v1/tag-manager-variables" \ -H "Content-Type: application/json" \ -d '{ "tagManagerId": "string", "name": "string", "type": "string", "parameters": {} }'{ "id": "string", "tagManagerId": "string", "accountId": "string", "name": "string", "type": "string", "parameters": {}, "defaultValue": "string", "lookUpTable": "string", "enabled": true, "folderId": "string", "createdAt": "string", "updatedAt": "string"}GET/rest/v1/tag-manager-variables/{id}
Ours Privacy API key
In: header
Path Parameters
Variable UUID from the list or create response.
uuidResponse Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/rest/v1/tag-manager-variables/497f6eca-6276-4993-bfeb-53cbbbba6f08"{ "id": "string", "tagManagerId": "string", "accountId": "string", "name": "string", "type": "string", "parameters": {}, "defaultValue": "string", "lookUpTable": "string", "enabled": true, "folderId": "string", "createdAt": "string", "updatedAt": "string"}PATCH/rest/v1/tag-manager-variables/{id}
Ours Privacy API key
In: header
Path Parameters
Variable UUID from the list or create response.
uuidRequest Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X PATCH "https://example.com/rest/v1/tag-manager-variables/497f6eca-6276-4993-bfeb-53cbbbba6f08" \ -H "Content-Type: application/json" \ -d '{}'{ "id": "string", "tagManagerId": "string", "accountId": "string", "name": "string", "type": "string", "parameters": {}, "defaultValue": "string", "lookUpTable": "string", "enabled": true, "folderId": "string", "createdAt": "string", "updatedAt": "string"}DELETE/rest/v1/tag-manager-variables/{id}
Ours Privacy API key
In: header
Path Parameters
Variable UUID from the list or create response.
uuidResponse Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X DELETE "https://example.com/rest/v1/tag-manager-variables/497f6eca-6276-4993-bfeb-53cbbbba6f08"{ "id": "string", "deleted": true}GET/rest/v1/tag-manager-variables/types
Ours Privacy API key
In: header
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/rest/v1/tag-manager-variables/types"{ "entities": [ { "id": "string", "name": "string", "category": "string", "description": "string", "fields": [ { "id": "string", "type": "STRING", "title": "string", "description": "string", "required": true, "default": "string", "availableValues": [ { "value": "string", "label": "string" } ], "allowedKeys": [ "string" ], "validators": [ { "type": "NotEmpty", "min": 0, "max": 0 } ] } ], "supportsVariables": true } ]}How is this guide?

