{"api":"HTML Conversion API","version":"1.0.0","description":"API for converting HTML to PDF and images","baseUrl":"https://v0-vercel-puppeteer-setup-b5jogfa0b.vercel.app","endpoints":[{"path":"/api/generate-pdf","method":"POST","description":"Converts HTML content to a PDF document","corsProtected":true,"allowedOrigins":["https://rhyri.com","https://www.rhyri.com","https://v0-next-js-layout-issue-pi.vercel.app"],"requestBody":{"html":"string (required) - The HTML content to convert to PDF"},"options":{"format":"A4","printBackground":true},"response":{"type":"application/pdf","filename":"document.pdf"},"example":{"request":{"method":"POST","url":"/api/generate-pdf","headers":{"Content-Type":"application/json"},"body":{"html":"<html><body><h1>Hello World</h1><p>This is a PDF document</p></body></html>"}},"curl":"curl -X POST https://your-domain.com/api/generate-pdf \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"html\":\"<html><body><h1>Hello World</h1><p>This is a PDF document</p></body></html>\"}'"}},{"path":"/api/generate-image","method":"POST","description":"Converts HTML content to a high-quality image (PNG, JPEG, or WebP)","corsProtected":true,"allowedOrigins":["https://rhyri.com","https://www.rhyri.com","https://v0-next-js-layout-issue-pi.vercel.app"],"requestBody":{"html":"string (required) - The HTML content to convert to an image","width":"number (optional, default: 1200) - The width of the viewport in pixels","height":"number (optional, default: 800) - The height of the viewport in pixels","type":"string (optional, default: 'png') - The image format: 'png', 'jpeg', or 'webp'","quality":"number (optional, default: 100) - The quality of the image (1-100), only for JPEG and WebP","deviceScaleFactor":"number (optional, default: 4) - The device scale factor for higher resolution (1-5)","omitBackground":"boolean (optional, default: false) - Whether to make the background transparent (PNG only)"},"response":{"type":"image/png, image/jpeg, or image/webp (depending on the requested type)","filename":"image.[png|jpeg|webp]"},"example":{"request":{"method":"POST","url":"/api/generate-image","headers":{"Content-Type":"application/json"},"body":{"html":"<html><body><h1>Hello World</h1><p>This is a high-quality image</p></body></html>","width":800,"height":600,"type":"png","deviceScaleFactor":4,"omitBackground":true}},"curl":"curl -X POST https://your-domain.com/api/generate-image \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"html\":\"<html><body><h1>Hello World</h1><p>This is a high-quality image</p></body></html>\",\"width\":800,\"height\":600,\"type\":\"png\",\"deviceScaleFactor\":4,\"omitBackground\":true}'"}},{"path":"/api/docs","method":"GET","description":"Returns this documentation","corsProtected":false,"response":{"type":"application/json"},"example":{"request":{"method":"GET","url":"/api/docs"},"curl":"curl https://your-domain.com/api/docs"}}]}