Dayli Docs
API referenceInteractions

Unlike a post

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

Removes the caller's like from a post they may read. Unliking a post that isn't 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 DELETE "https://example.com/api/v1/posts/post-1/like"
{  "likeCount": 0,  "viewerHasLiked": true}