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

# Add a tag to a conversation

> Adiciona uma tag ao atendimento atual. Exige a permissão "Categorizar". Tag que não existe no workspace: 404. Respeita a visibilidade de conversas do papel do usuário do token (403 fora dela).



## OpenAPI

````yaml post /v1/conversations/{id}/tags
openapi: 3.0.0
info:
  title: Kinbox API
  description: Kinbox public API
  version: '2.0'
  contact: {}
servers: []
security: []
tags: []
paths:
  /v1/conversations/{id}/tags:
    post:
      tags:
        - v1Conversations
      summary: Add a tag to a conversation
      description: >-
        Adiciona uma tag ao atendimento atual. Exige a permissão "Categorizar".
        Tag que não existe no workspace: 404. Respeita a visibilidade de
        conversas do papel do usuário do token (403 fora dela).
      operationId: addTag
      parameters:
        - name: id
          required: true
          in: path
          description: >-
            ID da conversa (`call.customerPlatformId` devolvido pelas rotas de
            sessões)
          schema:
            type: number
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AddConversationTagPublicDto'
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConversationActionPublicResponseDto'
components:
  schemas:
    AddConversationTagPublicDto:
      type: object
      properties:
        tagId:
          type: number
          description: ID da tag (GET /v1/tags).
      required:
        - tagId
    ConversationActionPublicResponseDto:
      type: object
      properties:
        resolved:
          type: boolean
        alreadyResolved:
          type: boolean
          description: A conversa já estava resolvida
        reopened:
          type: boolean
        alreadyOpen:
          type: boolean
          description: A conversa já estava aberta
        assigned:
          type: boolean
        operatorId:
          type: object
          nullable: true
        moved:
          type: boolean
        groupId:
          type: object
          nullable: true
        added:
          type: boolean
        alreadyPresent:
          type: boolean
          description: A tag já estava na conversa
        removed:
          type: boolean

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.