Skip to content
Dashboard

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 Markdown

Fields

  • titlestring

    The card's title

  • descriptionstring

    The line under the title, plain text

  • siteobject

    The site the card is from: hematite

  • authorobject | null

    Who shared it, over the title: the uploader or the folder's owner. Null when the image hides its uploader or they hide their page

  • colorstring

    The colour of the card's bar in Discord: # and six hex digits, lowercase

    Matches ^#[0-9a-f]{6}$

  • layoutenum

    large: 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 oflargesmallalonenone

  • picturesobject[]

    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

  • publishedAtstring | null

    When 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

  • indexableboolean

    Whether search engines may index the share's page: only a public image's

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