Fetch contract field detections
Endpoints
Fields: Get
GET
Fetch contract field detections
Retrieve the latest extraction result for a previously submitted document, optionally filtered to a specific page.
To filter by page:
When
The API Playground above uses the endpoint to send live requests and inspect
responses without leaving the docs.
Request
- Method:
GET - URL:
https://api.contractag.dev/fields/{document_id} - Query Parameters:
page— Optional. 1-indexed page number to filter by.
- Headers:
x-api-key: YOUR_API_KEY(optional)
Response
When nopage parameter is provided, returns all fields:
page is specified, returns fields for that page only:
Responses include coordinates and confidence only. Render bounding boxes over the source PDF to view the underlying text.
Errors
404— Document ID not found or expired (default retention is 30 days).410— Document purged; re-upload required.422— Invalid page parameter.429— Rate limit exceeded; see response headers for reset window.