Logo
Anvil API Documentation
Back
How can I use the Send JSON to fill a PDF API in Python?
python
Copy
import requests

url = 'https://app.useanvil.com/api/v1/fill/XnuTZKVZg1Mljsu999od.pdf'
data = {
    # Add your JSON data for the PDF here
}

response = requests.post(url, json=data)
with open('filled_pdf.pdf', 'wb') as f:
    f.write(response.content)

ENDPOINTS