Skip to content

Preview PDF Template​

POST
/api/pdf-reports/preview

Preview a PDF template as HTML with sample data

Authorizations​

ApiKeyAuth

API key for authentication. Get your API key from the dashboard.

Type
API Key (header: X-Api-Key)

Request Body​

application/json
JSON
{
"templateId": "string",
"sampleData": null
}

Responses​

HTML preview

text/html
JSON
"string"

Playground​

Authorization
Body

Samples​

Powered by VitePress OpenAPI

AstroAPI Documentation