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

# Like item

> Like an inbox item or comment in Posttu and optionally sync the like to the source social platform.



## OpenAPI

````yaml openapi.json POST /api/v1/inbox/like-item
openapi: 3.1.0
info:
  title: Posttu API
  version: 1.0.0
  description: >-
    Posttu V1 REST API — Workflow automation, social-media post management,
    inbox, tags, and calendar.
servers:
  - url: https://posttu.com
    description: Production
security: []
paths:
  /api/v1/inbox/like-item:
    post:
      tags:
        - Inbox
      summary: Like an inbox item or comment
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/LikeItem'
      responses:
        '200':
          description: Like result
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InboxLikeItemResponse'
        '401':
          description: Error response
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                  - error
      security:
        - ApiKeyAuth: []
components:
  schemas:
    LikeItem:
      type: object
      properties:
        inboxItemId:
          type: string
          description: Posttu Inbox item ID (CUID)
          example: clx123abc456
        externalCommentId:
          type: string
          description: Third-party platform comment ID
          example: ext_comm_abc123
        externalPostId:
          type: string
          description: Third-party platform post ID
          example: ext_post_abc123
        commentId:
          type:
            - string
            - 'null'
          description: Optional specific comment ID if targeting a nested comment
          example: comm_xyz789
        syncToPlatform:
          type: boolean
          default: true
          description: >-
            Whether to dispatch like action to source social platform if
            supported
          example: true
    InboxLikeItemResponse:
      type: object
      properties:
        success:
          type: boolean
          description: Success status
        error:
          type: string
          description: Error message
        data: {}
      required:
        - success
  securitySchemes:
    ApiKeyAuth:
      type: http
      scheme: bearer
      description: 'Pass your API key via the Authorization header: `Bearer <api-key>`'

````

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