developers / Models
Embed
What a share's link shows where it's pasted: its card's title, line, site, author, colour and pictures, the same for everyone.
This page as MarkdownFields
titlestringThe card's title
descriptionstringThe line under the title, plain text
siteobjectThe site the card is from: hematite
namestringThe site's name, over the title
urlstringWhere the site's name links
authorobject | nullWho shared it, over the title: the uploader or the folder's owner. Null when the image hides its uploader or they hide their page
namestringTheir username
urlstring | nullTheir profile, where the name links; null until profiles have a public address
colorstringThe colour of the card's bar in Discord: # and six hex digits, lowercase
Matches ^#[0-9a-f]{6}$
layoutenumlarge: the pictures large under the text. small: one picture, square, beside the text. alone: in Discord the pictures by themselves, without the text; elsewhere the large card. none: no picture
One of
largesmallalonenonepicturesobject[]An image's picture, or up to four of a folder's: never one marked NSFW or shielded. Empty with the layout none
At most 4 items
urlstringThe picture on hematite's cdn, made for cards: at most 1200 px wide, with its owner's watermark
widthintegerIts width in pixels, as served
heightintegerIts height in pixels, as served
altstringIts title, or the file's name without one
typeenumIts format
One of
image/jpegimage/gifimage/webpanimatedbooleanAn animated GIF or WebP, served animated in its own format
publishedAtstring | nullWhen it was uploaded (a folder: made), RFC 3339 in UTC, which Discord shows under the card in each reader's own time; null when the card's style doesn't show the time
indexablebooleanWhether search engines may index the share's page: only a public image's
{
"title": "Clutch on Ascent",
"description": "1v4 on the last round",
"site": {
"name": "Ranked",
"url": "https://cdn.hematite.gg/images/a1b2c3d4e5f6.png"
},
"author": {
"name": "Ranked",
"url": "https://cdn.hematite.gg/images/a1b2c3d4e5f6.png"
},
"color": "#c4d4e0",
"layout": "large",
"pictures": [
{
"url": "https://cdn.hematite.gg/images/a1b2c3d4e5f6.png",
"width": 1920,
"height": 1080,
"alt": "string",
"type": "image/jpeg",
"animated": false
}
],
"publishedAt": "string",
"indexable": false
}Returned by
The endpoints whose data holds an Embed as it is, and where.
- post
/imagesPreview the card one of your images' links would show with a style you haven't saved (Settings → Embeds), made exactly as the share page's card is, the floor included: as anyone holding the link sees it, or as it would be marked NSFW, shielded, hiding you as its uploader, or private/:imageId /embed-preview data.card - get
/sharesGet what a share's link shows where it's pasted (Discord, X, Slack and the rest): its card, as hematite serves it in the share page's tags and its oEmbed answer/by-code /embed data