# How can you like a specific post through the API?

**URL:** <https://meta.discourse.org/t/how-can-you-like-a-specific-post-through-the-api/224851>\
**Category:** Development\
**Tags:** rest-api\
**Created:** [April 20, 2022, 3:46pm UTC](https://meta.discourse.org/t/how-can-you-like-a-specific-post-through-the-api/224851 "2022-04-20T15:46:12Z")\
**Posts on this page:** 4\
**Page:** 1

## AI-generated summary

[Allen_Chen](/t/-/224851/1) asks if the Discourse API supports liking posts. [Falco](/t/-/224851/2) confirms this is possible, referencing documentation on reverse-engineering the API and the `performPostAction` endpoint. When [Allen_Chen](/t/-/224851/4) inquires about the specific `post_action_type_id` for likes, [Falco](/t/-/224851/5) clarifies that the value is `2`, citing the aforementioned meta topic for verification.

<div class="post-metadata">

**Author:** ![Allen\_Chen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/allen_chen/32/256627_2.png) [@Allen\_Chen](https://meta.discourse.org/u/Allen_Chen)\
**Post date:** [April 20, 2022, 3:46pm UTC](https://meta.discourse.org/t/how-can-you-like-a-specific-post-through-the-api/224851/1 "2022-04-20T15:46:12Z")

</div>

Is there anything in the Discourse API that can help you like a post?

---

<div class="post-metadata">

**Author:** ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)\
**Post date:** [April 20, 2022, 3:58pm UTC](https://meta.discourse.org/t/how-can-you-like-a-specific-post-through-the-api/224851/2 "2022-04-20T15:58:04Z")

</div>

Yes, see [How to reverse engineer the Discourse API](https://meta.discourse.org/t/how-to-reverse-engineer-the-discourse-api/20576) and [Discourse API Docs](https://docs.discourse.org/#operation/performPostAction)

---

<div class="post-metadata">

**Author:** ![Allen\_Chen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/allen_chen/32/256627_2.png) [@Allen\_Chen](https://meta.discourse.org/u/Allen_Chen)\
**Post date:** [April 20, 2022, 4:01pm UTC](https://meta.discourse.org/t/how-can-you-like-a-specific-post-through-the-api/224851/4 "2022-04-20T16:01:49Z")

</div>

what is the “post\_action\_type\_id”?

---

<div class="post-metadata">

**Author:** ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)\
**Post date:** [April 20, 2022, 4:04pm UTC](https://meta.discourse.org/t/how-can-you-like-a-specific-post-through-the-api/224851/5 "2022-04-20T16:04:15Z")

</div>

For like it is `2` as you can check via [Reverse engineer the Discourse API](https://meta.discourse.org/t/how-to-reverse-engineer-the-discourse-api/20576)
