API Integration Guide
Learn how to connect PerfectParser to your custom scripts and software to automate document extraction.
Welcome! This guide walks through a complete end-to-end integration — from creating a parser to downloading extracted JSON.
For Zapier, Make, n8n, and webhook patterns, see Automation Integrations.
How it Works
1. Configure Parser
Create a parser and upload a sample document to auto-detect fields.
2. Submit Documents
Upload files for extraction against your parser.
3. Get Results
Poll status or use webhooks, then download structured JSON.
Prerequisites
- API Key — generate under Integrations → API Keys (starts with
pp_live_). - Sample PDF — place a file like
sample_document.pdfin your working directory.
End-to-end script
The templates below:
- Verify your key with
GET /v1/me(optional) - Create a parser
- Detect fields via multipart upload (one step — no separate sample-file endpoint)
- Submit an extraction with
Idempotency-Key - Poll until complete
- Fetch all results
Fetch a single document (advanced)
If you only need one file's result (e.g. from a webhook payload), use the nested document endpoint with both IDs:
See Get Document and Automation Integrations.
Next steps
- Automation Integrations — webhooks, polling, idempotency
- OpenAPI spec — machine-readable API definition
- Webhooks — real-time delivery instead of polling