> ## 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.

# Reply to Comment

> Reply to a specific comment on a post that you published using Mallary.

Available on all plans.

Mallary posts the exact `message` you send. Your AI agent or script must write the reply.

For a LinkedIn Page post, Mallary sends the reply as the Page you selected. LinkedIn may ask you to reconnect once so Mallary can reply as that Page.


## OpenAPI

````yaml POST /api/v1/comments/reply
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/reply:
    post:
      summary: Reply to a comment
      description: >-
        Posts the exact supplied `message` as a reply/comment through the
        connected platform account. Mallary does not generate the text.
      operationId: replyToComment
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ReplyToCommentRequest'
      responses:
        '200':
          description: Reply posted
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ReplyToCommentResponse'
        '400':
          description: Invalid request
        '401':
          description: Missing or invalid API key
        '404':
          description: Post not found
        '409':
          description: Post not published yet or platform connection unavailable
        '429':
          description: Platform or API rate limit exceeded
components:
  schemas:
    ReplyToCommentRequest:
      type: object
      required:
        - post_id
        - comment_id
        - message
      properties:
        post_id:
          type: integer
        comment_id:
          type: string
        message:
          type: string
          minLength: 1
          description: >-
            Exact reply text to post. Mallary does not generate or rewrite this
            text.
    ReplyToCommentResponse:
      type: object
      properties:
        status:
          type: string
          enum:
            - ok
        data:
          type: object
          properties:
            post_id:
              type: integer
            platform:
              $ref: '#/components/schemas/CommentPlatform'
            remote_post_id:
              type: string
            comment_id:
              type: string
            reply_id:
              type: string
              nullable: true
            message:
              type: string
    CommentPlatform:
      type: string
      description: >-
        Platforms that currently support comment listing and reply posting
        through Mallary.
      enum:
        - facebook
        - instagram
        - threads
        - linkedin
        - x
        - twitter
        - youtube
        - bluesky
  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.