artifacts

One component preview as a document [read]

Changed on

The preview with tokens.css, fonts, bundle.css, libraries and bundle.js preloaded and data-theme set, as JSON for a sandboxed frame (srcdoc with no same-origin access). Cover is the system's cover.

get/artifacts/{id}/design-system/previews/{component}

Request

  • Base URL
    https://api.agentsky.dev/v1
  • URL
    https://api.agentsky.dev/v1/artifacts/{id}/design-system/previews/{component}
  • Auth
    HTTP bearer

Path parameters

idstring required

The artifact id

componentstring required

Query parameters

themestring

A theme id from tokens.json; defaults to the first

Response

OK

htmlstring required

Changes