Use the API Playground above to upload sample PDFs, tweak parameters, and
inspect live responses without leaving the docs.
Request
- Method:
POST
- URL:
https://api.contractag.dev/fields
- Headers:
x-api-key: YOUR_API_KEY
(optional)
- Body:
file
— Required. PDF file upload.
Upload Limits
- Maximum file size: 25 MB
- Accepted mime types:
application/pdf
- Multi-page contracts supported (up to 150 pages)
Response
Field Object
Property | Description |
---|---|
name | Machine-friendly field name (see Reference → Fields Included). |
page | 1-indexed page where the field was detected. |
bbox | Bounding box { x, y, w, h } in PDF points. |
confidence | Float 0–1 describing model confidence. |
Contractag does not return raw text; overlay bounding boxes on the original PDF to display values.
Status Codes
200
— Extraction completed and results returned.400
— Invalid file or request parameters.401
— Missing/invalid API key.413
— File size exceeds limit.
Headers
Body
multipart/form-data
PDF contract