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.
Try the API without code. Every endpoint page has an interactive API
Playground. Authorize once, send requests to
https://api.contractag.dev
, and
copy snippets. See the API Playground
page under Get Started.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
This API is currently in preview and is not production-ready. Response
data — especially geometry coordinates — may be noisy, inconsistent, or
incorrect. Do not rely on this output for production workflows.
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 support@contractag.dev 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
quickstart
for checklist. - Browse
api/endpoints/overview
and endpoints. - Copy from
api/examples/fields-all
. - See
fields-included
for supported fields. - Explore
guides
for samples and walkthroughs.