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

# Get Comments

> Retrieve comments for a Moment. Omit `replyToId` for top-level comments with nested reply previews; set `replyToId` to page direct replies.



## OpenAPI

````yaml GET /comments
openapi: 3.1.0
info:
  title: In•Process API
  description: >-
    The In•Process API enables browsing and managing moments from timelines.
    Retrieve moments from a specific artist's timeline, browse the in•process
    collective timeline, or filter by collection. The API supports creating
    moments, managing collections, handling payments, and interacting with the
    In•Process protocol ecosystem.
  version: 1.0.0
servers:
  - url: https://api.inprocess.world/api
    description: Production server
security: []
paths:
  /comments:
    get:
      summary: Get Comments
      description: >-
        Retrieve comments for a Moment. Omit `replyToId` for top-level comments
        with nested reply previews; set `replyToId` to page direct replies.
      operationId: getComments
      parameters:
        - name: collectionAddress
          in: query
          description: Moment contract address
          required: true
          schema:
            type: string
        - name: tokenId
          in: query
          description: Token ID
          required: true
          schema:
            type: string
        - name: chainId
          in: query
          description: 'Chain ID (optional, default: Base, 8453)'
          required: false
          schema:
            type: integer
            default: 8453
        - name: offset
          in: query
          description: Pagination offset (optional, defaults to 0)
          required: false
          schema:
            type: number
            default: 0
        - name: replyToId
          in: query
          description: >-
            When set, return direct replies to this protocol `commentId`
            (paginated). When omitted, return top-level comments with nested
            reply previews.
          required: false
          schema:
            type: string
            example: '0xab6776473e27a7c8f9ee24553dfae47a10eb525142f6161de6346ecf48e77b60'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CommentsResponse'
              example:
                comments:
                  - id: a1b2c3d4-e5f6-7890-abcd-ef1234567890
                    sender: '0xabc0000000000000000000000000000000000001'
                    username: alice
                    comment: Love this track
                    timestamp: 1753315200000
                    commentId: >-
                      0xab6776473e27a7c8f9ee24553dfae47a10eb525142f6161de6346ecf48e77b60
                    replyToId: null
                    nonce: '0'
                    replyCount: 2
                    replies:
                      - id: b2c3d4e5-f6a7-8901-bcde-f12345678901
                        sender: '0xdef0000000000000000000000000000000000002'
                        username: bob
                        comment: Same here
                        timestamp: 1753315300000
                        commentId: >-
                          0xbb6776473e27a7c8f9ee24553dfae47a10eb525142f6161de6346ecf48e77b61
                        replyToId: >-
                          0xab6776473e27a7c8f9ee24553dfae47a10eb525142f6161de6346ecf48e77b60
                        nonce: '1'
                        replyCount: 0
                        replies: []
                  - id: c3d4e5f6-a7b8-9012-cdef-123456789012
                    sender: '0x1110000000000000000000000000000000000003'
                    username: carol
                    comment: Minted with a note
                    timestamp: 1753315100000
                    commentId: null
                    replyToId: null
                    nonce: null
                    replyCount: 0
                    replies: []
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security: []
components:
  schemas:
    CommentsResponse:
      type: object
      required:
        - comments
      properties:
        comments:
          type: array
          description: Top-level comments (default) or direct replies when replyToId is set
          items:
            $ref: '#/components/schemas/MomentComment'
    Error:
      type: object
      required:
        - status
        - message
      properties:
        status:
          type: string
          enum:
            - error
          description: Error status
        message:
          type: string
          description: Error message
        errors:
          type: array
          description: >-
            Optional array of field-level validation errors. Typically included
            in 400 Bad Request responses for validation errors.
          items:
            type: object
            required:
              - field
              - message
            properties:
              field:
                type: string
                description: The field name that failed validation
              message:
                type: string
                description: The validation error message for this field
    MomentComment:
      type: object
      required:
        - id
        - sender
        - username
        - comment
        - timestamp
        - commentId
        - replyToId
        - nonce
        - replyCount
        - replies
      properties:
        id:
          type: string
          format: uuid
          description: Supabase UUID of the comment row
        sender:
          type: string
          description: Address of the comment sender
        username:
          type: string
          description: Username of the comment sender
        comment:
          type: string
          description: Comment text
        timestamp:
          type: number
          description: Unix timestamp in milliseconds of when the comment was made
        commentId:
          type: string
          nullable: true
          description: >-
            Onchain comments-protocol id. Null for mint-time comments from
            collect, which cannot be replied to onchain.
        replyToId:
          type: string
          nullable: true
          description: >-
            Parent `commentId` when this comment is a reply. Null for top-level
            comments.
        nonce:
          type: string
          nullable: true
          description: >-
            Protocol nonce used to build an onchain reply target. Null for
            mint-time comments.
        replyCount:
          type: integer
          minimum: 0
          description: >-
            Number of direct child replies. Meaningful on top-level comments;
            preview children and reply-mode items return 0 in v1.
        replies:
          type: array
          description: >-
            Nested reply preview (max 3, oldest first) on top-level responses.
            Empty for reply-mode results and for items inside a preview.
          items:
            $ref: '#/components/schemas/MomentComment'

````