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

# Create Decision Engine Tag

> Create a tag key with its allowed values and descriptions. The request
fails with 409 if the key exists in the message or the channel tag
configuration.



## OpenAPI

````yaml https://api.hightouch.io/api/swagger.json post /decision-engine/tags
openapi: 3.0.0
info:
  title: Hightouch API
  version: 1.0.0
  description: Hightouch Public Rest API to access syncs, models, sources and destinations
  contact:
    name: Hightouch
    url: https://hightouch.com
servers:
  - url: https://api.hightouch.com/api/v1
security: []
paths:
  /decision-engine/tags:
    post:
      tags:
        - AI Decisioning
      summary: Create Decision Engine Tag
      description: |-
        Create a tag key with its allowed values and descriptions. The request
        fails with 409 if the key exists in the message or the channel tag
        configuration.
      operationId: CreateTag
      parameters:
        - description: The kind of object the tag applies to
          in: query
          name: type
          required: false
          schema:
            $ref: '#/components/schemas/DecisionEngineTagType'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DecisionEngineTagCreate'
      responses:
        '200':
          description: Ok
          content:
            application/json:
              schema:
                anyOf:
                  - $ref: '#/components/schemas/DecisionEngineTag'
                  - $ref: '#/components/schemas/DecisionEngineErrorResponse'
                  - $ref: '#/components/schemas/ValidateErrorJSON'
                  - $ref: '#/components/schemas/InternalServerError'
                nullable: true
        '401':
          description: Unauthorized
        '403':
          description: Forbidden
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DecisionEngineErrorResponse'
        '409':
          description: The tag already exists
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DecisionEngineErrorResponse'
        '422':
          description: Validation Failed
          content:
            application/json:
              schema:
                anyOf:
                  - $ref: '#/components/schemas/DecisionEngineErrorResponse'
                  - $ref: '#/components/schemas/ValidateErrorJSON'
      security:
        - bearerAuth: []
components:
  schemas:
    DecisionEngineTagType:
      type: string
      enum:
        - message
        - channel
      description: |-
        The kind of object a tag applies to. Message tags and channel tags have
        separate configurations.
    DecisionEngineTagCreate:
      description: Request body for creating a Decision Engine tag
      properties:
        key:
          type: string
          description: The tag key. Must not be empty or contain a colon.
        description:
          type: string
          description: Instructions that tell AI tagging how to choose a value for this key
        values:
          items:
            $ref: '#/components/schemas/DecisionEngineTagValue'
          type: array
          description: Allowed values for the key
      required:
        - key
      type: object
      additionalProperties: false
    DecisionEngineTag:
      description: A Decision Engine tag key with its allowed values
      properties:
        key:
          type: string
        description:
          type: string
          description: Instructions that tell AI tagging how to choose a value for this key
        values:
          items:
            $ref: '#/components/schemas/DecisionEngineTagValue'
          type: array
      required:
        - key
        - values
      type: object
      additionalProperties: false
    DecisionEngineErrorResponse:
      properties:
        message:
          type: string
          description: Why the request failed.
      required:
        - message
      type: object
      additionalProperties: false
    ValidateErrorJSON:
      properties:
        message:
          type: string
          enum:
            - Validation failed
          nullable: false
        details:
          properties: {}
          additionalProperties: {}
          type: object
      required:
        - message
        - details
      type: object
      additionalProperties: false
    InternalServerError:
      type: string
      enum:
        - Internal Server Error
      nullable: false
    DecisionEngineTagValue:
      description: An allowed value of a Decision Engine tag
      properties:
        value:
          type: string
          description: The value. Must not be empty or contain a colon.
        description:
          type: string
          description: Instructions that tell AI tagging when to use this value
      required:
        - value
      type: object
      additionalProperties: false
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: Bearer

````