{ "summary": "Generate a PDF invoice from HTML/CSS", "description": "Example request to POST /api/v1/generate-pdf using HTML and CSS content.", "request": { "method": "POST", "url": "https://app.useanvil.com/api/v1/generate-pdf", "headers": { "Content-Type": "application/json", "Authorization": "Basic YOUR_BASE64_ENCODED_API_KEY" }, "body": { "type": "html", "title": "Invoice #1042", "data": { "html": "

Invoice #1042

ItemAmount
API Integration Services$2,500.00
Document Automation Setup$1,200.00
Total$3,700.00
", "css": "body { font-family: Arial, sans-serif; margin: 40px; } h1 { color: #2c3e50; } table { width: 100%; border-collapse: collapse; } th, td { border: 1px solid #ddd; padding: 8px; text-align: left; } th { background-color: #f2f2f2; }" }, "page": { "width": "8.5in", "height": "11in", "marginTop": "1in", "marginBottom": "1in", "marginLeft": "1in", "marginRight": "1in" } } }, "response": { "status": 200, "headers": { "Content-Type": "application/pdf" }, "body": "" } }