Skip to main content
When a job completes, Plangrep produces a normalized JSON result (schema version v1) accessible at the job’s resultUrl or via GET /api/open/v1/jobs/{jobId}/result. This result is the authoritative, immutable snapshot of everything extracted from the uploaded files.

Fetching the Result

GET /api/open/v1/jobs/{jobId}/result
Authorization: Bearer {your_api_key}
The response is a single JSON object. For large result sets, consider streaming or paginating document sections in your own code after downloading.

Top-Level Result Structure

FieldTypeDescription
schemaVersionstringAlways v1
jobobjectSummary of the job that produced this result
usageobjectCredit and page counts for this job (see Usage)
documentsarrayOne ResultDocument per uploaded file (see Documents)
evidencearrayCitable source records extracted from submitted job files (see Evidence)
warningsarrayNon-fatal issues encountered during processing
errorsarrayFatal errors for specific pages or files
generatedAtstringISO 8601 timestamp when this result snapshot was produced

Documents

Each entry in the documents array is a ResultDocument representing one uploaded file.
FieldTypeDescription
documentIdstringUnique identifier matching the upload registration
fileNamestringOriginal file name as provided at upload
classificationstringplans, specifications, documents, addenda, mixed, or other
contentTypestringMIME type of the file
fileSizenumberFile size in bytes
statusstringProcessing status for this document
pageCountnumberTotal pages in the file
successfulPageCountnumberPages that processed without error
failedPageCountnumberPages that encountered a processing error
errorobject | nullDocument-level error, if any
artifactsarrayAuthenticated links to derived file assets (see Artifacts)
sheetsarrayDrawing sheets extracted from this document (see Sheets)
specificationsarray | nullSpecification sections, present when classification is specifications or mixed
docsarray | nullDocument sections, present when classification is documents, addenda, or mixed

Sheets

Each ResultSheet inside a document’s sheets array represents a single drawing sheet parsed from a plan set.
FieldTypeDescription
sheetIdstringUnique identifier for this sheet
sheetNumberstringSheet number as read from the title block (e.g., A101)
sheetNamestringSheet name or title (e.g., FIRST FLOOR PLAN)
pageNumbernumber1-based page number within the source document
statusstringProcessing status for this sheet
artifactsarrayAuthenticated links scoped to this sheet (thumbnails, renders, etc.)

Evidence

The top-level evidence array is a flat, deduplicated collection of all extracted evidence records across the entire job. Each ResultEvidence record links an extracted piece of information back to its source location.

Common fields (all evidence types)

FieldTypeDescription
idstringUnique evidence record identifier
typestringEvidence type: sheet, drawing_region, specification_section, document_section
labelstringHuman-readable label for this evidence item
documentIdstringSource document identifier
fileNamestringSource file name
classificationstringSource document classification
sourceRefobjectStructured reference to the source location (page, section, etc.)
textstring | nullInline extracted text when available

Type-specific fields

Evidence typeAdditional fields
sheetsheetId, sheetNumber, sheetName
drawing_regionregionId, sheetId, regionType, drawingType, layoutType
specification_sectionsectionNumber, sectionTitle
document_sectionsectionTitle, pageNumber
Drawing regions include three classification dimensions:
  • regionType — the kind of region (e.g., keynote legend, detail, plan view)
  • drawingType — the drawing discipline (e.g., architectural, structural, mechanical)
  • layoutType — how the region is laid out on the sheet

Usage

The usage object (type ResultUsage) provides an immutable breakdown of how credits were consumed by this job.
FieldDescription
drawingPageCountNumber of drawing pages processed
documentPageCountNumber of document pages processed
successfulPageCountTotal pages that completed without error
creditsDebitedTotal credits charged for this job
drawingCreditsPerPageRate applied to drawing pages (default: 10)
documentCreditsPerPageRate applied to document pages (default: 1)
See Credits for a full explanation of the billing model.

Artifacts

Artifacts are authenticated links to derived assets Plangrep generates during processing. They appear in both ResultDocument.artifacts and ResultSheet.artifacts.
Artifact typeDescription
fileThe original uploaded file
thumbnailLow-resolution preview image
viewerInteractive viewer URL for the sheet or document
renderFull-resolution rendered image of a sheet
pdfExtracted single-page PDF
region_cropCropped image of a specific drawing region
region_textPlain-text extraction of a region
region_ocrRaw OCR output for a region

Fetching artifact content

Use the same bearer token to fetch artifact content:
GET /api/open/v1/jobs/{jobId}/artifact?path={artifact_path}
Authorization: Bearer {your_api_key}
For short-lived unauthenticated downloads — for example, to pass a URL to a browser or third-party service — use the download token endpoints to generate a time-limited URL.
See the Get Job Result API reference for the full response schema, and the Reading Results guide for a worked example of parsing and using result data.