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 MarkdownCreate 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
referenceTypeenumrequiredOne of
ImageFolderCommentreferenceIdnumberrequiredshareCodestringSend exactly one of shareCode and verifier.
verifierstringSend exactly one of shareCode and verifier.
Response
Returns a Like.
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"}'{
"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
likeIdrequiredThe like's id.
Response
Returns a Like.
curl 'https://api.hematite.gg/v1/likes/1' \
-H "Authorization: $HEMATITE_TOKEN"{
"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
likeIdrequiredThe like's id.
Response
data is empty: the status says it worked.
curl -X DELETE 'https://api.hematite.gg/v1/likes/1' \
-H "Authorization: $HEMATITE_TOKEN"