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

# Create tags for a contact

> Creates tags for the contact for the specified channel. TICKET-type tags are only assigned when the contact has an active ticket. The response reports counts for created, assigned, and not-assigned tags, plus details explaining why some could not be assigned.



## OpenAPI

````yaml /openapi.json post /api/public/channels/{channelType}/{platformIdentifier}/tags
openapi: 3.0.0
info:
  title: Vambe AI API
  description: Vambe AI documentation
  version: '1.0'
  contact: {}
servers:
  - url: https://api.vambe.me
    description: Production Server
security: []
tags:
  - name: Vambe AI
    description: ''
paths:
  /api/public/channels/{channelType}/{platformIdentifier}/tags:
    post:
      tags:
        - Channels
      summary: Create tags for a contact
      description: >-
        Creates tags for the contact for the specified channel. TICKET-type tags
        are only assigned when the contact has an active ticket. The response
        reports counts for created, assigned, and not-assigned tags, plus
        details explaining why some could not be assigned.
      operationId: PublicChannelController_addTag
      parameters:
        - name: platformIdentifier
          required: true
          in: path
          description: >-
            The platform identifier for the contact, e.g. phone number (with
            country code) or username
          schema:
            type: string
        - name: x-api-key
          in: header
          description: API key for request authorization
          required: true
          schema:
            type: string
        - name: channelType
          required: true
          in: path
          description: The type of channel to create a tag for
          schema:
            enum:
              - whatsapp
              - playground
              - web-whatsapp
              - instagram
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                tags:
                  type: array
                  items:
                    type: string
      responses:
        '200':
          description: Tags processed successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    example: success
                  createdCount:
                    type: number
                    example: 2
                  assignedCount:
                    type: number
                    example: 3
                  notAssignedCount:
                    type: number
                    example: 1
                  notAssignedTags:
                    type: array
                    items:
                      type: string
                    example:
                      - vip-ticket
                  details:
                    type: string
                    example: >-
                      Some tags were not assigned because they are TICKET type
                      and the contact has no active ticket.
        '401':
          description: Unauthorized - Invalid or missing API key
        '404':
          description: >-
            Not Found - No contact found for the specified channel type and
            platform identifier

````