developers / API reference
Users API
The Users API: profiles, upload settings, storage, and a user's images, with every endpoint's fields, who may call it, its rate limit and a curl example.
This page as MarkdownGet a single user by ID
get/users/:userId
- Needs
- No token needed
- Anyone may call it.
- Rate limit
- 120 a minute
- Per address, for this endpoint.
- App scope
- users:read
- What an app's token or an API key needs.
Path parameters
userIdrequiredThe user's id.
Response
Returns a User or a HiddenUser.
curl 'https://api.hematite.gg/v1/users/1'{
"id": 1,
"username": "nova",
"email": "nova@example.com",
"emailConfirmedAt": "2026-11-10T18:24:00.000Z",
"createdAt": "2026-11-10T18:24:00.000Z",
"updatedAt": "2026-11-10T18:24:00.000Z",
"permissionGroupId": 1,
"subscriptionGroupId": 1,
"stripeSubscriptionId": "string",
"domainId": 1,
"avatarId": 1,
"stripeCustomerId": "string",
"inviteId": 1,
"timeZone": "string",
"avatar": {
"key": "images/a1b2c3d4e5f6.png"
},
"badgeIds": [
1
],
"storageUsed": 2457600,
"storageLimit": 1073741824,
"imageCount": 1,
"folderCount": 0,
"publicImageCount": 0,
"publicFolderCount": 0,
"profile": {
"bio": "Screenshots from ranked nights",
"hideProfile": false,
"activityVisibility": "All"
}
}Update a user by ID
patch/users/:userId
- Needs
- Session token
- The token from signing in, in the Authorization header.
- Rate limit
- 120 a minute
- Per address, for this endpoint.
- App scope
- users:write
- What an app's token or an API key needs.
- Apps can't send:
email,profile.hideProfile,profile.activityVisibility,timeZone
Path parameters
userIdrequiredThe user's id.
Body
Send at least one field.
usernamestringA new username: one nobody has yet, nor gave up in the last 30 days (unless it was you), and not one hematite keeps (POST /users/check-username says which).
3 to 64 characters, matches ^[a-zA-Z0-9_]+$
emailstringApps can't send itA new email address: one no account uses yet, nor a closed account's.
timeZonestringApps can't send itYour time zone by its IANA name (Europe/Berlin), as your browser reports it: the calendar your achievements count days by. Apps can't change it.
profileobjectWhat others see of you and who may see it. Send only what changes; the rest stays.
biostringA line or two about you, on your page.
At most 1024 characters
hideProfilebooleanApps can't send itHide your page: anyone else then gets only your id and username, and none of your activity. Apps can't change it.
activityVisibilityenumApps can't send itWho sees your upload activity and counts: All, anyone, every upload counted (never the images themselves); Public, anyone, your public uploads only; Private, only you (others' counts are of your public ones). Apps can't change it.
One of
AllPublicPrivate
domainIdnumberThe id of the domain your share links use. It has to exist.
Response
Returns a User.
curl -X PATCH 'https://api.hematite.gg/v1/users/1' \
-H "Authorization: $HEMATITE_TOKEN" \
-H "Content-Type: application/json" \
-d '{"username":"nova"}'{
"id": 1,
"username": "nova",
"email": "nova@example.com",
"emailConfirmedAt": "2026-11-10T18:24:00.000Z",
"createdAt": "2026-11-10T18:24:00.000Z",
"updatedAt": "2026-11-10T18:24:00.000Z",
"permissionGroupId": 1,
"subscriptionGroupId": 1,
"stripeSubscriptionId": "string",
"domainId": 1,
"avatarId": 1,
"stripeCustomerId": "string",
"inviteId": 1,
"timeZone": "string",
"avatar": {
"key": "images/a1b2c3d4e5f6.png"
},
"badgeIds": [
1
],
"storageUsed": 2457600,
"storageLimit": 1073741824,
"imageCount": 1,
"folderCount": 0,
"publicImageCount": 0,
"publicFolderCount": 0,
"profile": {
"bio": "Screenshots from ranked nights",
"hideProfile": false,
"activityVisibility": "All"
}
}Get a user's achievement assignments: yours with the counts and times, anyone else's with only the tier each reached, and none of a hidden profile's
get/users/:userId/achievement-assignments
- Needs
- No token needed
- Anyone may call it.
- Rate limit
- 120 a minute
- Per address, for this endpoint.
- App scope
- users:read
- What an app's token or an API key needs.
Path parameters
userIdrequiredThe user's id.
Response
Returns a list of AchievementAssignments.
curl 'https://api.hematite.gg/v1/users/1/achievement-assignments'[
{
"id": 1,
"userId": 1,
"achievementId": 1,
"currentValue": 0,
"bestValue": 0,
"currentTier": 0,
"createdAt": "2026-11-10T18:24:00.000Z",
"updatedAt": "2026-11-10T18:24:00.000Z",
"unlockedAt": null
}
]Get the tiers you reached, newest first (the latest 50): which achievement, which tier and when
get/users/:userId/achievement-unlocks
Tiers counted from what you did before the achievements' counting started say so (`backfilled`). Only your own.
- Needs
- Session token
- The token from signing in, in the Authorization header.
- Rate limit
- 120 a minute
- Per address, for this endpoint.
- App scope
- users:read
- What an app's token or an API key needs.
Path parameters
userIdrequiredThe user's id.
Response
Returns a list of AchievementUnlocks.
curl 'https://api.hematite.gg/v1/users/1/achievement-unlocks' \
-H "Authorization: $HEMATITE_TOKEN"[
{
"id": 1,
"achievementId": 1,
"tier": 1,
"reachedAt": "2026-11-10T18:24:00.000Z",
"backfilled": false
}
]Get a user's upload activity
get/users/:userId/activity
How many images they uploaded on each day that had any (UTC, `YYYY-MM-DD`): counts only, never the images. The user gets all of theirs, private and deleted uploads included. Anyone else gets what the user's `profile.activityVisibility` allows: with `All` every image they have, private and unlisted ones too; with `Public` only the public ones that show who uploaded them; with `Private`, or when the user hides their page, nothing (`{}`).
- Needs
- No token needed
- Anyone may call it.
- Rate limit
- 120 a minute
- Per address, for this endpoint.
- App scope
- users:read
- What an app's token or an API key needs.
Path parameters
userIdrequiredThe user's id.
Response
Returns a map of number.
curl 'https://api.hematite.gg/v1/users/1/activity'{
"dataKey": 0
}The apps you registered (D-34), newest first, each with how many people have it connected now
get/users/:userId/apps
Only your own: the apps you allowed are your connected apps (`/users/:userId/connected-apps`).
- Needs
- Session token
- The token from signing in, in the Authorization header.
- Rate limit
- 120 a minute
- Per address, for this endpoint.
- App scope
- Not open to apps
- Apps are registered and managed by their makers, signed in to hematite. Nor to API keys.
Path parameters
userIdrequiredThe user's id.
Response
Returns a list of Apps.
curl 'https://api.hematite.gg/v1/users/1/apps' \
-H "Authorization: $HEMATITE_TOKEN"[
{
"clientId": "string",
"name": "Ranked",
"type": "public",
"redirectUris": [
"string"
],
"userCount": 0,
"createdAt": "2026-11-10T18:24:00.000Z",
"updatedAt": "2026-11-10T18:24:00.000Z"
}
]Update a user's avatar
put/users/:userId/avatar
- Needs
- Session token
- The token from signing in, in the Authorization header.
- Rate limit
- 120 a minute
- Per address, for this endpoint.
- App scope
- users:write
- What an app's token or an API key needs.
Path parameters
userIdrequiredThe user's id.
Form data
Sent as multipart/form-data: the file as file, PNG, JPEG, WEBP, at most 2 MB; the fields below beside it.
Response
Returns a string.
curl -X PUT 'https://api.hematite.gg/v1/users/1/avatar' \
-H "Authorization: $HEMATITE_TOKEN" \
-F "file=@screenshot.png""string"Delete a user's avatar
delete/users/:userId/avatar
- Needs
- Session token
- The token from signing in, in the Authorization header.
- Rate limit
- 120 a minute
- Per address, for this endpoint.
- App scope
- users:write
- What an app's token or an API key needs.
Path parameters
userIdrequiredThe user's id.
Response
data is empty: the status says it worked.
curl -X DELETE 'https://api.hematite.gg/v1/users/1/avatar' \
-H "Authorization: $HEMATITE_TOKEN"Get a user's comments
get/users/:userId/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:read
- What an app's token or an API key needs.
Path parameters
userIdrequiredThe user's id.
Response
Returns a list of Comments.
curl 'https://api.hematite.gg/v1/users/1/comments' \
-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
}
]Get a user's domains
get/users/:userId/domains
- Needs
- Session token
- The token from signing in, in the Authorization header.
- Rate limit
- 120 a minute
- Per address, for this endpoint.
- App scope
- Not open to apps
- Domains change DNS records at Cloudflare; hematite's website manages them. Nor to API keys.
Path parameters
userIdrequiredThe user's id.
Response
Returns a list of Domains.
curl 'https://api.hematite.gg/v1/users/1/domains' \
-H "Authorization: $HEMATITE_TOKEN"[
{
"id": 1,
"name": "yourdomain.com",
"userId": 1,
"createdAt": "2026-11-10T18:24:00.000Z",
"updatedAt": "2026-11-10T18:24:00.000Z",
"cloudflareZoneId": "string",
"status": "AwaitingNameservers",
"availability": "Public",
"supportsSubdomain": false,
"supportsPath": false,
"official": false,
"failedAt": null,
"uses": 0
}
]Get the link preview styles you can choose (Settings → Embeds): the six built-ins every plan has (hematite, Minimal, Detailed, Gamer, Photo mode, Quiet), in that order, then your account's own, then your saved styles by name
get/users/:userId/embed-styles
Which one your links follow is your upload settings' `embedStyleId`.
- Needs
- Session token
- The token from signing in, in the Authorization header.
- Rate limit
- 60 a minute
- Per address, for this endpoint.
- App scope
- users:read
- What an app's token or an API key needs.
Path parameters
userIdrequiredThe user's id.
Response
Returns a list of EmbedStyles.
curl 'https://api.hematite.gg/v1/users/1/embed-styles' \
-H "Authorization: $HEMATITE_TOKEN"[
{
"id": 1,
"key": "hematite",
"name": "Ranked",
"about": "string",
"basedOn": "hematite",
"version": 0,
"author": "Uploader",
"picture": "Large",
"cropToCard": false,
"colour": "Hematite",
"colourHex": "string",
"showTime": false,
"motion": false,
"title": "Clutch on Ascent",
"description": "1v4 on the last round",
"site": "Hematite",
"siteText": "string"
}
]Save a link preview style by its name (Silver 10, Gold 25): the built-in it starts from, every choice and its own words
post/users/:userId/embed-styles
With `use`, it's what your links follow from now on.
- Needs
- Session token
- The token from signing in, in the Authorization header.
- Rate limit
- 30 a minute
- Per address, for this endpoint.
- App scope
- Not open to apps
- A link preview's style is written in Settings → Embeds, which previews it. Nor to API keys.
Path parameters
userIdrequiredThe user's id.
Body
basedOnenumrequiredThe built-in it starts from, whose words the card says where it has none of its own
One of
hematiteminimaldetailedgamerphoto-modequietauthorenumrequiredWho the card names over its title, in Discord through oEmbed: Uploader (the uploader, or a folder's owner) or None. Hiding yourself as an image's uploader, or hiding your page, names nobody whatever the style says
One of
UploaderNonepictureenumrequiredHow the card shows its picture: Large under the words, Small beside them (square), Alone (Discord shows only the picture; elsewhere the large card), None. An image marked NSFW or shielded shows none whatever the style says
One of
LargeSmallAloneNonecropToCardbooleanrequiredWith a large picture: cropped to 1.91 : 1, the shape X, Facebook, LinkedIn and WhatsApp draw, round its busiest part
colourenumrequiredThe colour of Discord's bar, the only platform that shows one: Hematite (the accent's ice steel), Picture (the picture's own, made light enough to read on Discord's grey) or Custom (colourHex)
One of
HematitePictureCustomcolourHexstring | nullrequiredYour own colour: # and six hex digits. Needed with Custom; kept otherwise, so choosing Custom again finds it
showTimebooleanrequiredWhen it was uploaded, under the card in each reader's own time (Discord)
motionbooleanrequiredAn animated GIF or WebP moves in the card; off, it's its first frame
titlestring | nullIts own title, a template (concept 11 §3: {title|"A screenshot"}), at most 300 characters and one line; null or left out says the built-in's. From Silver
descriptionstring | nullIts own description, a template, at most 600 characters, from Silver; "" leaves it out of the card (every plan); null or left out says the built-in's
siteenumThe site line over the title: Hematite, Domain (the domain your links go to, while it works) or Custom (siteText). Anything but Hematite from Silver
One of
HematiteDomainCustomsiteTextstring | nullIts own site name with site Custom, a template, at most 32 characters and one line, saying no service, brand or authority. Kept while another site line is chosen
namestringrequiredIts name, at most 32 characters, unique among your styles
usebooleanMake it the style your links follow
Default
false
Response
Returns an EmbedStyle.
Errors of its own
403404No such style of yours409422
curl -X POST 'https://api.hematite.gg/v1/users/1/embed-styles' \
-H "Authorization: $HEMATITE_TOKEN" \
-H "Content-Type: application/json" \
-d '{"basedOn":"hematite","author":"Uploader","picture":"Large","cropToCard":false,"colour":"Hematite","colourHex":"string","showTime":false,"motion":false,"name":"Ranked"}'{
"id": 1,
"key": "hematite",
"name": "Ranked",
"about": "string",
"basedOn": "hematite",
"version": 0,
"author": "Uploader",
"picture": "Large",
"cropToCard": false,
"colour": "Hematite",
"colourHex": "string",
"showTime": false,
"motion": false,
"title": "Clutch on Ascent",
"description": "1v4 on the last round",
"site": "Hematite",
"siteText": "string"
}Change one of your saved link preview styles in place, its name too: every link that follows it says the new card
patch/users/:userId/embed-styles/:styleId
Your own words and site line need a plan that gives them; a plan without keeps them as they are.
- Needs
- Session token
- The token from signing in, in the Authorization header.
- Rate limit
- 30 a minute
- Per address, for this endpoint.
- App scope
- Not open to apps
- A link preview's style is written in Settings → Embeds, which previews it. Nor to API keys.
Path parameters
userIdrequiredThe user's id.
styleIdnumberrequired
Body
basedOnenumrequiredThe built-in it starts from, whose words the card says where it has none of its own
One of
hematiteminimaldetailedgamerphoto-modequietauthorenumrequiredWho the card names over its title, in Discord through oEmbed: Uploader (the uploader, or a folder's owner) or None. Hiding yourself as an image's uploader, or hiding your page, names nobody whatever the style says
One of
UploaderNonepictureenumrequiredHow the card shows its picture: Large under the words, Small beside them (square), Alone (Discord shows only the picture; elsewhere the large card), None. An image marked NSFW or shielded shows none whatever the style says
One of
LargeSmallAloneNonecropToCardbooleanrequiredWith a large picture: cropped to 1.91 : 1, the shape X, Facebook, LinkedIn and WhatsApp draw, round its busiest part
colourenumrequiredThe colour of Discord's bar, the only platform that shows one: Hematite (the accent's ice steel), Picture (the picture's own, made light enough to read on Discord's grey) or Custom (colourHex)
One of
HematitePictureCustomcolourHexstring | nullrequiredYour own colour: # and six hex digits. Needed with Custom; kept otherwise, so choosing Custom again finds it
showTimebooleanrequiredWhen it was uploaded, under the card in each reader's own time (Discord)
motionbooleanrequiredAn animated GIF or WebP moves in the card; off, it's its first frame
titlestring | nullIts own title, a template (concept 11 §3: {title|"A screenshot"}), at most 300 characters and one line; null or left out says the built-in's. From Silver
descriptionstring | nullIts own description, a template, at most 600 characters, from Silver; "" leaves it out of the card (every plan); null or left out says the built-in's
siteenumThe site line over the title: Hematite, Domain (the domain your links go to, while it works) or Custom (siteText). Anything but Hematite from Silver
One of
HematiteDomainCustomsiteTextstring | nullIts own site name with site Custom, a template, at most 32 characters and one line, saying no service, brand or authority. Kept while another site line is chosen
namestringrequiredIts name, at most 32 characters, unique among your styles
Response
Returns an EmbedStyle.
Errors of its own
403404No such style of yours409422
curl -X PATCH 'https://api.hematite.gg/v1/users/1/embed-styles/1' \
-H "Authorization: $HEMATITE_TOKEN" \
-H "Content-Type: application/json" \
-d '{"basedOn":"hematite","author":"Uploader","picture":"Large","cropToCard":false,"colour":"Hematite","colourHex":"string","showTime":false,"motion":false,"name":"Ranked"}'{
"id": 1,
"key": "hematite",
"name": "Ranked",
"about": "string",
"basedOn": "hematite",
"version": 0,
"author": "Uploader",
"picture": "Large",
"cropToCard": false,
"colour": "Hematite",
"colourHex": "string",
"showTime": false,
"motion": false,
"title": "Clutch on Ascent",
"description": "1v4 on the last round",
"site": "Hematite",
"siteText": "string"
}Delete one of your saved link preview styles, on any plan
delete/users/:userId/embed-styles/:styleId
If your links follow it, they go back to hematite's default.
- Needs
- Session token
- The token from signing in, in the Authorization header.
- Rate limit
- 30 a minute
- Per address, for this endpoint.
- App scope
- Not open to apps
- A link preview's style is written in Settings → Embeds, which previews it. Nor to API keys.
Path parameters
userIdrequiredThe user's id.
styleIdnumberrequired
Response
Returns an object with these fields:
deletedtrueMust be true
curl -X DELETE 'https://api.hematite.gg/v1/users/1/embed-styles/1' \
-H "Authorization: $HEMATITE_TOKEN"{
"deleted": true
}Get a user's folders
get/users/:userId/folders
- Needs
- Session token
- The token from signing in, in the Authorization header.
- Rate limit
- 120 a minute
- Per address, for this endpoint.
- App scope
- folders:read
- What an app's token or an API key needs.
Path parameters
userIdrequiredThe user's id.
Response
Returns a list of Folders.
curl 'https://api.hematite.gg/v1/users/1/folders' \
-H "Authorization: $HEMATITE_TOKEN"[
{
"id": 1,
"userId": 1,
"createdAt": "2026-11-10T18:24:00.000Z",
"updatedAt": "2026-11-10T18:24:00.000Z",
"contentType": "Image",
"name": "Ranked",
"description": "1v4 on the last round",
"visibility": "Unlisted",
"color": "#c4d4e0",
"previewId": 1,
"downloads": 0,
"privateLockedAt": "2026-11-10T18:24:00.000Z",
"offlineAt": "2026-11-10T18:24:00.000Z",
"preview": {
"key": "images/a1b2c3d4e5f6.png"
},
"shareId": 1,
"shareCode": "x7Kp2QmA",
"contentCount": 1,
"size": 2457600,
"contentCountForOthers": 0,
"sizeForOthers": 0,
"viewCount": 0,
"likeCount": 0,
"commentCount": 0
}
]Get all images for a user
get/users/:userId/images
- Needs
- Session token
- The token from signing in, in the Authorization header.
- Rate limit
- 120 a minute
- Per address, for this endpoint.
- App scope
- images:read
- What an app's token or an API key needs.
Path parameters
userIdrequiredThe user's id.
Query
limitnumberDefault
100At least 1
offsetnumberDefault
0At least 0
partialbooleanDefault
falsesearchstring
Response
Returns a list, each an Image or a PartialImage.
curl 'https://api.hematite.gg/v1/users/1/images' \
-H "Authorization: $HEMATITE_TOKEN"[
{
"id": 1,
"userId": 1,
"createdAt": "2026-11-10T18:24:00.000Z",
"updatedAt": "2026-11-10T18:24:00.000Z",
"title": "Clutch on Ascent",
"description": "1v4 on the last round",
"visibility": "Unlisted",
"folderId": 1,
"views": 0,
"downloads": 0,
"favorite": false,
"application": "VALORANT",
"filename": "a1b2c3d4e5f6.png",
"size": 2457600,
"width": 1920,
"height": 1080,
"nsfw": false,
"storageId": 1,
"autoDeleteAt": null,
"hideUser": false,
"shield": false,
"nsfwLockedAt": "2026-11-10T18:24:00.000Z",
"privateLockedAt": "2026-11-10T18:24:00.000Z",
"offlineAt": "2026-11-10T18:24:00.000Z",
"storage": {
"key": "images/a1b2c3d4e5f6.png"
},
"shareId": 1,
"shareCode": "x7Kp2QmA",
"likeCount": 0,
"commentCount": 0,
"meta": {
"id": 1,
"blurHash": "string",
"dominantColor": "string",
"palette": null,
"hasAlpha": false,
"animated": false,
"orientation": 0
},
"treatment": "string",
"burn": {
"secondsPerView": 0,
"viewsEach": 0,
"viewsInAll": 0,
"then": "Blur",
"viewsUsed": 0,
"burnedAt": "string"
}
}
]Get a user's discovery images: their public uploads, as their page shows them
get/users/:userId/images/discovery
Anyone but the user gets none of a hidden page, and never an image that hides who uploaded it. With `withoutShowcase`, the shots the showcase draws are left out, as the page lists the uploads under it.
- Needs
- No token needed
- Anyone may call it.
- Rate limit
- 120 a minute
- Per address, for this endpoint.
- App scope
- images:read
- What an app's token or an API key needs.
Path parameters
userIdrequiredThe user's id.
Query
withoutShowcasebooleanLeave out the shots the user's showcase draws for you (GET /users/:userId/showcase), as their page lists its uploads under it: for you, every pin of yours that shows; for anyone else's, their pins once at least three show.
Default
false
Response
Returns a list of Images.
curl 'https://api.hematite.gg/v1/users/1/images/discovery'[
{
"id": 1,
"userId": 1,
"createdAt": "2026-11-10T18:24:00.000Z",
"updatedAt": "2026-11-10T18:24:00.000Z",
"title": "Clutch on Ascent",
"description": "1v4 on the last round",
"visibility": "Unlisted",
"folderId": 1,
"views": 0,
"downloads": 0,
"favorite": false,
"application": "VALORANT",
"filename": "a1b2c3d4e5f6.png",
"size": 2457600,
"width": 1920,
"height": 1080,
"nsfw": false,
"storageId": 1,
"autoDeleteAt": null,
"hideUser": false,
"shield": false,
"nsfwLockedAt": "2026-11-10T18:24:00.000Z",
"privateLockedAt": "2026-11-10T18:24:00.000Z",
"offlineAt": "2026-11-10T18:24:00.000Z",
"storage": {
"key": "images/a1b2c3d4e5f6.png"
},
"shareId": 1,
"shareCode": "x7Kp2QmA",
"likeCount": 0,
"commentCount": 0,
"meta": {
"id": 1,
"blurHash": "string",
"dominantColor": "string",
"palette": null,
"hasAlpha": false,
"animated": false,
"orientation": 0
},
"treatment": "string",
"burn": {
"secondsPerView": 0,
"viewsEach": 0,
"viewsInAll": 0,
"then": "Blur",
"viewsUsed": 0,
"burnedAt": "string"
}
}
]Get a user's image-ids that exceed the storage limit
get/users/:userId/images/over-quota
- Needs
- Session token
- The token from signing in, in the Authorization header.
- Rate limit
- 120 a minute
- Per address, for this endpoint.
- App scope
- images:read
- What an app's token or an API key needs.
Path parameters
userIdrequiredThe user's id.
Response
Returns a list, each item a number.
curl 'https://api.hematite.gg/v1/users/1/images/over-quota' \
-H "Authorization: $HEMATITE_TOKEN"[
0
]Search for a user's images
post/users/:userId/images/search
- Needs
- Session token
- The token from signing in, in the Authorization header.
- Rate limit
- 120 a minute
- Per address, for this endpoint.
- App scope
- images:read
- What an app's token or an API key needs.
Path parameters
userIdrequiredThe user's id.
Body
limitintegerDefault
100More than 0
offsetintegerDefault
0At least 0
queryobjectfieldsenum[]requiredOne of
titledescriptionvaluestringrequired
orderobjectfieldenumrequiredOne of
idcreatedAtviewsdownloadssizedirectionenumrequiredOne of
ascdesc
filterobject[]fieldenumrequiredOne of
idcreatedAtviewsdownloadsvisibilityfolderIdtitledescriptionsizehideUserautoDeleteAtfavoritensfwoperatorenumrequiredOne of
eqneqgtgteltltecontainsnotContainsstartsWithendsWithvaluestringrequired
partialbooleanDefault
false
curl -X POST 'https://api.hematite.gg/v1/users/1/images/search' \
-H "Authorization: $HEMATITE_TOKEN" \
-H "Content-Type: application/json" \
-d '{"limit":100}'{
"results": [
{
"id": 1,
"userId": 1,
"createdAt": "2026-11-10T18:24:00.000Z",
"updatedAt": "2026-11-10T18:24:00.000Z",
"title": "Clutch on Ascent",
"description": "1v4 on the last round",
"visibility": "Unlisted",
"folderId": 1,
"views": 0,
"downloads": 0,
"favorite": false,
"application": "VALORANT",
"filename": "a1b2c3d4e5f6.png",
"size": 2457600,
"width": 1920,
"height": 1080,
"nsfw": false,
"storageId": 1,
"autoDeleteAt": null,
"hideUser": false,
"shield": false,
"nsfwLockedAt": "2026-11-10T18:24:00.000Z",
"privateLockedAt": "2026-11-10T18:24:00.000Z",
"offlineAt": "2026-11-10T18:24:00.000Z",
"storage": {
"key": "images/a1b2c3d4e5f6.png"
},
"shareId": 1,
"shareCode": "x7Kp2QmA",
"likeCount": 0,
"commentCount": 0,
"meta": {
"id": 1,
"blurHash": "string",
"dominantColor": "string",
"palette": null,
"hasAlpha": false,
"animated": false,
"orientation": 0
},
"treatment": "string",
"burn": {
"secondsPerView": 0,
"viewsEach": 0,
"viewsInAll": 0,
"then": "Blur",
"viewsUsed": 0,
"burnedAt": "string"
}
}
],
"total": 0
}Your personal API keys that work, newest first, each with the child keys cut from it
get/users/:userId/keys
Never a token: a key's is shown once, when it's made. Only your own, signed in to hematite.
- Needs
- Session token
- The token from signing in, in the Authorization header.
- Rate limit
- 120 a minute
- Per address, for this endpoint.
- App scope
- Not open to apps
- API keys are made, listed and turned off by their user, signed in to hematite. Nor to API keys.
Path parameters
userIdrequiredThe user's id.
curl 'https://api.hematite.gg/v1/users/1/keys' \
-H "Authorization: $HEMATITE_TOKEN"[
{
"publicId": "m0plGGtn67kMZy6D",
"note": "ShareX",
"scopes": [
"images:read"
],
"constraints": {
"ips": [
"203.0.113.7"
],
"perMinute": 0,
"folderId": 1,
"visibility": "Unlisted"
},
"usesLeft": 0,
"parent": "string",
"createdAt": "2026-11-10T18:24:00.000Z",
"usedAt": "2026-11-10T18:24:00.000Z",
"expiresAt": "2026-11-10T18:24:00.000Z",
"children": [
{
"publicId": "m0plGGtn67kMZy6D",
"note": "ShareX",
"scopes": [
"images:read"
],
"constraints": {
"ips": [
"203.0.113.7"
],
"perMinute": 0,
"folderId": 1,
"visibility": "Unlisted"
},
"usesLeft": 0,
"parent": "string",
"createdAt": "2026-11-10T18:24:00.000Z",
"usedAt": "2026-11-10T18:24:00.000Z",
"expiresAt": "2026-11-10T18:24:00.000Z"
}
]
}
]Get a user's likes
get/users/:userId/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:read
- What an app's token or an API key needs.
Path parameters
userIdrequiredThe user's id.
Response
Returns a list of Likes.
curl 'https://api.hematite.gg/v1/users/1/likes' \
-H "Authorization: $HEMATITE_TOKEN"[
{
"id": 1,
"userId": 1,
"createdAt": "2026-11-10T18:24:00.000Z",
"referenceType": "Image",
"referenceId": 1
}
]Get a user's notifications
get/users/:userId/notifications
- Needs
- Session token
- The token from signing in, in the Authorization header.
- Rate limit
- 120 a minute
- Per address, for this endpoint.
- App scope
- notifications:read
- What an app's token or an API key needs.
Path parameters
userIdrequiredThe user's id.
Response
Returns a list of Notifications.
curl 'https://api.hematite.gg/v1/users/1/notifications' \
-H "Authorization: $HEMATITE_TOKEN"[
{
"id": 1,
"userId": 1,
"createdAt": "2026-11-10T18:24:00.000Z",
"updatedAt": "2026-11-10T18:24:00.000Z",
"type": "Neutral",
"title": "Clutch on Ascent",
"message": "OK",
"status": "Unread",
"metadata": null
}
]Mark all your notifications read, in one request
post/users/:userId/notifications/read
Returns the ones it read, as they now are; one that arrives meanwhile stays new. Only your own.
- Needs
- Session token
- The token from signing in, in the Authorization header.
- Rate limit
- 30 a minute
- Per address, for this endpoint.
- App scope
- notifications:write
- What an app's token or an API key needs.
Path parameters
userIdrequiredThe user's id.
Response
Returns a list of Notifications.
curl -X POST 'https://api.hematite.gg/v1/users/1/notifications/read' \
-H "Authorization: $HEMATITE_TOKEN"[
{
"id": 1,
"userId": 1,
"createdAt": "2026-11-10T18:24:00.000Z",
"updatedAt": "2026-11-10T18:24:00.000Z",
"type": "Neutral",
"title": "Clutch on Ascent",
"message": "OK",
"status": "Unread",
"metadata": null
}
]Get a user's sessions: the devices signed in and the upload tokens
get/users/:userId/sessions
Tokens aren't part of it: a token is shown once, when its session is created. Apps' tokens are the connected apps (`/users/:userId/connected-apps`).
- Needs
- Session token
- The token from signing in, in the Authorization header.
- Rate limit
- 120 a minute
- Per address, for this endpoint.
- App scope
- Not open to apps
- Signing in, sessions and upload tokens are the account's own. Nor to API keys.
Path parameters
userIdrequiredThe user's id.
Response
Returns a list of Sessions, each plus this field:
currentbooleanWhether this is the session the request was made with.
curl 'https://api.hematite.gg/v1/users/1/sessions' \
-H "Authorization: $HEMATITE_TOKEN"[
{
"id": 1,
"userId": 1,
"type": "Upload",
"publicId": "m0plGGtn67kMZy6D",
"createdAt": "2026-11-10T18:24:00.000Z",
"usedAt": "2026-11-10T18:24:00.000Z",
"expiresAt": "2027-11-10T18:24:00.000Z",
"ip": "203.0.113.7",
"device": "Mozilla/5.0",
"note": "ShareX",
"current": false
}
]Get a user's showcase: the shots pinned at the top of their page, in their order
get/users/:userId/showcase
The user gets every pin, those that don't show to anyone else too. Anyone else gets only the pins whose image is Public, showing who uploaded it (not `hideUser`) and not marked NSFW, and none at all when fewer than 3 are, or when the user hides their page.
- Needs
- No token needed
- Anyone may call it.
- Rate limit
- 120 a minute
- Per address, for this endpoint.
- App scope
- images:read
- What an app's token or an API key needs.
Path parameters
userIdrequiredThe user's id.
Response
Returns a list of Images.
curl 'https://api.hematite.gg/v1/users/1/showcase'[
{
"id": 1,
"userId": 1,
"createdAt": "2026-11-10T18:24:00.000Z",
"updatedAt": "2026-11-10T18:24:00.000Z",
"title": "Clutch on Ascent",
"description": "1v4 on the last round",
"visibility": "Unlisted",
"folderId": 1,
"views": 0,
"downloads": 0,
"favorite": false,
"application": "VALORANT",
"filename": "a1b2c3d4e5f6.png",
"size": 2457600,
"width": 1920,
"height": 1080,
"nsfw": false,
"storageId": 1,
"autoDeleteAt": null,
"hideUser": false,
"shield": false,
"nsfwLockedAt": "2026-11-10T18:24:00.000Z",
"privateLockedAt": "2026-11-10T18:24:00.000Z",
"offlineAt": "2026-11-10T18:24:00.000Z",
"storage": {
"key": "images/a1b2c3d4e5f6.png"
},
"shareId": 1,
"shareCode": "x7Kp2QmA",
"likeCount": 0,
"commentCount": 0,
"meta": {
"id": 1,
"blurHash": "string",
"dominantColor": "string",
"palette": null,
"hasAlpha": false,
"animated": false,
"orientation": 0
},
"treatment": "string",
"burn": {
"secondsPerView": 0,
"viewsEach": 0,
"viewsInAll": 0,
"then": "Blur",
"viewsUsed": 0,
"burnedAt": "string"
}
}
]Pin shots to your showcase, in this order, replacing what was pinned
put/users/:userId/showcase
Each must be one of your own images, Public, showing who uploaded it (not `hideUser`) and not marked NSFW; if one isn't, nothing changes. Others see the showcase once at least 3 of them show. Returns every pin, as you see it.
- Needs
- Session token
- The token from signing in, in the Authorization header.
- Rate limit
- 30 a minute
- Per address, for this endpoint.
- App scope
- users:write
- What an app's token or an API key needs.
Path parameters
userIdrequiredThe user's id.
Body
imageIdsinteger[]requiredIds of your own images, 6 at most, in the order they show. An empty list unpins them all.
At most 6 items, no repeats
Response
Returns a list of Images.
Errors of its own
403Only your own showcase can be set404There's no user with this id422
curl -X PUT 'https://api.hematite.gg/v1/users/1/showcase' \
-H "Authorization: $HEMATITE_TOKEN" \
-H "Content-Type: application/json" \
-d '{"imageIds":[1]}'[
{
"id": 1,
"userId": 1,
"createdAt": "2026-11-10T18:24:00.000Z",
"updatedAt": "2026-11-10T18:24:00.000Z",
"title": "Clutch on Ascent",
"description": "1v4 on the last round",
"visibility": "Unlisted",
"folderId": 1,
"views": 0,
"downloads": 0,
"favorite": false,
"application": "VALORANT",
"filename": "a1b2c3d4e5f6.png",
"size": 2457600,
"width": 1920,
"height": 1080,
"nsfw": false,
"storageId": 1,
"autoDeleteAt": null,
"hideUser": false,
"shield": false,
"nsfwLockedAt": "2026-11-10T18:24:00.000Z",
"privateLockedAt": "2026-11-10T18:24:00.000Z",
"offlineAt": "2026-11-10T18:24:00.000Z",
"storage": {
"key": "images/a1b2c3d4e5f6.png"
},
"shareId": 1,
"shareCode": "x7Kp2QmA",
"likeCount": 0,
"commentCount": 0,
"meta": {
"id": 1,
"blurHash": "string",
"dominantColor": "string",
"palette": null,
"hasAlpha": false,
"animated": false,
"orientation": 0
},
"treatment": "string",
"burn": {
"secondsPerView": 0,
"viewsEach": 0,
"viewsInAll": 0,
"then": "Blur",
"viewsUsed": 0,
"burnedAt": "string"
}
}
]Get your standing (Settings → Standing): one of `Good`, `Warned`, `AtRisk`, `Suspended`; how many strikes count now and when the first of them ends; a suspension's end; the decisions about your things and your account, newest first, with each statement of reasons as it was sent; and your images locked Private or NSFW by a decision
get/users/:userId/standing
A strike counts 90 days, 180 for harassment, hate, scams and impersonation. Only your own, a suspended account's too; apps can't read it.
- Needs
- Session token
- The token from signing in, in the Authorization header.
- Rate limit
- 120 a minute
- Per address, for this endpoint.
- App scope
- Not open to apps
- An account's standing is between its owner and hematite, read on hematite. Nor to API keys.
Path parameters
userIdrequiredThe user's id.
Response
Returns a Standing.
curl 'https://api.hematite.gg/v1/users/1/standing' \
-H "Authorization: $HEMATITE_TOKEN"{
"state": "Good",
"activeStrikes": 0,
"suspendedUntil": "2026-11-10T18:24:00.000Z",
"soonest": {
"givenAt": "2026-11-10T18:24:00.000Z",
"endsAt": "2026-11-10T18:24:00.000Z"
},
"nameLocked": false,
"stylesLocked": false,
"decisions": [
{
"id": 1,
"ref": "string",
"kind": "NoBreach",
"with": [
"NoBreach"
],
"targetType": "Image",
"targetId": "string",
"parts": [
"name"
],
"ground": "Law",
"groundRef": "string",
"strike": {
"endsAt": "2026-11-10T18:24:00.000Z",
"counting": false
},
"until": "2026-11-10T18:24:00.000Z",
"statement": "string",
"createdAt": "2026-11-10T18:24:00.000Z",
"image": {
"id": 1,
"key": "images/a1b2c3d4e5f6.png",
"nsfw": false
}
}
],
"restricted": [
{
"imageId": 1,
"title": "Clutch on Ascent",
"lock": "Private",
"ref": "string"
}
]
}Get where a user's storage goes: by kind and visibility, the last 30 days' uploads, and what could be cleared
get/users/:userId/storage
- Needs
- Session token
- The token from signing in, in the Authorization header.
- Rate limit
- 120 a minute
- Per address, for this endpoint.
- App scope
- users:read
- What an app's token or an API key needs.
Path parameters
userIdrequiredThe user's id.
Response
Returns an object with these fields:
imageCountintegerbytesnumberbyKindobject[]kindenumOne of
PNGJPEGWebPGIFOthercountintegerbytesnumber
byVisibilityobject[]visibilityenumOne of
UnlistedPublicPrivatecountintegerbytesnumber
daysobject[]datestringcountintegerbytesnumber
neverViewedobjectcountintegerbytesnumber
olderThanYearobjectcountintegerbytesnumber
overQuotaobjectcountintegerbytesnumber
curl 'https://api.hematite.gg/v1/users/1/storage' \
-H "Authorization: $HEMATITE_TOKEN"{
"imageCount": 1,
"bytes": 0,
"byKind": [
{
"kind": "PNG",
"count": 0,
"bytes": 0
}
],
"byVisibility": [
{
"visibility": "Unlisted",
"count": 0,
"bytes": 0
}
],
"days": [
{
"date": "string",
"count": 0,
"bytes": 0
}
],
"neverViewed": {
"count": 0,
"bytes": 0
},
"olderThanYear": {
"count": 0,
"bytes": 0
},
"overQuota": {
"count": 0,
"bytes": 0
}
}Your two-step sign-in: whether it's on, the authenticator app and the passkeys with when each was added and last used, how many recovery codes are left, and until when this sign-in's step-up holds
get/users/:userId/two-factor
- Needs
- Session token
- The token from signing in, in the Authorization header.
- Rate limit
- 120 a minute
- Per address, for this endpoint.
- App scope
- Not open to apps
- Signing in, sessions and upload tokens are the account's own. Nor to API keys.
Path parameters
userIdrequiredThe user's id.
Response
Returns an object with these fields:
enabledbooleanOn while the account has an authenticator app or a passkey.
totpobject | nullThe authenticator app, once a code from it confirmed it.
createdAtdate-timelastUsedAtdate-time | null
passkeysobject[]idintegernamestringWhat its owner called it ("MacBook").
createdAtdate-timelastUsedAtdate-time | null
recoveryCodesobject | nullHow many of the recovery codes are left; null while two-step sign-in is off.
leftintegertotalintegercreatedAtdate-time
methodsenum[]One of
passkeytotprecoverystepUpUntildate-time | nullUntil when this sign-in's step-up holds (POST /auth/reauth); null when it has none: changes here ask for one first.
suggestedbooleanWhile it's off: whether Settings → Security suggests it, for an account with a custom domain, an app or a paid plan.
curl 'https://api.hematite.gg/v1/users/1/two-factor' \
-H "Authorization: $HEMATITE_TOKEN"{
"enabled": false,
"totp": {
"createdAt": "2026-11-10T18:24:00.000Z",
"lastUsedAt": "2026-11-10T18:24:00.000Z"
},
"passkeys": [
{
"id": 1,
"name": "Ranked",
"createdAt": "2026-11-10T18:24:00.000Z",
"lastUsedAt": "2026-11-10T18:24:00.000Z"
}
],
"recoveryCodes": {
"left": 0,
"total": 0,
"createdAt": "2026-11-10T18:24:00.000Z"
},
"methods": [
"passkey"
],
"stepUpUntil": "2026-11-10T18:24:00.000Z",
"suggested": false
}Adds a passkey: the browser's answer to the options from `POST /users/:userId/two-factor/passkeys/options`, and its name
post/users/:userId/two-factor/passkeys
The first method also turns two-step sign-in on and answers its ten recovery codes, shown only now. Needs a fresh step-up.
- Needs
- Session token
- The token from signing in, in the Authorization header.
- Rate limit
- 10 a minute
- Per address, for this endpoint.
- App scope
- Not open to apps
- Signing in, sessions and upload tokens are the account's own. Nor to API keys.
Path parameters
userIdrequiredThe user's id.
Body
namestringrequiredWhat to call it, so you know which device it is ("MacBook").
1 to 64 characters
responseobjectrequiredWhat the browser's navigator.credentials.create() answered, as JSON (WebAuthn's RegistrationResponseJSON; startRegistration() of @simplewebauthn/browser gives it).
idstringrequired1 to 1024 characters, matches ^[A-Za-z0-9_-]*$
rawIdstringrequired1 to 1024 characters, matches ^[A-Za-z0-9_-]*$
type"public-key"requiredauthenticatorAttachmentenumOne of
platformcross-platformclientExtensionResultsmap of anyresponseobjectrequiredclientDataJSONstringrequiredAt most 16384 characters, matches ^[A-Za-z0-9_-]*$
attestationObjectstringrequiredAt most 16384 characters, matches ^[A-Za-z0-9_-]*$
authenticatorDatastringAt most 16384 characters, matches ^[A-Za-z0-9_-]*$
transportsstring[]At most 8 items
publicKeyAlgorithmintegerpublicKeystringAt most 16384 characters, matches ^[A-Za-z0-9_-]*$
Response
Returns an object with these fields:
passkeyobjectidintegernamestringWhat its owner called it ("MacBook").
createdAtdate-timelastUsedAtdate-time | null
recoveryCodesstring[] | nullThe ten recovery codes when this turned two-step sign-in on, shown only now; null when it was on already.
curl -X POST 'https://api.hematite.gg/v1/users/1/two-factor/passkeys' \
-H "Authorization: $HEMATITE_TOKEN" \
-H "Content-Type: application/json" \
-d '{"name":"Ranked","response":{"id":"string","rawId":"string","type":"public-key","authenticatorAttachment":"platform","clientExtensionResults":{"clientExtensionResultsKey":null},"response":{"clientDataJSON":"string","attestationObject":"string","authenticatorData":"string","transports":["string"],"publicKeyAlgorithm":0,"publicKey":"string"}}}'{
"passkey": {
"id": 1,
"name": "Ranked",
"createdAt": "2026-11-10T18:24:00.000Z",
"lastUsedAt": "2026-11-10T18:24:00.000Z"
},
"recoveryCodes": [
"string"
]
}Renames a passkey
patch/users/:userId/two-factor/passkeys/:passkeyId
- Needs
- Session token
- The token from signing in, in the Authorization header.
- Rate limit
- 10 a minute
- Per address, for this endpoint.
- App scope
- Not open to apps
- Signing in, sessions and upload tokens are the account's own. Nor to API keys.
Path parameters
userIdrequiredThe user's id.
passkeyIdnumberrequired
Body
namestringrequiredWhat to call it, so you know which device it is ("MacBook").
1 to 64 characters
Response
Returns an object with these fields:
idintegernamestringWhat its owner called it ("MacBook").
createdAtdate-timelastUsedAtdate-time | null
curl -X PATCH 'https://api.hematite.gg/v1/users/1/two-factor/passkeys/1' \
-H "Authorization: $HEMATITE_TOKEN" \
-H "Content-Type: application/json" \
-d '{"name":"Ranked"}'{
"id": 1,
"name": "Ranked",
"createdAt": "2026-11-10T18:24:00.000Z",
"lastUsedAt": "2026-11-10T18:24:00.000Z"
}Removes a passkey
delete/users/:userId/two-factor/passkeys/:passkeyId
Needs a fresh step-up; when it's the last method, two-step sign-in turns off with it and the recovery codes stop, which takes the password too.
- Needs
- Session token
- The token from signing in, in the Authorization header.
- Rate limit
- 10 a minute
- Per address, for this endpoint.
- App scope
- Not open to apps
- Signing in, sessions and upload tokens are the account's own. Nor to API keys.
Path parameters
userIdrequiredThe user's id.
passkeyIdnumberrequired
Body
passwordstringYour password: needed when this turns two-step sign-in off.
At most 128 characters
Response
Returns an object with these fields:
enabledbooleanWhether two-step sign-in is still on.
curl -X DELETE 'https://api.hematite.gg/v1/users/1/two-factor/passkeys/1' \
-H "Authorization: $HEMATITE_TOKEN" \
-H "Content-Type: application/json" \
-d '{"password":"••••••••"}'{
"enabled": false
}WebAuthn's options for adding a passkey: hand them to the browser (`startRegistration({ optionsJSON })` of `@simplewebauthn/browser`) and send its answer to `POST /users/:userId/two-factor/passkeys` within five minutes
post/users/:userId/two-factor/passkeys/options
Needs a fresh step-up.
- Needs
- Session token
- The token from signing in, in the Authorization header.
- Rate limit
- 10 a minute
- Per address, for this endpoint.
- App scope
- Not open to apps
- Signing in, sessions and upload tokens are the account's own. Nor to API keys.
Path parameters
userIdrequiredThe user's id.
Response
Returns an object with these fields:
rpobjectnamestringidstringoptional
userobjectidstringnamestringdisplayNamestring
challengestringpubKeyCredParamsobject[]algnumbertype"public-key"
timeoutnumberoptionalexcludeCredentialsobject[]optionalidstringtype"public-key"transportsenum[]optionalOne of
blecablehybridinternalnfcsmart-cardusb
authenticatorSelectionobjectoptionalauthenticatorAttachmentenumoptionalOne of
platformcross-platformrequireResidentKeybooleanoptionalresidentKeyenumoptionalOne of
discouragedpreferredrequireduserVerificationenumoptionalOne of
requiredpreferreddiscouraged
attestationenumoptionalOne of
directenterpriseindirectnone
curl -X POST 'https://api.hematite.gg/v1/users/1/two-factor/passkeys/options' \
-H "Authorization: $HEMATITE_TOKEN"{
"rp": {
"name": "Ranked",
"id": "string"
},
"user": {
"id": "string",
"name": "Ranked",
"displayName": "Ranked"
},
"challenge": "string",
"pubKeyCredParams": [
{
"alg": 0,
"type": "public-key"
}
],
"timeout": 0,
"excludeCredentials": [
{
"id": "string",
"type": "public-key",
"transports": [
"ble"
]
}
],
"authenticatorSelection": {
"authenticatorAttachment": "platform",
"requireResidentKey": false,
"residentKey": "discouraged",
"userVerification": "required"
},
"attestation": "direct"
}A new set of ten recovery codes, shown only now; the old ones stop at once
post/users/:userId/two-factor/recovery-codes
Needs two-step sign-in on and a fresh step-up.
- Needs
- Session token
- The token from signing in, in the Authorization header.
- Rate limit
- 5 an hour
- Per address, for this endpoint.
- App scope
- Not open to apps
- Signing in, sessions and upload tokens are the account's own. Nor to API keys.
Path parameters
userIdrequiredThe user's id.
Response
Returns an object with these fields:
recoveryCodesstring[]The ten new codes, shown only now.
curl -X POST 'https://api.hematite.gg/v1/users/1/two-factor/recovery-codes' \
-H "Authorization: $HEMATITE_TOKEN"{
"recoveryCodes": [
"string"
]
}Starts adding an authenticator app: a new secret, as text and as the `otpauth://` address its QR code carries
post/users/:userId/two-factor/totp
It's on once a code from the app confirms it (`POST /users/:userId/two-factor/totp/confirm`); until then it signs nobody in, and asking again makes a new one. Needs a fresh step-up (`POST /auth/reauth`).
- Needs
- Session token
- The token from signing in, in the Authorization header.
- Rate limit
- 5 a minute
- Per address, for this endpoint.
- App scope
- Not open to apps
- Signing in, sessions and upload tokens are the account's own. Nor to API keys.
Path parameters
userIdrequiredThe user's id.
Response
Returns an object with these fields:
secretstringThe secret in base32, for an app on the same phone: typed in, or pasted.
otpauthUrlstringThe otpauth://totp/… address, for a QR code an app scans.
curl -X POST 'https://api.hematite.gg/v1/users/1/two-factor/totp' \
-H "Authorization: $HEMATITE_TOKEN"{
"secret": "string",
"otpauthUrl": "https://cdn.hematite.gg/images/a1b2c3d4e5f6.png"
}Removes the authenticator app
delete/users/:userId/two-factor/totp
Needs a fresh step-up; when it's the last method, two-step sign-in turns off with it and the recovery codes stop, which takes the password too.
- Needs
- Session token
- The token from signing in, in the Authorization header.
- Rate limit
- 5 a minute
- Per address, for this endpoint.
- App scope
- Not open to apps
- Signing in, sessions and upload tokens are the account's own. Nor to API keys.
Path parameters
userIdrequiredThe user's id.
Body
passwordstringYour password: needed when this turns two-step sign-in off.
At most 128 characters
Response
Returns an object with these fields:
enabledbooleanWhether two-step sign-in is still on.
curl -X DELETE 'https://api.hematite.gg/v1/users/1/two-factor/totp' \
-H "Authorization: $HEMATITE_TOKEN" \
-H "Content-Type: application/json" \
-d '{"password":"••••••••"}'{
"enabled": false
}Turns the authenticator app on with a code from it
post/users/:userId/two-factor/totp/confirm
The first method also turns two-step sign-in on and answers its ten recovery codes, shown only now. Needs a fresh step-up.
- Needs
- Session token
- The token from signing in, in the Authorization header.
- Rate limit
- 5 a minute
- Per address, for this endpoint.
- App scope
- Not open to apps
- Signing in, sessions and upload tokens are the account's own. Nor to API keys.
Path parameters
userIdrequiredThe user's id.
Body
codestringrequiredThe six digits the app shows now.
At most 16 characters
Response
Returns an object with these fields:
recoveryCodesstring[] | nullThe ten recovery codes when this turned two-step sign-in on, shown only now; null when it was on already.
curl -X POST 'https://api.hematite.gg/v1/users/1/two-factor/totp/confirm' \
-H "Authorization: $HEMATITE_TOKEN" \
-H "Content-Type: application/json" \
-d '{"code":"x7Kp2QmA"}'{
"recoveryCodes": [
"string"
]
}Get a user's upload settings
get/users/:userId/upload-settings
- Needs
- Session token
- The token from signing in, in the Authorization header.
- Rate limit
- 120 a minute
- Per address, for this endpoint.
- App scope
- users:read
- What an app's token or an API key needs.
Path parameters
userIdrequiredThe user's id.
Response
Returns a UserUploadSettings.
curl 'https://api.hematite.gg/v1/users/1/upload-settings' \
-H "Authorization: $HEMATITE_TOKEN"{
"id": 1,
"shareCodeMode": "Alphanumeric",
"shareCodeLength": 8,
"compressionQuality": 85,
"visibility": "Unlisted",
"watermarkMode": "None",
"watermark": {
"text": "string",
"position": "top-left",
"size": "small",
"opacity": 0,
"tone": "light"
},
"randomizeFilenames": false,
"autoDeleteAfter": null,
"shareUrlType": "Domain",
"domainSubdomain": "string",
"domainPath": "string",
"embedStyleId": 1,
"updatedAt": "2026-11-10T18:24:00.000Z",
"embedStyle": {
"id": 1,
"key": "hematite",
"name": "Ranked",
"about": "string",
"basedOn": "hematite",
"version": 0,
"author": "Uploader",
"picture": "Large",
"cropToCard": false,
"colour": "Hematite",
"colourHex": "string",
"showTime": false,
"motion": false,
"title": "Clutch on Ascent",
"description": "1v4 on the last round",
"site": "Hematite",
"siteText": "string"
}
}Update a user's upload settings
patch/users/:userId/upload-settings
- Needs
- Session token
- The token from signing in, in the Authorization header.
- Rate limit
- 120 a minute
- Per address, for this endpoint.
- App scope
- users:write
- What an app's token or an API key needs.
- Apps can't send:
embedStyle,embedStyleId
Path parameters
userIdrequiredThe user's id.
Body
Send at least one field.
shareCodeModeenumOne of
AlphanumericLettersLowercaseNumbersHexadecimalUnambiguousEmojisMemorableshareCodeLengthnumber1 to 32
compressionQualitynumber1 to 100
visibilityenumOne of
UnlistedPublicPrivatewatermarkModeenumOne of
NoneMinimalMediumFullrandomizeFilenamesbooleanautoDeleteAfterinteger | nullHow many minutes after its upload a new image deletes itself, or null to keep it. Maximum is 5259600 (10 years). Applies to every upload that doesn't set its own autoDeleteAt.
shareUrlTypeenumWhere a new upload's link goes: its share page on the user's domain (Domain), or the file itself on the cdn (PermanentCDN), with the user's watermark when they have one.
One of
DomainPermanentCDNdomainSubdomainstringThe subdomain your links use on a domain that takes one: a DNS label (letters, digits and inner -, up to 63), not one hematite keeps (hosts such as www and api, staff, payment and sign-in words, brands, offensive words).
Matches ^(?!-)[a-z0-9-]{1,63}(?<!-)$
domainPathstringMatches ^[A-Za-z0-9\-._~%!$&'()*+,;=:@]*$
watermarkobject | nullThe custom watermark, drawn while watermarkMode is Medium; null forgets it (and can't go with Medium).
textstringrequiredOne line of at most 32 characters: letters (Latin scripts, Vietnamese), digits and common signs. Kept composed (NFC) and without spaces at its ends.
1 to 64 characters
positionenumrequiredWhere it sits: a place of a 3 × 3 grid over the picture.
One of
top-lefttoptop-rightleftcenterrightbottom-leftbottombottom-rightsizeenumrequiredHow large, against the picture fitted into a 16:9 frame: its height, or its width × 9/16 when it's wider.
One of
smallmediumlargeopacityintegerrequiredHow opaque, in percent.
20 to 100
toneenumrequiredLight text with a dark shadow, or dark text with a light one.
One of
lightdark
embedStyleobjectApps can't send itThe style your links' previews follow: a built-in as it is, or with your own choices and (from Silver) your own words and site line. Your choices are kept as a style of your own; the built-in's again, and its own style is what your links follow.
basedOnenumrequiredThe built-in it starts from, whose words the card says where it has none of its own
One of
hematiteminimaldetailedgamerphoto-modequietauthorenumrequiredWho the card names over its title, in Discord through oEmbed: Uploader (the uploader, or a folder's owner) or None. Hiding yourself as an image's uploader, or hiding your page, names nobody whatever the style says
One of
UploaderNonepictureenumrequiredHow the card shows its picture: Large under the words, Small beside them (square), Alone (Discord shows only the picture; elsewhere the large card), None. An image marked NSFW or shielded shows none whatever the style says
One of
LargeSmallAloneNonecropToCardbooleanrequiredWith a large picture: cropped to 1.91 : 1, the shape X, Facebook, LinkedIn and WhatsApp draw, round its busiest part
colourenumrequiredThe colour of Discord's bar, the only platform that shows one: Hematite (the accent's ice steel), Picture (the picture's own, made light enough to read on Discord's grey) or Custom (colourHex)
One of
HematitePictureCustomcolourHexstring | nullrequiredYour own colour: # and six hex digits. Needed with Custom; kept otherwise, so choosing Custom again finds it
showTimebooleanrequiredWhen it was uploaded, under the card in each reader's own time (Discord)
motionbooleanrequiredAn animated GIF or WebP moves in the card; off, it's its first frame
titlestring | nullIts own title, a template (concept 11 §3: {title|"A screenshot"}), at most 300 characters and one line; null or left out says the built-in's. From Silver
descriptionstring | nullIts own description, a template, at most 600 characters, from Silver; "" leaves it out of the card (every plan); null or left out says the built-in's
siteenumThe site line over the title: Hematite, Domain (the domain your links go to, while it works) or Custom (siteText). Anything but Hematite from Silver
One of
HematiteDomainCustomsiteTextstring | nullIts own site name with site Custom, a template, at most 32 characters and one line, saying no service, brand or authority. Kept while another site line is chosen
embedStyleIdintegerApps can't send itThe style your links follow, as it is: a built-in's id or one of your own styles' (GET /users/:userId/embed-styles). embedStyle sets it with your own choices instead; send one of the two
Response
Returns a UserUploadSettings.
Errors of its own
400A custom watermark needs its text403404No such style of yours409422
curl -X PATCH 'https://api.hematite.gg/v1/users/1/upload-settings' \
-H "Authorization: $HEMATITE_TOKEN" \
-H "Content-Type: application/json" \
-d '{"shareCodeMode":"Alphanumeric"}'{
"id": 1,
"shareCodeMode": "Alphanumeric",
"shareCodeLength": 8,
"compressionQuality": 85,
"visibility": "Unlisted",
"watermarkMode": "None",
"watermark": {
"text": "string",
"position": "top-left",
"size": "small",
"opacity": 0,
"tone": "light"
},
"randomizeFilenames": false,
"autoDeleteAfter": null,
"shareUrlType": "Domain",
"domainSubdomain": "string",
"domainPath": "string",
"embedStyleId": 1,
"updatedAt": "2026-11-10T18:24:00.000Z",
"embedStyle": {
"id": 1,
"key": "hematite",
"name": "Ranked",
"about": "string",
"basedOn": "hematite",
"version": 0,
"author": "Uploader",
"picture": "Large",
"cropToCard": false,
"colour": "Hematite",
"colourHex": "string",
"showTime": false,
"motion": false,
"title": "Clutch on Ascent",
"description": "1v4 on the last round",
"site": "Hematite",
"siteText": "string"
}
}Get your username history: each change from an old username to a new one, and when
get/users/:userId/usernames
Anyone else's is an empty list; their current username is on the user.
- Needs
- Session token
- The token from signing in, in the Authorization header.
- Rate limit
- 120 a minute
- Per address, for this endpoint.
- App scope
- users:read
- What an app's token or an API key needs.
Path parameters
userIdrequiredThe user's id.
Response
Returns a list of Usernames.
curl 'https://api.hematite.gg/v1/users/1/usernames' \
-H "Authorization: $HEMATITE_TOKEN"[
{
"id": 1,
"userId": 1,
"oldUsername": "stella",
"newUsername": "nova",
"createdAt": "2026-11-10T18:24:00.000Z"
}
]Get the signed-in user
get/users/@me
- Needs
- Session token
- The token from signing in, in the Authorization header.
- Rate limit
- 120 a minute
- Per address, for this endpoint.
- App scope
- users:read
- What an app's token or an API key needs.
Response
Returns a User.
curl 'https://api.hematite.gg/v1/users/@me' \
-H "Authorization: $HEMATITE_TOKEN"{
"id": 1,
"username": "nova",
"email": "nova@example.com",
"emailConfirmedAt": "2026-11-10T18:24:00.000Z",
"createdAt": "2026-11-10T18:24:00.000Z",
"updatedAt": "2026-11-10T18:24:00.000Z",
"permissionGroupId": 1,
"subscriptionGroupId": 1,
"stripeSubscriptionId": "string",
"domainId": 1,
"avatarId": 1,
"stripeCustomerId": "string",
"inviteId": 1,
"timeZone": "string",
"avatar": {
"key": "images/a1b2c3d4e5f6.png"
},
"badgeIds": [
1
],
"storageUsed": 2457600,
"storageLimit": 1073741824,
"imageCount": 1,
"folderCount": 0,
"publicImageCount": 0,
"publicFolderCount": 0,
"profile": {
"bio": "Screenshots from ranked nights",
"hideProfile": false,
"activityVisibility": "All"
}
}Get many users by IDs
get/users/bulk
- Needs
- Session token
- The token from signing in, in the Authorization header.
- Rate limit
- 120 a minute
- Per address, for this endpoint.
- App scope
- users:read
- What an app's token or an API key needs.
Query
idsnumber[]requiredIds of users. If any has no user, the request is refused.
1 to 20 items, no repeats
partialbooleanDefault
false
Response
Returns a list, each a User, a HiddenUser or a PartialUser.
curl 'https://api.hematite.gg/v1/users/bulk?ids=1' \
-H "Authorization: $HEMATITE_TOKEN"[
{
"id": 1,
"username": "nova",
"email": "nova@example.com",
"emailConfirmedAt": "2026-11-10T18:24:00.000Z",
"createdAt": "2026-11-10T18:24:00.000Z",
"updatedAt": "2026-11-10T18:24:00.000Z",
"permissionGroupId": 1,
"subscriptionGroupId": 1,
"stripeSubscriptionId": "string",
"domainId": 1,
"avatarId": 1,
"stripeCustomerId": "string",
"inviteId": 1,
"timeZone": "string",
"avatar": {
"key": "images/a1b2c3d4e5f6.png"
},
"badgeIds": [
1
],
"storageUsed": 2457600,
"storageLimit": 1073741824,
"imageCount": 1,
"folderCount": 0,
"publicImageCount": 0,
"publicFolderCount": 0,
"profile": {
"bio": "Screenshots from ranked nights",
"hideProfile": false,
"activityVisibility": "All"
}
}
]Check if a username is available
post/users/check-username
- Needs
- No token needed
- Anyone may call it.
- Rate limit
- 120 a minute
- Per address, for this endpoint.
- App scope
- users:read
- What an app's token or an API key needs.
Body
usernamestringrequiredThe username to check
3 to 64 characters, matches ^[a-zA-Z0-9_]+$
Response
Returns an object with these fields:
availablebooleanWhether the username is available
reasonenum | nullWhy it isn't, or null when it is: taken, someone has it; held, its last owner gave it up less than 30 days ago and only they may take it back (they're told it's available); kept, hematite keeps it (its own pages, hosts and staff, payment and sign-in words, brands, offensive words), compared as it reads: case, look-alike letters, digits for letters and separators folded.
One of
takenheldkept
curl -X POST 'https://api.hematite.gg/v1/users/check-username' \
-H "Content-Type: application/json" \
-d '{"username":"nova"}'{
"available": false,
"reason": "taken"
}Search for users
post/users/search
- Needs
- Session token
- The token from signing in, in the Authorization header.
- Rate limit
- 120 a minute
- Per address, for this endpoint.
- App scope
- users:read
- What an app's token or an API key needs.
- Apps can't filter by:
email
Body
limitintegerDefault
100More than 0
offsetintegerDefault
0At least 0
queryobjectfieldsenum[]requiredOne of
usernamebiovaluestringrequired
orderobjectfieldenumrequiredOne of
idcreatedAtusernamebadgesdirectionenumrequiredOne of
ascdesc
filterobject[]Apps can't filter by emailfieldenumrequiredOne of
idcreatedAtusernamebiobadgeshideProfileoperatorenumrequiredOne of
eqneqgtgteltltecontainsnotContainsstartsWithendsWithvaluestringrequired
partialbooleanDefault
false
curl -X POST 'https://api.hematite.gg/v1/users/search' \
-H "Authorization: $HEMATITE_TOKEN" \
-H "Content-Type: application/json" \
-d '{"limit":100}'{
"results": [
{
"id": 1,
"username": "nova",
"email": "nova@example.com",
"emailConfirmedAt": "2026-11-10T18:24:00.000Z",
"createdAt": "2026-11-10T18:24:00.000Z",
"updatedAt": "2026-11-10T18:24:00.000Z",
"permissionGroupId": 1,
"subscriptionGroupId": 1,
"stripeSubscriptionId": "string",
"domainId": 1,
"avatarId": 1,
"stripeCustomerId": "string",
"inviteId": 1,
"timeZone": "string",
"avatar": {
"key": "images/a1b2c3d4e5f6.png"
},
"badgeIds": [
1
],
"storageUsed": 2457600,
"storageLimit": 1073741824,
"imageCount": 1,
"folderCount": 0,
"publicImageCount": 0,
"publicFolderCount": 0,
"profile": {
"bio": "Screenshots from ranked nights",
"hideProfile": false,
"activityVisibility": "All"
}
}
],
"total": 0
}