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

# Run an action on a fetched comment



## OpenAPI

````yaml https://api.bundle.social/swagger-json post /api/v1/comment/import/comments/{commentId}/action
openapi: 3.0.2
info:
  title: bundle.social API
  description: >-
    REST API for social media management. Perfect for AI assistants, GPTs,
    automation tools, and integrations. Post to 14+ platforms including Twitter,
    Instagram, Facebook, LinkedIn, TikTok, Pinterest, Reddit, Discord, Slack,
    YouTube, Mastodon, Bluesky, Threads, and Google Business. Schedule posts,
    manage content, analyze performance, and automate your social media workflow
    across all platforms.
  version: 1.0.0
  contact:
    email: contact@bundle.social
  termsOfService: https://bundle.social/terms
servers:
  - url: https://api.bundle.social
  - url: http://localhost:3001
security:
  - ApiKeyAuth: []
tags:
  - name: app
  - name: organization
  - name: team
  - name: socialAccount
  - name: upload
  - name: post
  - name: postImport
  - name: analytics
  - name: comment
  - name: misc
  - name: postCSV
paths:
  /api/v1/comment/import/comments/{commentId}/action:
    post:
      tags:
        - comment
      summary: Run an action on a fetched comment
      operationId: comment.importActionFetchedComment
      parameters:
        - name: commentId
          in: path
          required: true
          schema:
            type: string
      requestBody:
        description: Body
        content:
          application/json:
            schema:
              type: object
              properties:
                teamId:
                  type: string
                action:
                  type: string
                  enum:
                    - DELETE
                    - HIDE
                    - UNHIDE
                    - LIKE
                    - UNLIKE
                    - APPROVE
                    - REJECT
                reason:
                  type: string
                  maxLength: 500
                banAuthor:
                  type: boolean
              required:
                - teamId
                - action
      responses:
        '200':
          description: '200'
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  item:
                    type: object
                    properties:
                      id:
                        type: string
                      teamId:
                        type: string
                      organizationId:
                        type: string
                        nullable: true
                      postId:
                        type: string
                        nullable: true
                      importedPostId:
                        type: string
                        nullable: true
                      socialAccountId:
                        type: string
                      importId:
                        type: string
                      platform:
                        type: string
                        enum:
                          - FACEBOOK
                          - INSTAGRAM
                          - LINKEDIN
                          - YOUTUBE
                          - TIKTOK
                          - REDDIT
                          - THREADS
                          - MASTODON
                          - BLUESKY
                      externalId:
                        type: string
                      externalParentId:
                        type: string
                        nullable: true
                      externalPostId:
                        type: string
                        nullable: true
                      authorName:
                        type: string
                        nullable: true
                      authorExternalId:
                        type: string
                        nullable: true
                      authorProfileUrl:
                        type: string
                        nullable: true
                      authorAvatarUrl:
                        type: string
                        nullable: true
                      text:
                        type: string
                        nullable: true
                      likesCount:
                        type: number
                      repliesCount:
                        type: number
                      platformData:
                        default: {}
                        type: object
                        properties:
                          canDelete:
                            type: boolean
                            nullable: true
                          canHide:
                            type: boolean
                            nullable: true
                          canLike:
                            type: boolean
                            nullable: true
                          canModerate:
                            type: boolean
                            nullable: true
                          hidden:
                            type: boolean
                            nullable: true
                          likedByMe:
                            type: boolean
                            nullable: true
                          reactionsCount:
                            type: number
                            nullable: true
                          reactionType:
                            type: string
                            enum:
                              - LIKE
                              - LOVE
                              - WOW
                              - HAHA
                              - SAD
                              - ANGRY
                            nullable: true
                          owner:
                            type: boolean
                            nullable: true
                          hideStatus:
                            type: string
                            nullable: true
                          moderationStatus:
                            type: string
                            nullable: true
                          approvalStatus:
                            type: string
                            nullable: true
                          status:
                            type: string
                            nullable: true
                          attachmentType:
                            type: string
                            nullable: true
                          attachmentUrl:
                            type: string
                            nullable: true
                          cid:
                            type: string
                            nullable: true
                          origin:
                            type: string
                            enum:
                              - platform
                              - bundle
                            nullable: true
                          bundleCommentId:
                            type: string
                            nullable: true
                          displayState:
                            type: string
                            enum:
                              - active
                              - thread_deleted
                              - platform_missing
                            nullable: true
                          disabledReason:
                            type: string
                            nullable: true
                        additionalProperties:
                          oneOf:
                            - type: string
                            - type: number
                            - type: boolean
                            - type: string
                              format: 'null'
                              nullable: true
                          nullable: true
                      publishedAt:
                        type: string
                        format: date-time
                        nullable: true
                      createdAt:
                        type: string
                        format: date-time
                        nullable: true
                      updatedAt:
                        type: string
                        format: date-time
                        nullable: true
                      deletedAt:
                        type: string
                        format: date-time
                        nullable: true
                    required:
                      - id
                      - teamId
                      - socialAccountId
                      - importId
                      - platform
                      - externalId
                      - likesCount
                      - repliesCount
                      - createdAt
                      - updatedAt
                required:
                  - success
                  - item
        '400':
          description: '400'
          content:
            application/json:
              schema:
                type: object
                properties:
                  statusCode:
                    type: number
                    nullable: true
                  message:
                    type: string
                  issues:
                    type: array
                    items:
                      type: object
                      properties:
                        code:
                          type: string
                          enum:
                            - invalid_type
                            - invalid_literal
                            - custom
                            - invalid_union
                            - invalid_union_discriminator
                            - invalid_enum_value
                            - unrecognized_keys
                            - invalid_arguments
                            - invalid_return_type
                            - invalid_date
                            - invalid_string
                            - too_small
                            - too_big
                            - invalid_intersection_types
                            - not_multiple_of
                            - not_finite
                          nullable: true
                        message:
                          type: string
                        path:
                          type: array
                          items:
                            oneOf:
                              - type: string
                              - type: number
                          nullable: true
                      required:
                        - message
                    nullable: true
                required:
                  - message
        '401':
          description: '401'
          content:
            application/json:
              schema:
                type: object
                properties:
                  statusCode:
                    type: number
                    nullable: true
                  message:
                    type: string
                required:
                  - message
        '403':
          description: '403'
          content:
            application/json:
              schema:
                type: object
                properties:
                  statusCode:
                    type: number
                    nullable: true
                  message:
                    type: string
                required:
                  - message
        '404':
          description: '404'
          content:
            application/json:
              schema:
                type: object
                properties:
                  statusCode:
                    type: number
                    nullable: true
                  message:
                    type: string
                required:
                  - message
        '429':
          description: '429'
          content:
            application/json:
              schema:
                type: object
                properties:
                  statusCode:
                    type: number
                    nullable: true
                  message:
                    type: string
                required:
                  - message
        '500':
          description: '500'
          content:
            application/json:
              schema:
                type: object
                properties:
                  statusCode:
                    type: number
                    nullable: true
                  message:
                    type: string
                required:
                  - message
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      name: x-api-key
      in: header

````