Get Started— overview, quickstart, and base URL.Endpoints— parameters, responses, and API Playground.Examples— sample payloads.Guides— sample contracts and mini app walkthroughs.Reference— list of supported fields.
What You Get
- Field detection for purchaser, vendor, property, signatures, deposits, and more. See fields-included for all supported fields.
- Coordinates and confidence for each tag.
- Simple API for PDFs or images.
Early Access Notice
At this stage, the API is primarily intended to help teams understand the
response structure and data types. As discussed with partners, we’re working
with interested teams to secure access to more varied resources, which will
help us improve accuracy and robustness over time.
Quickstart
Base URL:https://api.contractag.dev
- Email [email protected] for an API key.
- Open API Playground from any endpoint, set token, paste key.
- Upload a PDF via Fields API.
- Overlay bounding boxes in your app.
Authentication
Requests need an API key in thex-api-key header:
quickstart for details.
Endpoints Overview
POST /fields— Extract all fields from a PDF.GET /fields/{document_id}— Get fields for a document (optionally filter by page).
Endpoints.
Example Responses
Each endpoint has a JSON sample underExamples:
Fields: All— multi-field payload.Fields: Get— document fields (with optional page filtering).
Contractag returns coordinates and confidence only; text stays in your PDF.
Bounding Boxes
Boxes are in PDF points, origin bottom-left. Format:{ x, y, w, h }.
Tip: Match scale and transform when rendering on images.
Next Steps
- Check
quickstartfor checklist. - Browse
api/endpoints/overviewand endpoints. - Copy from
api/examples/fields-all. - See
fields-includedfor supported fields. - Explore
guidesfor samples and walkthroughs.