cURL Examples

Complete cURL command examples for testing

Generate PDF

curl -X POST https://api.speedstein.com/v1/pdf/generate   -H "Authorization: Bearer YOUR_API_KEY"   -H "Content-Type: application/json"   -d '{
    "html": "<html><body><h1>Hello PDF!</h1></body></html>",
    "options": {"format": "A4"}
  }'

Batch Generate

curl -X POST https://api.speedstein.com/v1/pdf/batch   -H "Authorization: Bearer YOUR_API_KEY"   -H "Content-Type: application/json"   -d '{
    "pdfs": [
      {"html": "<html><body><h1>PDF 1</h1></body></html>"},
      {"html": "<html><body><h1>PDF 2</h1></body></html>"}
    ]
  }'