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

# List commented posts

> Returns inbox posts that have comments, ordered by most-recently-commented. Supports filtering by account, platform, minimum comment count, and date range. Uses cursor-based pagination. YouTube has no webhooks, so YouTube commented posts are served live from the platform and only appear when the request is scoped with account_id (they are absent from the unfiltered aggregate); the live YouTube list returns a single page (no cursor).



## OpenAPI

````yaml /api-reference/openapi.json get /inbox/comments
openapi: 3.0.0
info:
  description: >-
    Unified social media inbox API. Read and respond to comments, DMs, reviews,
    and mentions across Instagram, Facebook, Threads, Google Business Profile,
    TikTok, LinkedIn, and YouTube through a single REST API. X/Twitter and
    Trustpilot coming soon.
  title: SocialAPI.AI
  contact:
    name: SocialAPI.AI Support
    email: support@social-api.ai
  license:
    name: MIT
  version: '1.0'
servers:
  - url: https://api.social-api.ai/v1
security: []
paths:
  /inbox/comments:
    get:
      tags:
        - Inbox Comments
      summary: List commented posts
      description: >-
        Returns inbox posts that have comments, ordered by
        most-recently-commented. Supports filtering by account, platform,
        minimum comment count, and date range. Uses cursor-based pagination.
        YouTube has no webhooks, so YouTube commented posts are served live from
        the platform and only appear when the request is scoped with account_id
        (they are absent from the unfiltered aggregate); the live YouTube list
        returns a single page (no cursor).
      parameters:
        - example: acc_01HZ9X3Q4R5M6N7P8V2K0W1J
          description: Filter by connected account ID
          name: account_id
          in: query
          schema:
            type: string
        - description: Filter by brand ID (returns only posts from accounts in this brand)
          name: brand_id
          in: query
          schema:
            type: string
        - example: instagram
          description: >-
            Filter by platform (instagram, facebook, threads, tiktok, linkedin,
            google)
          name: platform
          in: query
          schema:
            type: string
        - example: 1
          description: Only return posts with at least this many comments (default 0)
          name: min_comments
          in: query
          schema:
            type: integer
        - example: '2026-01-01T00:00:00Z'
          description: Only return posts commented after this timestamp (RFC3339)
          name: since
          in: query
          schema:
            type: string
        - example: date
          description: 'Sort field: date (default)'
          name: sort_by
          in: query
          schema:
            type: string
        - example: desc
          description: 'Sort direction: desc (default) or asc'
          name: sort_order
          in: query
          schema:
            type: string
        - example: 25
          description: Max results per page (default 25)
          name: limit
          in: query
          schema:
            type: integer
        - description: Pagination cursor from previous response
          name: cursor
          in: query
          schema:
            type: string
      responses:
        '200':
          description: Paginated list of commented posts
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/api_endpoints.CommentedPostsListResponse'
        '400':
          description: Invalid query parameters
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/api_endpoints.ErrorResponse'
        '401':
          description: Invalid or missing API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/api_endpoints.ErrorResponse'
      security:
        - BearerAuth: []
components:
  schemas:
    api_endpoints.CommentedPostsListResponse:
      type: object
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/social-api_ai_core_api_service.InboxPostRow'
        pagination:
          $ref: '#/components/schemas/api_endpoints.InboxPaginationOpt'
    api_endpoints.ErrorResponse:
      type: object
      properties:
        error:
          $ref: '#/components/schemas/api_endpoints.ErrorBody'
    social-api_ai_core_api_service.InboxPostRow:
      type: object
      properties:
        account_id:
          type: string
        comment_count:
          type: integer
        content:
          type: string
        created_at:
          type: string
        id:
          type: string
        like_count:
          type: integer
        page_id:
          type: string
        permalink:
          type: string
        platform:
          type: string
        platform_id:
          type: string
        published_at:
          type: string
        thumbnail:
          type: string
        updated_at:
          type: string
        user_id:
          type: string
    api_endpoints.InboxPaginationOpt:
      type: object
      properties:
        has_more:
          type: boolean
        next_cursor:
          type: string
    api_endpoints.ErrorBody:
      type: object
      properties:
        code:
          type: string
          example: resource.not_found
        message:
          type: string
          example: Account not found
        meta:
          type: object
          additionalProperties: {}
  securitySchemes:
    BearerAuth:
      description: >-
        Prefix your API key with "Bearer ". Example: `Authorization: Bearer
        sapi_key_...`
      type: apiKey
      name: Authorization
      in: header

````