> ## 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 Discussion Reactions

> Return emoji reaction groups for a discussion.

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

ACL: the contact must be able to view the discussion (§11 #2 — can_view gate).

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

Returns 404 when the discussion does not exist or is deleted.
Returns 403 when the contact cannot view the discussion.



## OpenAPI

````yaml /openapi/mio-openapi.json get /api/v1/discussions/{discussion_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/discussions/{discussion_id}/reactions:
    get:
      tags:
        - community-discussions
      summary: Get Discussion Reactions
      description: >-
        Return emoji reaction groups for a discussion.


        Dedicated endpoint for per-discussion reaction refresh — useful when the

        client needs an up-to-date reaction bar without re-fetching the full

        discussion payload.


        ACL: the contact must be able to view the discussion (§11 #2 — can_view
        gate).


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

        Returns 404 when the discussion does not exist or is deleted.

        Returns 403 when the contact cannot view the discussion.
      operationId: >-
        community_discussions.get_community_discussions_get_discussions_by_discussion_id_reactions
      parameters:
        - in: path
          name: discussion_id
          required: true
          schema:
            title: Discussion 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/DiscussionReactionGroupListResponse'
          description: Successful Response
        '422':
          content:
            application/vnd.api+json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
      security:
        - HTTPBearer: []
components:
  schemas:
    DiscussionReactionGroupListResponse:
      properties:
        data:
          items:
            $ref: '#/components/schemas/DiscussionReactionGroupResource'
          title: Data
          type: array
      required:
        - data
      title: DiscussionReactionGroupListResponse
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    DiscussionReactionGroupResource:
      description: |-
        JSON:API resource object for a single discussion reaction aggregate.

        Shape:
        {
          "type": "discussion_reaction_groups",
          "id": "<discussion_id>:<emoji>",
          "attributes": { "emoji": "...", "count": 3,
                          "reacted_by_me": true, "my_reaction_id": "..." }
        }

        type is fixed to "discussion_reaction_groups" (snake_case + plural per
        api-contract-consistency.md).  Symmetric with comment_reaction_groups on
        the comments side.
      properties:
        attributes:
          $ref: >-
            #/components/schemas/app__community__schemas__ReactionGroupAttributes
        id:
          title: Id
          type: string
        type:
          const: discussion_reaction_groups
          default: discussion_reaction_groups
          title: Type
          type: string
      required:
        - id
        - attributes
      title: DiscussionReactionGroupResource
      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__community__schemas__ReactionGroupAttributes:
      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
      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

````