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

# List Comments

> List the comments on a post that you published with Mallary.

Available on all plans.

Use `post_id` with the Mallary job/post ID returned by the posts API.

If that ID belongs to a grouped multi-platform post and you omit `platform`, Mallary reads every supported platform job in the group. It then returns a combined comment list.

The response uses `platform: "multiple"`, and each comment includes its concrete `platform` and `post_id`. For platforms that Mallary cannot read, `platform_errors` can include the read failures.

If you want one platform from a grouped post, pass `platform`. Mallary then routes the request to the matching sibling job in that group.

When the platform returns them, Mallary includes own/initial comments. When Mallary identifies the author as the connected account, these comments have `is_own: true` and `can_reply: false`.

For a LinkedIn Page post, Mallary reads comments for the Page you selected when you connected LinkedIn. A comment can include the person's name and LinkedIn ID when LinkedIn sends them. LinkedIn may ask you to reconnect once so Mallary can read Page comments.


## OpenAPI

````yaml GET /api/v1/comments
openapi: 3.0.3
info:
  title: Mallary API
  version: 1.6.0
  description: >
    Public API for multi-platform publishing, analytics, media upload, and
    webhooks.


    Authentication:

    - Use header `Authorization: Bearer {api_key}`.

    - API key identity is authoritative. Do not use `user_id` to identify a
    caller.


    Connection profiles:

    - Omit `profile_id` to use the authenticated user's default profile.

    - Send the profile's random public `profile_id` when you want to publish,
    list posts, read post analytics or audience counts, list platforms, update
    settings, or disconnect a platform for a non-default profile.

    - Use `GET /api/v1/profiles` to list profile IDs.

    - Total social media accounts: Starter 5 ($15/month), Pro 15 ($29/month),
    Business 100 ($95/month). Posts are unlimited. Scheduling, analytics, and AI
    auto-replies are included. X publishing and comments use credits at cost;
    analytics and account lookups use no credits. Existing customers keep their
    current terms; use the authenticated workspace limits.


    Rate limits (per user, per minute) depend on subscription plan:

    - plan_id 1: 75 req/min

    - plan_id 2: 150 req/min

    - plan_id 3: 750 req/min

    - plan_id 4: 1500 req/min
servers:
  - url: https://mallary.ai
    description: Production
security:
  - bearerAuth: []
externalDocs:
  description: Full product docs
  url: https://docs.mallary.ai/
paths:
  /api/v1/comments:
    get:
      summary: List comments on a published post
      description: >-
        Returns comments/replies for one Mallary-published platform post so an
        external agent can draft responses in the user's voice. Available on all
        plans.
      operationId: listPostComments
      parameters:
        - in: query
          name: post_id
          required: true
          schema:
            type: integer
          description: >-
            Mallary job/post ID returned by `POST /api/v1/post` or `GET
            /api/v1/posts`.
        - in: query
          name: platform
          required: false
          schema:
            $ref: '#/components/schemas/CommentPlatform'
          description: >-
            Optional platform hint. Required only when a stored post cannot be
            disambiguated from the job record.
        - in: query
          name: profile_id
          required: false
          schema:
            $ref: '#/components/schemas/ProfileId'
          description: >-
            Optional connection profile ID. Omit to use the profile that created
            the post.
        - in: query
          name: limit
          required: false
          schema:
            type: integer
            minimum: 1
            maximum: 100
            default: 25
      responses:
        '200':
          description: Comments retrieved
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListCommentsResponse'
        '400':
          description: Invalid post ID or unsupported platform
        '401':
          description: Missing or invalid API key
        '404':
          description: Post not found
        '409':
          description: Post not published yet or platform connection unavailable
components:
  schemas:
    CommentPlatform:
      type: string
      description: >-
        Platforms that currently support comment listing and reply posting
        through Mallary.
      enum:
        - facebook
        - instagram
        - threads
        - linkedin
        - x
        - twitter
        - youtube
        - bluesky
    ProfileId:
      type: string
      pattern: ^[A-Za-z0-9]{6,32}$
      example: AbC123xYz90
      description: Random public connection profile ID returned by `GET /api/v1/profiles`.
    ListCommentsResponse:
      type: object
      properties:
        status:
          type: string
          enum:
            - ok
        data:
          type: object
          properties:
            post_id:
              type: integer
            platform:
              type: string
              description: >-
                A concrete platform for platform-specific requests, or
                `multiple` when comments were aggregated across a grouped
                multi-platform post.
              enum:
                - facebook
                - instagram
                - threads
                - linkedin
                - x
                - twitter
                - youtube
                - multiple
            remote_post_id:
              type: string
              nullable: true
            comments:
              type: array
              items:
                $ref: '#/components/schemas/Comment'
            supported_platforms:
              type: array
              items:
                $ref: '#/components/schemas/CommentPlatform'
            platforms:
              type: array
              description: >-
                Platforms checked when a grouped multi-platform post is queried
                without a platform filter.
              items:
                $ref: '#/components/schemas/CommentPlatform'
            unsupported_platforms:
              type: array
              description: >-
                Platforms in the grouped post that do not currently support
                comment listing through Mallary.
              items:
                type: string
            platform_errors:
              type: array
              description: >-
                Per-platform read errors for aggregate grouped-post requests.
                Other platform comments may still be returned.
              items:
                $ref: '#/components/schemas/CommentPlatformError'
    Comment:
      type: object
      properties:
        id:
          type: string
        platform:
          $ref: '#/components/schemas/CommentPlatform'
        post_id:
          type: integer
        remote_post_id:
          type: string
        text:
          type: string
        author_name:
          type: string
          nullable: true
        author_id:
          type: string
          nullable: true
        author_username:
          type: string
          nullable: true
        created_at:
          type: string
          nullable: true
        can_reply:
          type: boolean
          description: >-
            False when Mallary can identify the comment as authored by the
            connected account.
        is_own:
          type: boolean
          description: >-
            True when Mallary can identify the comment as authored by the
            connected account.
    CommentPlatformError:
      type: object
      properties:
        post_id:
          type: integer
        platform:
          $ref: '#/components/schemas/CommentPlatform'
        http_status:
          type: integer
        code:
          type: string
        message:
          type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 'Use `Authorization: Bearer {api_key}`'

````

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