Programmatically upload PDFs, detect fields, and generate editable forms.
Include your API key in the X-API-Key header with every request.
curl -H "X-API-Key: fp_your_key_here" https://smartdocpilot.com/smartForm/documents/doc_id/fields
Sign in to the app first, then generate a key. It is shown once — store it securely.
Base URL https://smartdocpilot.com/smartForm. Replace DOC_ID with a document id from the upload response. Upload, generate and reprocess are rate-limited and metered against your key.
multipart/form-data with a file field. Returns the document id and field count. Add ?skip_analysis=true to store the file without running detection.curl -X POST https://smartdocpilot.com/smartForm/documents \ -H "X-API-Key: fp_your_key" \ -F "file=@form.pdf"
curl https://smartdocpilot.com/smartForm/documents/DOC_ID/fields -H "X-API-Key: fp_your_key"
password; query params watermark and flatten. Returns the generated PDF path.curl -X POST https://smartdocpilot.com/smartForm/documents/DOC_ID/generate \
-H "X-API-Key: fp_your_key" -H "Content-Type: application/json" \
-d '{"password": ""}'{"fieldValues": {"field_id": "value"}} (optional password).curl -X POST https://smartdocpilot.com/smartForm/documents/DOC_ID/generate-filled \
-H "X-API-Key: fp_your_key" -H "Content-Type: application/json" \
-d '{"fieldValues": {"p1_text_0001": "Jane Doe"}}'application/pdf).multipart/form-data, repeated files). Detection is run later per-document via reprocess.X-Session header) and JSON {"email": "..."}. The key is returned once.X-API-Key.