Building Categories
Retrieve document category breakdowns for buildings. Categories are automatically assigned by the Findable document processing pipeline.
Category Counts
GET
/building_owners/{buildingOwnerId}/buildings/{buildingId}/building_categoryGet a count of documents per category in a building.
Authentication
x-api-key header
buildingOwnerIdstringBuilding owner IDbuildingIdstringBuilding ID
200Success401Missing or invalid API key404Building not found
All endpoints may also return 429 (rate limit) and 500 (server error). See Common Patterns for details.
categoryCountRecord<string, number>Object mapping category names to document counts
Response
{
"categoryCount": {
"HVAC": 45,
"Fire Safety": 32,
"Electrical": 28,
"Structural": 21,
"Plumbing": 15,
"Energy": 12,
"Other": 8
}
}Documents in Category
GET
/building_owners/{buildingOwnerId}/buildings/{buildingId}/building_category/{category}List all documents in a specific building category. Results are paginated.
Authentication
x-api-key header
buildingOwnerIdstringBuilding owner IDbuildingIdstringBuilding IDcategorystringCategory name (URL-encoded)
next_tokenstringPagination token — pass the nextToken value from a previous response
200Success401Missing or invalid API key404Building or category not found
All endpoints may also return 429 (rate limit) and 500 (server error). See Common Patterns for details.
documentsDocument[]Array of document objects in the categorydocuments[].idstringUnique identifierdocuments[].filenamestringDocument filenamedocuments[].titlestringDocument titledocuments[].originalPathstringOriginal file pathdocuments[].buildingCategorystringBuilding categorydocuments[].sizenumberFile size in bytesdocuments[].createdAtstringISO 8601 creation timestampdocuments[].updatedAtstringISO 8601 last update timestampnextTokenstring | nullToken for the next page, null if this is the last page
Response
{
"documents": [
{
"id": "doc-001",
"filename": "HVAC-System-Specifications.pdf",
"title": "HVAC System Specifications",
"originalPath": "/specs/hvac/",
"buildingCategory": "HVAC",
"size": 2400000,
"createdAt": "2024-02-10T10:00:00Z",
"updatedAt": "2024-02-10T10:00:00Z"
}
],
"nextToken": null
}