Dayli Docs
API referenceInteractions

Like a post

PUT
/api/v1/posts/{postId}/like

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.

Authorization

AuthorizationBearer <token>

In: header

Path Parameters

postId*string
Length1 <= length <= 128

Response 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}