Generate Edit Schema
Generate Edit Schema detects the fields in a PDF form and returns an edit schema you can pass straight to /edit or /edit_runs. The returned schema has field positions annotated, so you don’t have to write extend_edit:bbox coordinates by hand. Optionally, supply your own schema and Extend maps it onto the detected fields.
Reach for it when you:
- Need a starter schema for a new PDF form.
- Want to map an existing schema onto a vendor-specific layout.
- Need annotated field locations before running edits at scale.
- Want to add conditional form logic on top of detected fields.
This endpoint is synchronous and returns the generated schema directly — there are no schema-generation run objects to poll or delete.
Quick start
We’ll detect the fields in a PDF form. Grab a key from the Developers page and store it as the EXTEND_API_KEY environment variable. If you’re using an SDK, see the installation instructions.
Python
TypeScript
Java
Go
cURL
Response
The response contains the generated schema and optional mapping metadata.
Request configuration
The config object is an edit schema generation config:
A common workflow
The generated schema uses the same format as edit runs, including support for root-level JSON Schema conditionals. A common workflow is:
- Generate a base schema from the PDF form.
- Add conditional requirements for follow-up fields.
- Use the refined schema with
/editor/edit_runs.
For the exact request and response schemas, see the Generate Edit Schema API reference.

