For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Dashboard
User GuideDeveloper GuidesAPI Reference
User GuideDeveloper GuidesAPI Reference
    • Overview
  • Runtype API
      • GETPreview asset
      • GETGet asset
Dashboard
LogoLogo
Runtype APIAssets

Preview asset

GET
/v1/assets/preview/:orgId/:assetId
GET
/v1/assets/preview/:orgId/:assetId
$curl https://api.runtype.com/v1/assets/preview/orgId/assetId \
> -H "Authorization: <apiKey>"

Serve a preview-rendering HTML asset inline with locked-down CSP.

Was this page helpful?
Previous

Get asset

Next
Built with

Authentication

AuthorizationBearer
API key or Clerk session token

Path parameters

orgIdstringRequired
assetIdstringRequired

Response

HTML preview content

Errors

403
Forbidden Error
404
Not Found Error
410
Gone Error
415
Unsupported Media Type Error
500
Internal Server Error
503
Service Unavailable Error