Skip to content
Dashboard

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 Markdown

Create 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

  • referenceTypeenumrequired

    One ofImageFolder

  • referenceIdnumberrequired
  • parentIdnumber | nullrequired

    The comment this one answers, on the same image or folder, or null to start a thread.

  • contentstringrequired

    At least 1 characters

  • shareCodestringrequired

Response

Returns a Comment.

Request
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"}'
Example data
{
  "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

  • commentIdrequired

    The comment's id.

Response

Returns a Comment.

Request
curl 'https://api.hematite.gg/v1/comments/1' \
  -H "Authorization: $HEMATITE_TOKEN"
Example data
{
  "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

  • commentIdrequired

    The comment's id.

Body

  • contentstringrequired

    At least 1 characters

Response

Returns a Comment.

Request
curl -X PATCH 'https://api.hematite.gg/v1/comments/1' \
  -H "Authorization: $HEMATITE_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"content":"That last round"}'
Example data
{
  "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

  • commentIdrequired

    The comment's id.

Response

data is empty: the status says it worked.

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