# Create tags

Create a profile tag.
- **Preconditions**: the name must be non-empty, at most 100 characters, and not already used by a tag in the team.
- **Effect**: creates the tag and returns its id. Unlike groups, tags have no count limit.
- **Retry**: a duplicate name is rejected rather than reusing the existing tag. Confirm with `/envtag/all`.

Endpoint: POST /api/envtag/create
Version: 2026-09-05

## Request fields (application/json):

  - `tagName` (string, required)
    tag name

## Response 200 fields (application/json):

  - `code` (integer, required)
    Return result code 0:Normal Other codes are exceptions.

  - `msg` (string | null, required)
    error message

  - `data` (object, required)

  - `data.id` (string, required)
    ID of tags

  - `data.tagName` (string, required)
    Name of tags

  - `requestId` (string, required)
    Operation Request ID

  - `error` (object)

