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

# Get Comment Reactions

> Return emoji reaction groups for a comment.

Dedicated endpoint for per-comment reaction refresh — useful when the
client needs an up-to-date reaction bar without re-fetching the full
comment payload.

ACL gate: the contact must be able to view comments on the comment's
target (via TargetRegistry.can_user_view_comments). This is the same
gate used by get() and list_for_target(). Mirrors the discussion
equivalent (GET /api/discussions/{id}/reactions §11 #2).

Returns a JSON:API collection of comment_reaction_groups resources:
  data: [
    {
      "type": "comment_reaction_groups",
      "id": "<comment_id>:<emoji>",
      "attributes": {
        "emoji": "👍",
        "count": 3,
        "reacted_by_me": true,
        "my_reaction_id": "rxn-uuid-..."
      }
    },
    ...
  ]

Returns 404 when the comment does not exist or is soft-deleted.
Returns 403 when the contact cannot view comments on the target.
Returns 401 when unauthenticated.



## OpenAPI

````yaml /openapi/mio-openapi.json get /api/v1/comments/{comment_id}/reactions
openapi: 3.1.0
info:
  description: >-
    Production API reference for Membership.io. Use the authored guides for
    workflows and the generated endpoint pages for exact parameters and schemas.
  title: Membership.io API
  version: 0.1.0
servers:
  - description: Production
    url: https://api.member.dev
security:
  - bearerAuth: []
paths:
  /api/v1/comments/{comment_id}/reactions:
    get:
      tags:
        - comments
      summary: Get Comment Reactions
      description: |-
        Return emoji reaction groups for a comment.

        Dedicated endpoint for per-comment reaction refresh — useful when the
        client needs an up-to-date reaction bar without re-fetching the full
        comment payload.

        ACL gate: the contact must be able to view comments on the comment's
        target (via TargetRegistry.can_user_view_comments). This is the same
        gate used by get() and list_for_target(). Mirrors the discussion
        equivalent (GET /api/discussions/{id}/reactions §11 #2).

        Returns a JSON:API collection of comment_reaction_groups resources:
          data: [
            {
              "type": "comment_reaction_groups",
              "id": "<comment_id>:<emoji>",
              "attributes": {
                "emoji": "👍",
                "count": 3,
                "reacted_by_me": true,
                "my_reaction_id": "rxn-uuid-..."
              }
            },
            ...
          ]

        Returns 404 when the comment does not exist or is soft-deleted.
        Returns 403 when the contact cannot view comments on the target.
        Returns 401 when unauthenticated.
      operationId: comments.get_comments_get_comments_by_comment_id_reactions
      parameters:
        - in: path
          name: comment_id
          required: true
          schema:
            title: Comment Id
            type: string
        - in: query
          name: hub_id
          required: true
          schema:
            title: Hub Id
            type: string
      responses:
        '200':
          content:
            application/vnd.api+json:
              schema:
                $ref: '#/components/schemas/ReactionGroupListResponse'
          description: Successful Response
        '422':
          content:
            application/vnd.api+json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
      security:
        - HTTPBearer: []
components:
  schemas:
    ReactionGroupListResponse:
      description: |-
        JSON:API list envelope for comment reaction groups.

        Returned by GET /api/comments/{comment_id}/reactions.

        Shape:
        {
          "data": [ <ReactionGroupResource>, ... ]
        }
      properties:
        data:
          items:
            $ref: '#/components/schemas/ReactionGroupResource'
          title: Data
          type: array
      required:
        - data
      title: ReactionGroupListResponse
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    ReactionGroupResource:
      description: >-
        JSON:API resource object for a comment reaction group (per-emoji
        aggregate).


        Shape:

        {
          "type": "comment_reaction_groups",
          "id": "<comment_id>:<emoji>",
          "attributes": { "emoji": "...", "count": 3,
                          "reacted_by_me": true, "my_reaction_id": "..." }
        }
      properties:
        attributes:
          $ref: '#/components/schemas/app__comments__schemas__ReactionGroupAttributes'
        id:
          title: Id
          type: string
        type:
          const: comment_reaction_groups
          default: comment_reaction_groups
          title: Type
          type: string
      required:
        - id
        - attributes
      title: ReactionGroupResource
      type: object
    ValidationError:
      properties:
        ctx:
          title: Context
          type: object
        input:
          title: Input
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          title: Location
          type: array
        msg:
          title: Message
          type: string
        type:
          title: Error Type
          type: string
      required:
        - loc
        - msg
        - type
      title: ValidationError
      type: object
    app__comments__schemas__ReactionGroupAttributes:
      description: |-
        Attributes for a comment_reaction_groups JSON:API resource object.

        Represents a per-emoji aggregate for a comment's reactions.

        Fields:
          emoji:          The emoji character(s), e.g. "👍".
          count:          Total number of reactions with this emoji.
          reacted_by_me:  True if the requesting contact reacted with this emoji.
          my_reaction_id: UUID of the requesting contact's reaction, or None.

        Decision A2 (§10): stable scoped id = "<comment_id>:<emoji>".
      properties:
        count:
          title: Count
          type: integer
        emoji:
          title: Emoji
          type: string
        my_reaction_id:
          anyOf:
            - type: string
            - type: 'null'
          title: My Reaction Id
        reacted_by_me:
          title: Reacted By Me
          type: boolean
      required:
        - emoji
        - count
        - reacted_by_me
        - my_reaction_id
      title: ReactionGroupAttributes
      type: object
  securitySchemes:
    bearerAuth:
      bearerFormat: JWT or mio_sk API key
      description: >-
        Send platform JWTs, contact JWTs, or team API keys as `Authorization:
        Bearer <token>`.
      scheme: bearer
      type: http
    HTTPBearer:
      scheme: bearer
      type: http

````