API referenceInteractions
Like a post
PUT
Likes a post the caller may read, including their own. Liking a post already liked changes nothing, so retries are safe. Returns the like count and whether the caller likes it.
AuthorizationBearer <token>
In: header
Path Parameters
postId*string
Length
1 <= length <= 128Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X PUT "https://example.com/api/v1/posts/post-1/like"{ "likeCount": 0, "viewerHasLiked": true}