Embeds
The Embeds API converts URLs into embedded videos, images and rich article previews.
Create embed
Create an embed.
POST /api/embeds
Body parameters
typestringrequiredIndicates the type of embed.
titlestringThe title describing the resource.
descriptionstringGets or sets a description for the resource.
imagestringThe embed image. Can be a public URL, a base64 encoded data URI or a blob id.
urlstringUrl to the embedded resource (when applicable).
actionsarray of stringsOptional embed actions (when type is "link"). Will be rendered as buttons in the embed card, e.g. ["View", "Share", "Download"].
metadataobjectAdditional metadata properties, e.g.
{ "color": "blue", "size": "XL" }.
htmlstringThe html required to display the resource (when type is "rich" or "video"). Must be a single