Can you request a preview of a widget/layout using the API?


I’ve developed an browser based webpage that allows a user to update a text widget using a text field. In order to check that what they’ve written will fit on a screen, is it possible to request a preview screenshot of the widget, or the layout using the REST api? Or embed an iframe of the preview?