> ## Documentation Index
> Fetch the complete documentation index at: https://skyvern.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Create tag value

> Register a grouped tag (key, value) with a palette color before any workflow uses it. The label shows a zero workflow count until applied to a workflow.



## OpenAPI

````yaml /api-reference/openapi.json post /v1/tag-values
openapi: 3.1.0
info:
  title: Skyvern API
  description: API for Skyvern
  version: 1.0.0
servers:
  - url: https://api.skyvern.com
    x-fern-server-name: Cloud
  - url: https://api-staging.skyvern.com
    x-fern-server-name: Staging
  - url: http://localhost:8000
    x-fern-server-name: Local
security: []
paths:
  /v1/tag-values:
    post:
      tags:
        - Tags
      summary: Create tag value
      description: >-
        Register a grouped tag (key, value) with a palette color before any
        workflow uses it. The label shows a zero workflow count until applied to
        a workflow.
      operationId: create_tag_value_v1_tag_values_post
      parameters:
        - name: x-api-key
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: >-
              Skyvern API key for authentication. API key can be found at
              https://app.skyvern.com/settings.
            title: X-Api-Key
          description: >-
            Skyvern API key for authentication. API key can be found at
            https://app.skyvern.com/settings.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TagValueCreate'
      responses:
        '200':
          description: Successfully registered tag value
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TagValue'
        '409':
          description: Tag value already exists
        '422':
          description: Invalid key, value, or color
components:
  schemas:
    TagValueCreate:
      properties:
        key:
          type: string
          title: Key
          description: Tag key (group) for the new label.
        value:
          type: string
          title: Value
          description: Tag value (label) to register under the key.
        color:
          anyOf:
            - type: string
            - type: 'null'
          title: Color
          description: >-
            Palette color name for the label; a random palette color when
            omitted.
      type: object
      required:
        - key
        - value
      title: TagValueCreate
      description: |-
        Body for ``POST /v1/tag-values``: register a grouped label before any
        workflow uses it. The label shows a zero workflow count until applied.
    TagValue:
      properties:
        key:
          type: string
          title: Key
        value:
          type: string
          title: Value
        color:
          type: string
          title: Color
        workflow_count:
          type: integer
          title: Workflow Count
          description: >-
            Number of non-deleted workflows currently carrying this (key, value)
            label.
          default: 0
      type: object
      required:
        - key
        - value
        - color
      title: TagValue
      description: |-
        Tag-value color registry entry: the palette color assigned to a grouped
        (key, value) pair.

````