Skip to main content
POST
/
api
/
templates
/
{template_id}
/
like
Like Template
curl --request POST \
  --url https://api.example.com/api/templates/{template_id}/like \
  --header 'Authorization: Bearer <token>'
{
  "liked": true,
  "likes": 123
}

Authorizations

Authorization
string
header
required

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

Path Parameters

template_id
string
required

Response

Successful Response

Like/unlike response

liked
boolean
required

Whether the template is liked

likes
integer
required

Total number of likes