Code Examples
Copy-paste samples for documents, dev tools, OCR, screenshots, and export — six languages, one API key.
Operation
import requests
resp = requests.post(
"https://api.sigli.dev/v1/process",
headers={
"X-API-Key": "sig_live_your_key_here",
"X-Convert-Type": "html-to-pdf",
},
json={
"source": "<h1>Sales Report Q1</h1><table>...</table>",
"format": "A4",
"margin": {"top": "20mm", "bottom": "20mm", "left": "15mm", "right": "15mm"},
"print_background": True,
},
)
resp.raise_for_status()
with open("report.pdf", "wb") as f:
f.write(resp.content)Good to know
Base URL
https://api.sigli.devAuth header
X-API-Key: sig_live_...Sandbox prefix
sig_test_... (no credits, capped at 50 runs a day)Response format
Binary bytes or JSON with url field