Skip to navigation

Like Post

Toggle like on a post. If already liked, removes the like. If not liked, adds a like.

Authentication: Required — Bearer token.

Feature gate: Requires posts feature enabled.

Path parameters:

  • id (required) — Post ID

Response:

  • liked — Boolean indicating current like status after toggle
  • likes_count — Updated total like count for the post

Errors:

  • 404 — Post not found

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Path parameters

idstringRequired
Post ID

Response

OK