# Tag Manager Tags

> Manage the tags that fire inside a tag manager. Tags reference one or more triggers. When a trigger matches, the tag's parameters are evaluated and the tag fires unless one of its block triggers (exceptions) matches the same event.

Source: https://docs.oursprivacy.com/docs/platform-api/tag-manager-tags

Tags are the actions a tag manager performs: fire a Google Analytics event, drop a Meta pixel call, run a custom snippet, etc. Every tag belongs to exactly one [tag manager](https://docs.oursprivacy.com/docs/platform-api/tag-managers) and references trigger ids that decide when it fires. A tag fires when one of its fire triggers matches; block triggers work like Google Tag Manager exceptions and stop the tag only on an event they match.

Browser interaction tracking uses a `CustomEvent` trigger and a Track tag whose `fireTriggerIds` includes the returned trigger ID. See [Programmatic on-page tracking](https://docs.oursprivacy.com/docs/platform-api/tag-manager-triggers#programmatic-on-page-tracking) for the request sequence.

Folder assignment goes through `POST /rest/v1/tag-manager-asset-folders`, so `folderId` is read-only on this endpoint. A tag stays in the tag manager it was created in, so `PATCH` omits `tagManagerId`.

## Discovering supported tag types

`GET /rest/v1/tag-manager-tags/types` lists the supported `type` values and the per-type `parameters` schema. Each field entry tells you whether the value is required, what `validators` apply, and (for fields with a fixed set of choices) the allowed `availableValues`.

## GET /rest/v1/tag-manager-tags

List tags inside a single tag manager. Requires the `tagManagerId` query parameter — tags are always scoped to one parent container. Supports cursor pagination via `limit` and `cursor`; the limit clamp is 1000 so a single request can return the full set (the web-app workspace renders all tags in one shot). Requires API-key scope or current OAuth user permission: tagManagers:find

Request URL: `GET https://app.oursprivacy.com/rest/v1/tag-manager-tags`

Authentication: apiKey or oauth2.

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `limit` | query | integer \| null | No | Maximum number of tags to return. Defaults to 25; values below 1 are clamped to 1 and values above 1000 are clamped to 1000. The web-app passes 1000 to render the full workspace in one request. |
| `cursor` | query | string | No | Opaque pagination cursor from pagination.nextCursor in the previous response. Do not decode or modify it. Malformed cursors return 400 Bad Request. Opaque pagination cursor from pagination.nextCursor in the previous response. Do not decode or modify it. Malformed cursors return 400 Bad Request. |
| `tagManagerId` | query | string | Yes | Parent tag manager whose tags should be returned. |

### Responses

- `200`: Tags scoped to a parent tag manager
- `400`: Bad Request
- `401`: Unauthorized — missing, invalid, or expired API key or OAuth access token
- `403`: Forbidden — credential does not have the required current Ours permission
- `404`: Not Found
- `500`: Internal Server Error

#### `200` response body

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `entities` | object[] | Yes |  |
| `entities[].id` | string | Yes | Server-assigned UUID for this tag. |
| `entities[].tagManagerId` | string | Yes | Parent tag manager that owns this tag. |
| `entities[].accountId` | string | Yes |  |
| `entities[].name` | string | Yes | Human-readable tag name. |
| `entities[].type` | string | Yes | Tag type discriminator. Examples that exist today: `OursTrackTag`, `OursInitTag`, `OursIdentifyTag`, `CustomHtmlTag`. Pick from `GET /tag-manager-tags/types` for the canonical set — names like `GA4Event` are not valid ids. |
| `entities[].parameters` | object | Yes | Type-specific JSON configuration. Shape depends on `type` — inspect a known-good tag of the same type for the field set. Empty object is valid for placeholder tags. |
| `entities[].fireTriggerIds` | string[] | Yes | Triggers that fire this tag. Tag does nothing if this list is empty. |
| `entities[].blockTriggerIds` | string[] \| null | No | Exception triggers: the tag does not fire on an event one of these matches, like GTM exceptions. |
| `entities[].priority` | number \| null | No | Lower numbers fire first. Defaults to 0. |
| `entities[].enabled` | boolean \| null | No | Defaults to `true` on create. |
| `entities[].folderId` | string \| null | No | Folder this tag belongs to in the dashboard. Settable via PATCH — send a folder UUID to assign, or `null` to remove from its current folder. |
| `entities[].createdAt` | string \| null | No |  |
| `entities[].updatedAt` | string \| null | No |  |
| `pagination` | object | Yes |  |
| `pagination.nextCursor` | string \| null | No |  |
| `pagination.hasMore` | boolean | Yes |  |

Full schema: [OpenAPI specification](https://docs.oursprivacy.com/openapi-platform.json).

## POST /rest/v1/tag-manager-tags

Create a new tag inside a tag manager. `tagManagerId` is required in the body. Newly created tags are not assigned to any folder — assign them with `POST /rest/v1/tag-manager-asset-folders`. Requires API-key scope or current OAuth user permission: tagManagers:update

Request URL: `POST https://app.oursprivacy.com/rest/v1/tag-manager-tags`

Authentication: apiKey or oauth2.

### Request body (`application/json`, required)

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `tagManagerId` | string | Yes | Parent tag manager that will own the new tag. |
| `name` | string | Yes | Human-readable tag name. |
| `type` | string | Yes | Tag type discriminator. Pick from `GET /tag-manager-tags/types` for the canonical set (e.g. `OursTrackTag`, `OursInitTag`, `CustomHtmlTag`). Names like `GA4Event` are not valid ids. |
| `parameters` | object | Yes | Type-specific JSON configuration. Send `{}` for a placeholder. |
| `fireTriggerIds` | string[] | Yes | Trigger ids that cause this tag to fire. Use `[]` only for placeholder tags. |
| `blockTriggerIds` | string[] \| null | No | Optional trigger ids that block this tag when they match. |
| `priority` | number \| null | No | Defaults to 0. |
| `enabled` | boolean \| null | No | Defaults to `true`. |

### Responses

- `200`: Created tag
- `400`: Bad Request
- `401`: Unauthorized — missing, invalid, or expired API key or OAuth access token
- `403`: Forbidden — credential does not have the required current Ours permission
- `404`: Not Found
- `500`: Internal Server Error

#### `200` response body

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | string | Yes | Server-assigned UUID for this tag. |
| `tagManagerId` | string | Yes | Parent tag manager that owns this tag. |
| `accountId` | string | Yes |  |
| `name` | string | Yes | Human-readable tag name. |
| `type` | string | Yes | Tag type discriminator. Examples that exist today: `OursTrackTag`, `OursInitTag`, `OursIdentifyTag`, `CustomHtmlTag`. Pick from `GET /tag-manager-tags/types` for the canonical set — names like `GA4Event` are not valid ids. |
| `parameters` | object | Yes | Type-specific JSON configuration. Shape depends on `type` — inspect a known-good tag of the same type for the field set. Empty object is valid for placeholder tags. |
| `fireTriggerIds` | string[] | Yes | Triggers that fire this tag. Tag does nothing if this list is empty. |
| `blockTriggerIds` | string[] \| null | No | Exception triggers: the tag does not fire on an event one of these matches, like GTM exceptions. |
| `priority` | number \| null | No | Lower numbers fire first. Defaults to 0. |
| `enabled` | boolean \| null | No | Defaults to `true` on create. |
| `folderId` | string \| null | No | Folder this tag belongs to in the dashboard. Settable via PATCH — send a folder UUID to assign, or `null` to remove from its current folder. |
| `createdAt` | string \| null | No |  |
| `updatedAt` | string \| null | No |  |

Full schema: [OpenAPI specification](https://docs.oursprivacy.com/openapi-platform.json).

## GET /rest/v1/tag-manager-tags/{id}

Fetch a single tag by id, including its `folderId` (read-only on this endpoint). Requires API-key scope or current OAuth user permission: tagManagers:find

Request URL: `GET https://app.oursprivacy.com/rest/v1/tag-manager-tags/{id}`

Authentication: apiKey or oauth2.

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | string | Yes |  |

### Responses

- `200`: Tag details
- `400`: Bad Request
- `401`: Unauthorized — missing, invalid, or expired API key or OAuth access token
- `403`: Forbidden — credential does not have the required current Ours permission
- `404`: Not Found
- `500`: Internal Server Error

#### `200` response body

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | string | Yes | Server-assigned UUID for this tag. |
| `tagManagerId` | string | Yes | Parent tag manager that owns this tag. |
| `accountId` | string | Yes |  |
| `name` | string | Yes | Human-readable tag name. |
| `type` | string | Yes | Tag type discriminator. Examples that exist today: `OursTrackTag`, `OursInitTag`, `OursIdentifyTag`, `CustomHtmlTag`. Pick from `GET /tag-manager-tags/types` for the canonical set — names like `GA4Event` are not valid ids. |
| `parameters` | object | Yes | Type-specific JSON configuration. Shape depends on `type` — inspect a known-good tag of the same type for the field set. Empty object is valid for placeholder tags. |
| `fireTriggerIds` | string[] | Yes | Triggers that fire this tag. Tag does nothing if this list is empty. |
| `blockTriggerIds` | string[] \| null | No | Exception triggers: the tag does not fire on an event one of these matches, like GTM exceptions. |
| `priority` | number \| null | No | Lower numbers fire first. Defaults to 0. |
| `enabled` | boolean \| null | No | Defaults to `true` on create. |
| `folderId` | string \| null | No | Folder this tag belongs to in the dashboard. Settable via PATCH — send a folder UUID to assign, or `null` to remove from its current folder. |
| `createdAt` | string \| null | No |  |
| `updatedAt` | string \| null | No |  |

Full schema: [OpenAPI specification](https://docs.oursprivacy.com/openapi-platform.json).

## PATCH /rest/v1/tag-manager-tags/{id}

Partially update a tag. Only the fields you send are changed. Tags cannot be moved between tag managers. To assign a tag to a folder, use `POST /rest/v1/tag-manager-asset-folders`. Requires API-key scope or current OAuth user permission: tagManagers:update

Request URL: `PATCH https://app.oursprivacy.com/rest/v1/tag-manager-tags/{id}`

Authentication: apiKey or oauth2.

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | string | Yes |  |

### Request body (`application/json`, required)

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `name` | string | No | Updated tag name. |
| `type` | string | No | Updated tag type. Pick from `GET /tag-manager-tags/types`. |
| `parameters` | object | No | Updated type-specific JSON configuration. |
| `fireTriggerIds` | string[] | No | Replaces the fire trigger list wholesale. |
| `blockTriggerIds` | string[] \| null | No | Replaces the block trigger list wholesale. Send `null` to clear. |
| `priority` | number \| null | No | Updated priority. |
| `enabled` | boolean \| null | No | Pause/resume the tag without changing other fields. |

### Responses

- `200`: Updated tag
- `400`: Bad Request
- `401`: Unauthorized — missing, invalid, or expired API key or OAuth access token
- `403`: Forbidden — credential does not have the required current Ours permission
- `404`: Not Found
- `500`: Internal Server Error

#### `200` response body

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | string | Yes | Server-assigned UUID for this tag. |
| `tagManagerId` | string | Yes | Parent tag manager that owns this tag. |
| `accountId` | string | Yes |  |
| `name` | string | Yes | Human-readable tag name. |
| `type` | string | Yes | Tag type discriminator. Examples that exist today: `OursTrackTag`, `OursInitTag`, `OursIdentifyTag`, `CustomHtmlTag`. Pick from `GET /tag-manager-tags/types` for the canonical set — names like `GA4Event` are not valid ids. |
| `parameters` | object | Yes | Type-specific JSON configuration. Shape depends on `type` — inspect a known-good tag of the same type for the field set. Empty object is valid for placeholder tags. |
| `fireTriggerIds` | string[] | Yes | Triggers that fire this tag. Tag does nothing if this list is empty. |
| `blockTriggerIds` | string[] \| null | No | Exception triggers: the tag does not fire on an event one of these matches, like GTM exceptions. |
| `priority` | number \| null | No | Lower numbers fire first. Defaults to 0. |
| `enabled` | boolean \| null | No | Defaults to `true` on create. |
| `folderId` | string \| null | No | Folder this tag belongs to in the dashboard. Settable via PATCH — send a folder UUID to assign, or `null` to remove from its current folder. |
| `createdAt` | string \| null | No |  |
| `updatedAt` | string \| null | No |  |

Full schema: [OpenAPI specification](https://docs.oursprivacy.com/openapi-platform.json).

## DELETE /rest/v1/tag-manager-tags/{id}

Delete a tag manager tag. Requires API-key scope or current OAuth user permission: tagManagers:update

Request URL: `DELETE https://app.oursprivacy.com/rest/v1/tag-manager-tags/{id}`

Authentication: apiKey or oauth2.

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | string | Yes |  |

### Responses

- `200`: Deleted successfully
- `400`: Bad Request
- `401`: Unauthorized — missing, invalid, or expired API key or OAuth access token
- `403`: Forbidden — credential does not have the required current Ours permission
- `404`: Not Found
- `500`: Internal Server Error

#### `200` response body

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | string | Yes |  |
| `deleted` | boolean | Yes |  |

Full schema: [OpenAPI specification](https://docs.oursprivacy.com/openapi-platform.json).

## GET /rest/v1/tag-manager-tags/types

Lists every tag template the platform supports — what `type` discriminator to send on create/patch, and the shape of the type-specific `parameters` payload (fields, validators, required flags, available values for selects). Account-agnostic: the response is the same for every API key. The same registry powers server-side validation on `POST` / `PATCH` so what this endpoint advertises matches what the server enforces. Requires API-key scope or current OAuth user permission: tagManagers:find

Request URL: `GET https://app.oursprivacy.com/rest/v1/tag-manager-tags/types`

Authentication: apiKey or oauth2.

### Responses

- `200`: Tag template descriptors
- `400`: Bad Request
- `401`: Unauthorized — missing, invalid, or expired API key or OAuth access token
- `403`: Forbidden — credential does not have the required current Ours permission
- `404`: Not Found
- `500`: Internal Server Error

#### `200` response body

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `entities` | object[] | Yes |  |
| `entities[].id` | string | Yes | Type discriminator — pass this as `type` on create/patch. |
| `entities[].name` | string | Yes | Human-readable display name. |
| `entities[].category` | string | Yes | Grouping label. |
| `entities[].description` | string \| null | No |  |
| `entities[].fields` | object[] | Yes |  |
| `entities[].fields[].id` | string | Yes | Parameter key that goes in the `parameters` payload at create/patch. |
| `entities[].fields[].type` | string | Yes | Underlying data type of the parameter value. One of: `"STRING"`, `"BOOLEAN"`, `"INTEGER"`, `"FLOAT"`, `"TABLE"`. |
| `entities[].fields[].title` | string | Yes | Human-readable title for the field. |
| `entities[].fields[].description` | string \| null | No |  |
| `entities[].fields[].required` | boolean \| null | No | When `true`, omitting or sending an empty value for this parameter on create/patch returns HTTP 400. |
| `entities[].fields[].default` | string \| null \| number \| boolean \| (string \| JsonValue[] \| object)[] \| object | No | Default value when the caller omits the parameter on create. |
| `entities[].fields[].availableValues` | object[] \| null | No | When present, the field accepts only one of these values. Send the `value` string in `parameters`; the `label` is for display. |
| `entities[].fields[].availableValues[].value` | string | Yes |  |
| `entities[].fields[].availableValues[].label` | string | Yes |  |
| `entities[].fields[].allowedKeys` | string[] \| null | No | For TABLE-typed fields, the predefined keys each row may contain. |
| `entities[].fields[].validators` | object[] \| null | No | Server-enforced rules applied to this field at create and patch. |
| `entities[].fields[].validators[].type` | string | Yes | One of: `"NotEmpty"`, `"CharacterLength"`, `"Url"`, `"Email"`, `"Number"`, `"Range"`. |
| `entities[].fields[].validators[].min` | number \| null | No |  |
| `entities[].fields[].validators[].max` | number \| null | No |  |

Full schema: [OpenAPI specification](https://docs.oursprivacy.com/openapi-platform.json).
