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

# Add a reaction to a comment



## OpenAPI

````yaml post /v1/reactions/{commentId}
openapi: 3.0.0
info:
  title: Thena Platform
  description: The Thena Platform API description
  version: 1.0.0
  contact: {}
servers:
  - url: https://platform.thena.ai
    description: Platform
  - url: http://localhost:8000
    description: Local
security:
  - ApiKey: []
tags: []
paths:
  /v1/reactions/{commentId}:
    post:
      tags:
        - Reactions
      description: >-
        Add a reaction to a comment using emoji name. This endpoint is only
        available for standard and enterprise tier organizations.
      parameters:
        - name: commentId
          required: true
          in: path
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AddReactionDto'
      responses:
        '201':
          description: Operation successful
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CommonReactionResponse'
        '400':
          description: Bad Request
          content:
            application/json:
              example:
                statusCode: 400
                message: Comment ID is required!
                error: Bad Request
        '401':
          description: Unauthorized
          content:
            application/json:
              example:
                statusCode: 401
                message: Unauthorized
                error: Unauthorized
        '403':
          description: Forbidden - Organization tier requirement not met
          content:
            application/json:
              example:
                statusCode: 403
                message: >-
                  This feature is only available for standard and enterprise
                  tier organizations
                error: Forbidden
        '404':
          description: Not Found
          content:
            application/json:
              example:
                statusCode: 404
                message: Emoji not found!
                error: Not Found
        '409':
          description: Conflict
          content:
            application/json:
              example:
                statusCode: 409
                message: You have already reacted to this comment!
                error: Conflict
        '422':
          description: Validation Error
          content:
            application/json:
              example:
                statusCode: 422
                message: Validation failed
                error: Validation Error
                details:
                  - field: name
                    errors:
                      - name should not be empty
        '429':
          description: Too Many Requests
          content:
            application/json:
              example:
                statusCode: 429
                message: Too Many Requests
                error: Too Many Requests
        '500':
          description: Internal Server Error
          content:
            application/json:
              example:
                statusCode: 500
                message: Something went wrong!
                error: Internal Server Error
        '503':
          description: Service Unavailable
          content:
            application/json:
              example:
                statusCode: 503
                message: Service Unavailable
                error: Service Unavailable
components:
  schemas:
    AddReactionDto:
      type: object
      properties:
        name:
          type: string
          description: The name of the reaction
          example: heart
        impersonatedUserEmail:
          type: string
          description: The impersonated user email
        impersonatedUserName:
          type: string
          description: The impersonated user name
        impersonatedUserAvatar:
          type: string
          description: The impersonated user avatar
        metadata:
          type: object
          description: The metadata for the reaction
      required:
        - name
    CommonReactionResponse:
      type: object
      properties:
        status:
          type: boolean
          default: true
          description: The status of the response
        message:
          type: string
          default: Success
          description: The message of the response
        timestamp:
          format: date-time
          type: string
          default: '2024-01-01T00:00:00.000Z'
          description: The timestamp of the response
        data:
          type: boolean
          description: The response for create/update/delete reaction operations
      required:
        - status
        - message
        - timestamp
        - data
  securitySchemes:
    ApiKey:
      type: apiKey
      in: header
      name: x-api-key
      description: 'Enter your API key '

````