Space embeds

Render or resolve embedded content within a space.

Automatically fetch metadata or previews for embedded resources such as videos, images, or external docs, enabling richer content experiences in your space.

Resolve a URL to an embed in a given space

get
Authorizations
Path parameters
spaceIdstringrequired

The unique id of the space

Query parameters
urlstringrequired

URL to resolve

Responses
curl -L \
  --url 'https://api.gitbook.com/v1/spaces/{spaceId}/embed?url=text' \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN'
{
  "title": "text",
  "site": "text",
  "icon": "text",
  "type": "link"
}

Was this helpful?