---
title: "CreateTag"
method: POST
path: "/tag/create"
tags: ["Channel_tags"]
---

# CreateTag

`POST /tag/create`

Create channel tag

## Request body

- object
  - `channelId` string, required — <p>The channel ID (can be a string or array of strings).</p>
  - `name` string, required — <p>The tag name.</p>
  - `externalId` string — <p>The external tag ID. Must be unique per channel.</p>
  - `autoAssignPath` string — <p>The auto assign URL path.</p>
  - `autoAssignFunction` string — <p>The auto assign JS function.</p>
  - `autoAssignSeconds` number — <p>The auto assign min. seconds.</p>
  - `autoAssignVisits` number — <p>The auto assign min. visits.</p>
  - `autoAssignSessions` number — <p>The auto assign min. sessions.</p>

## Response `200`

Success-Response:

- object
  - `tagId` string
  - `success` boolean, required

---

[API](https://skmtc.dev/cleverpush/apis/cleverpush-api-reference.md) · [All operations](https://skmtc.dev/cleverpush/apis/cleverpush-api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/cleverpush/cleverpush-api-reference/revisions/c2dffd898fd9/schema)
