Studio Apps
renderShareCard
Render Share Card
Rasterize self-contained HTML or SVG into a pixel-perfect share-card PNG and save it as a PRIVATE asset in a Studio app.
Arguments
appIdstringrequiredThe Studio app IDheightnumberoptionalCard height in px (default 630, the OG canvas).htmlstringrequiredSelf-contained HTML document, HTML fragment, or bare <svg> to rasterize. Inline everything: external URLs won't load.pathstringoptionalApp file path for the PNG (default "assets/share-card.png"). Re-rendering to the same path replaces it.widthnumberoptionalCard width in px (default 1200, the OG canvas).
Returns
Returns the file id: pass it as coverImageFileId to setStudioAppShareCard to make it the app's link preview (that step is consent-gated; this one changes no visibility).
Ask for it
The Cloud routes these requests to this verb.
- make a share card for my X
- render this card design to an image
- create a link-preview cover with the exact title
Pair it with
The verbs that finish the job.