---
title: "Toggle Post Like"
method: POST
path: "/blog/posts/{post_id}/like"
tags: ["blog"]
---

# Toggle Post Like

`POST /blog/posts/{post_id}/like`

## Request

- Base URL: `https://api.threadchain.pro` (the document declares no server; this is the origin it was published from)
- URL: `https://api.threadchain.pro/blog/posts/{post_id}/like`
- Auth: none declared

## Path parameters

- `post_id` string, uuid, required

## Headers

- `X-Blog-Visitor-Id` string, nullable

## Response `200`

Successful Response

- BlogLikeToggleResponse
  - `liked_by_viewer` boolean, required
  - `like_count` integer, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/threadchain/apis/threadchain-backend.md) - [All operations](https://skmtc.dev/threadchain/apis/threadchain-backend/llms.txt) - [OpenAPI document](https://skmtc.dev/threadchain/apis/threadchain-backend/revisions/8ee288a7e6bd?raw)
