PerfectParser Docs

Parsers API Reference

Manage extraction templates programmatically. Create, list, update, and delete parsers — and auto-detect schema fields from a sample document — with the PerfectParser Parsers API.

A Parser is a reusable extraction template. It defines which fields to pull from your documents and how results are structured. Every extraction job references a parser by ID.


Typical setup flow

  1. Create a parser — create an empty parser container (or include initial field definitions).
  2. Detect fields — upload a sample document and auto-generate a schema in one step (multipart).
  3. Update the parser — refine field names, types, or descriptions as needed.

After setup, use the parser ID when submitting documents via Extractions.


Endpoints

EndpointDescription
Create ParserPOST /v1/parsers
List ParsersGET /v1/parsers
Get ParserGET /v1/parsers/:parser_id
Update ParserPATCH /v1/parsers/:parser_id
Delete ParserDELETE /v1/parsers/:parser_id
Detect FieldsPOST /v1/parsers/:parser_id/detect-fields

  • Quickstart — end-to-end example that creates a parser and runs an extraction.
  • Webhooks — real-time delivery instead of polling.
  • Zapier integration — no-code export and import.
  • Extractions — submit documents against a configured parser.

On this page