curl -X POST https://bastiantechnologies.com/api/html-to-pdf/convert \
-H "X-API-Key: YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"html":"<h1>Hello</h1>"}'
const res = await fetch('/api/html-to-pdf/convert', {
method: 'POST',
headers: { 'X-API-Key': 'YOUR_KEY', 'Content-Type': 'application/json' },
body: JSON.stringify({ html: '<h1>Hello</h1>' })
});
const { jobId } = await res.json();
import requests
r = requests.post('https://bastiantechnologies.com/api/html-to-pdf/convert',
headers={'X-API-Key': 'YOUR_KEY'},
json={'html': '<h1>Hello</h1>'})