Media
Preview a screenshot template with the publishing renderer
POST
/screenshot-templates/previewsAuthorizationBearer <token>
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
curl -X POST "https://example.com/screenshot-templates/previews" \ -H "Content-Type: application/json" \ -d '{ "document": { "appearance": "light", "frame": "natural", "schema_version": 1, "template_id": "messages", "text_size": "small", "title": "string" }, "workspace_id": "string" }'{ "$schema": "https://example.com/api/v1/schemas/PreviewScreenshotTemplateOutputBody.json", "data_base64": "string", "height": 0, "mime_type": "string", "regions": [ { "height": 0.1, "id": "string", "width": 0.1, "x": 0.1, "y": 0.1 } ], "scale": 0.1, "width": 0}