Skip to content
Dashboard

developers / API reference

Likes API

The Likes API: like and unlike images, folders and comments, with every endpoint's fields, who may call it, its rate limit and a curl example.

This page as Markdown

Create a like

post/likes

Needs
Session token
The token from signing in, in the Authorization header.
Rate limit
120 a minute
Per address, for this endpoint.
App scope
likes:write
What an app's token or an API key needs.

Body

  • referenceTypeenumrequired

    One ofImageFolderComment

  • referenceIdnumberrequired
  • shareCodestring

    Send exactly one of shareCode and verifier.

  • verifierstring

    Send exactly one of shareCode and verifier.

Response

Returns a Like.

Request
curl -X POST 'https://api.hematite.gg/v1/likes' \
  -H "Authorization: $HEMATITE_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"referenceType":"Image","referenceId":1,"shareCode":"x7Kp2QmA"}'
Example data
{
  "id": 1,
  "userId": 1,
  "createdAt": "2026-11-10T18:24:00.000Z",
  "referenceType": "Image",
  "referenceId": 1
}

Get a single like by ID

get/likes/:likeId

Needs
Session token
The token from signing in, in the Authorization header.
Rate limit
120 a minute
Per address, for this endpoint.
App scope
likes:read
What an app's token or an API key needs.

Path parameters

  • likeIdrequired

    The like's id.

Response

Returns a Like.

Request
curl 'https://api.hematite.gg/v1/likes/1' \
  -H "Authorization: $HEMATITE_TOKEN"
Example data
{
  "id": 1,
  "userId": 1,
  "createdAt": "2026-11-10T18:24:00.000Z",
  "referenceType": "Image",
  "referenceId": 1
}

Delete a like

delete/likes/:likeId

Needs
Session token
The token from signing in, in the Authorization header.
Rate limit
120 a minute
Per address, for this endpoint.
App scope
likes:write
What an app's token or an API key needs.

Path parameters

  • likeIdrequired

    The like's id.

Response

data is empty: the status says it worked.

Request
curl -X DELETE 'https://api.hematite.gg/v1/likes/1' \
  -H "Authorization: $HEMATITE_TOKEN"