Conversion API Service ====================== Available Endpoints: POST /api/convert/html-to-pdf - Convert HTML to PDF (extracts for filename) - Add ?format=binary for raw PDF file - Body: HTML string or { "html": "<html>...</html>" } - Options: waitUntil (networkidle0, load, domcontentloaded), timeout (max 60000ms) POST /api/convert/csv-to-json - Convert CSV to JSON array - Body: CSV string or { "csv": "col1,col2\nval1,val2" } POST /api/convert/json-to-csv - Convert JSON array to CSV - Body: { "data": [{"col1": "val1", "col2": "val2"}] } POST /api/convert/markdown-to-html - Convert Markdown to HTML - Body: Markdown string or { "markdown": "# Hello" } POST /api/convert/render-url - Load a URL and return fully rendered HTML (with JavaScript executed) - Body: { "url": "https://example.com" } - Options: - waitUntil: "networkidle0" (default), "load", or "domcontentloaded" - timeout: milliseconds (default 30000, max 60000) - Example: { "url": "https://example.com", "waitUntil": "networkidle0", "timeout": 30000 } - Returns: { "success": true, "data": { "url": "...", "title": "...", "html": "..." } } GET /api/health - Health check (no auth required) Authentication: Include API key in headers: x-api-key: <your-api-key> OR Authorization: Bearer <your-api-key> Contact admin for API key.