---
title: "Like or unlike comment"
method: POST
path: "/social-media/like/comment/{commentId}"
tags: ["📸 Social Media"]
---

# Like or unlike comment

`POST /social-media/like/comment/{commentId}`

The API endpoint enables users to like or unlike a social media comments.

By accessing this endpoint, users can interact with the comment by either liking or unliking it.

## Response `200`

Like or unlike post Copy

- object
  - `data` object
    - `isLiked` boolean
  - `message` string
  - `statusCode` number
  - `success` boolean

---

[API](https://skmtc.net/hiteshchoudhary-ssesph/apis/freeapi.md) · [All operations](https://skmtc.net/hiteshchoudhary-ssesph/apis/freeapi/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/hiteshchoudhary-ssesph/freeapi/revisions/a9f3a290e4dc/schema)
