Skip to main content
Retrieves a single extracted drawing region by its ID. The response includes the region’s bounding box (normalized coordinates), the text Plangrep extracted from within that area, its parent sheet and file references, and any artifact URLs generated during processing.

Endpoint

GET https://plangrep.com/api/open/v1/projects/{projectId}/regions/{regionId}

Path Parameters

projectId
string
required
The unique identifier of the project that owns the region.
regionId
string
required
The unique identifier of the region to retrieve.

Query Parameters

compact
boolean
When true, artifact URL fields are stripped from the response.
sheets
string
Comma-separated list of sheet IDs. Can be used to validate that this region belongs to an expected set of sheets.
sheetId
string
Optional filter — returns the region only if it belongs to this sheet.
fileId
string
Optional filter by parent file ID.
fileName
string
Optional case-insensitive substring match on the parent file name.
classification
string
Optional filter by parent file classification. One of: plans, specifications, documents, addenda, mixed, other.
pageNumber
integer
Optional filter — returns the region only if it is on this 1-based page number.
regionType
string
Optional filter by detected region type.
drawingType
string
Optional filter by drawing discipline or type.
layoutType
string
Optional filter by layout classification of the region.

Response

Returns an object containing the matching region entity.
region
ProjectRegionEntity
The requested drawing region entity.

Example Request

curl -X GET "https://plangrep.com/api/open/v1/projects/proj_abc123/regions/region_001" \
  -H "Authorization: Bearer YOUR_API_TOKEN"

Example Response

{
  "region": {
    "regionId": "region_001",
    "fileId": "file_001",
    "sheetId": "sheet_007",
    "fileName": "Architectural_Plans_SetA.pdf",
    "pageNumber": 12,
    "sheetNumber": "A5.01",
    "label": "DETAIL 3/A5.01",
    "text": "CONT. BEAD OF SEALANT AT ALL EDGES. SEE SPEC 07900.",
    "displayBox": { "left": 0.52, "top": 0.31, "right": 0.74, "bottom": 0.58 },
    "titleDisplayBox": { "left": 0.52, "top": 0.58, "right": 0.74, "bottom": 0.62 },
    "artifacts": [
      { "type": "region_crop", "url": "https://..." }
    ]
  }
}