Space Docs
Domain Model

Document

Fields

FieldTypeRequiredDefaultDescription
idstring.uuidYes—Id
createdAtstring.date-timeYes—Created at
updatedAtstring.date-timeYes—Updated at
customerIdstringNo—ID of the associated customer
vendorIdstringNo—ID of the associated vendor
siteIdstringNo—ID of the associated site
relatedEntityTypestringNo—Related entity type
relatedEntityIdstringNo—ID of the associated related entity
documentTypeenum(proposal, contract, drawing, as_built, submittal, report, invoice, photo_set, configuration, certificate, permit, product_manual, coi_liability, coi_workers_comp, w9, other)Yes—Document type
filenamestringYes—Filename
objectStorageKeystringYes—Object storage key
mimeTypestringNo—Mime type
uploadedByUserIdstringNo—ID of the associated uploaded by user
documentDatestring.date-timeNo—Document date
versionintegerYes—Version
extractionStatusenum(pending, processing, completed, failed, not_applicable)Yes—Extraction status
aiSummarystringNo—Ai summary
notestringNo—Note
classificationTagsstring[]No—Classification tags
workspaceIdstringYes—ID of the associated workspace
visibilityModeunknownYes—Visibility mode

Create Schema

Fields accepted when creating a new record:

FieldTypeRequiredDefaultDescription
customerIdstringNo—ID of the associated customer
vendorIdstringNo—ID of the associated vendor
siteIdstringNo—ID of the associated site
relatedEntityTypestringNo—Related entity type
relatedEntityIdstringNo—ID of the associated related entity
documentTypeenum(proposal, contract, drawing, as_built, submittal, report, invoice, photo_set, configuration, certificate, permit, product_manual, coi_liability, coi_workers_comp, w9, other)Yes—Document type
filenamestringYes—Filename
objectStorageKeystringYes—Object storage key
mimeTypestringNo—Mime type
uploadedByUserIdstringNo—ID of the associated uploaded by user
documentDatestring.date-timeNo—Document date
versionintegerYes1Version
extractionStatusenum(pending, processing, completed, failed, not_applicable)Yes"pending"Extraction status
aiSummarystringNo—Ai summary
notestringNo—Note
classificationTagsstring[]No—Classification tags
workspaceIdstringNo—ID of the associated workspace
visibilityModeunknownNo—Visibility mode

Update Schema

All fields are optional when updating:

FieldTypeRequiredDefaultDescription
customerIdstringNo—ID of the associated customer
vendorIdstringNo—ID of the associated vendor
siteIdstringNo—ID of the associated site
relatedEntityTypestringNo—Related entity type
relatedEntityIdstringNo—ID of the associated related entity
documentTypeenum(proposal, contract, drawing, as_built, submittal, report, invoice, photo_set, configuration, certificate, permit, product_manual, coi_liability, coi_workers_comp, w9, other)No—Document type
filenamestringNo—Filename
objectStorageKeystringNo—Object storage key
mimeTypestringNo—Mime type
uploadedByUserIdstringNo—ID of the associated uploaded by user
documentDatestring.date-timeNo—Document date
aiSummarystringNo—Ai summary
notestringNo—Note
classificationTagsstring[]No—Classification tags

On this page