developers / API reference
Comments API
The Comments API: post, read, edit and delete comments on images and folders, with every endpoint's fields, who may call it, its rate limit and a curl example.
This page as MarkdownCreate a new comment
post/comments
- Needs
- Session token
- The token from signing in, in the Authorization header.
- Rate limit
- 120 a minute
- Per address, for this endpoint.
- App scope
- comments:write
- What an app's token or an API key needs.
Body
referenceTypeenumrequiredOne of
ImageFolderreferenceIdnumberrequiredparentIdnumber | nullrequiredThe comment this one answers, on the same image or folder, or null to start a thread.
contentstringrequiredAt least 1 characters
shareCodestringrequired
Response
Returns a Comment.
curl -X POST 'https://api.hematite.gg/v1/comments' \
-H "Authorization: $HEMATITE_TOKEN" \
-H "Content-Type: application/json" \
-d '{"referenceType":"Image","referenceId":1,"parentId":1,"content":"That last round","shareCode":"x7Kp2QmA"}'{
"id": 1,
"userId": 1,
"createdAt": "2026-11-10T18:24:00.000Z",
"updatedAt": "2026-11-10T18:24:00.000Z",
"referenceType": "Image",
"referenceId": 1,
"content": "That last round",
"parentId": null,
"offlineAt": "2026-11-10T18:24:00.000Z",
"likeCount": 0
}Get a single comment by ID
get/comments/:commentId
- Needs
- Session token
- The token from signing in, in the Authorization header.
- Rate limit
- 120 a minute
- Per address, for this endpoint.
- App scope
- comments:read
- What an app's token or an API key needs.
Path parameters
commentIdrequiredThe comment's id.
Response
Returns a Comment.
curl 'https://api.hematite.gg/v1/comments/1' \
-H "Authorization: $HEMATITE_TOKEN"{
"id": 1,
"userId": 1,
"createdAt": "2026-11-10T18:24:00.000Z",
"updatedAt": "2026-11-10T18:24:00.000Z",
"referenceType": "Image",
"referenceId": 1,
"content": "That last round",
"parentId": null,
"offlineAt": "2026-11-10T18:24:00.000Z",
"likeCount": 0
}Update a comment by ID
patch/comments/:commentId
- Needs
- Session token
- The token from signing in, in the Authorization header.
- Rate limit
- 120 a minute
- Per address, for this endpoint.
- App scope
- comments:write
- What an app's token or an API key needs.
Path parameters
commentIdrequiredThe comment's id.
Body
contentstringrequiredAt least 1 characters
Response
Returns a Comment.
curl -X PATCH 'https://api.hematite.gg/v1/comments/1' \
-H "Authorization: $HEMATITE_TOKEN" \
-H "Content-Type: application/json" \
-d '{"content":"That last round"}'{
"id": 1,
"userId": 1,
"createdAt": "2026-11-10T18:24:00.000Z",
"updatedAt": "2026-11-10T18:24:00.000Z",
"referenceType": "Image",
"referenceId": 1,
"content": "That last round",
"parentId": null,
"offlineAt": "2026-11-10T18:24:00.000Z",
"likeCount": 0
}Delete a comment by ID
delete/comments/:commentId
- Needs
- Session token
- The token from signing in, in the Authorization header.
- Rate limit
- 120 a minute
- Per address, for this endpoint.
- App scope
- comments:write
- What an app's token or an API key needs.
Path parameters
commentIdrequiredThe comment's id.
Response
data is empty: the status says it worked.
curl -X DELETE 'https://api.hematite.gg/v1/comments/1' \
-H "Authorization: $HEMATITE_TOKEN"