Get a design or screenshot image
get_assetFree. Every design, page capture and logo has an asset_id on the field that holds it. Pass it here. Which form you ask for depends entirely on where the picture is going, and getting it wrong is expensive. as: "url" is the DEFAULT AND USUALLY RIGHT one: a public link, no login, full size. Use it for anything you publish with publish_page, and for showing somebody a design. as: "bytes" returns the picture itself, downscaled to about 1024 across so it fits in a conversation, and you embed it as data:;base64,. Use it ONLY for a document you are writing in a place that refuses to load pictures from other websites, which includes artifacts. At full size one of these designs would be several hundred thousand tokens, so ask for bytes deliberately and not by habit.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| as | No | `url` for a link, which is right for anything you publish and is the default. `bytes` only for a document that cannot load a picture from another website. | |
| asset_id | Yes | The id from a picture field, like concept:<id>:image. | |
| max_width | No | How wide the picture comes back when you ask for bytes. 1024 by default, which is readable in a report. Smaller is cheaper. |