Skip to main content
The Document entity manages uploaded files, their processing status, classification, and relationships to people, companies, and workspaces.

Attributes

NameTypeRequiredDescription
iduuid, 🔒 SystemDocument identifier. Unique and idempotent
document_typeenum✅ YesUniversal Document Classification Prompt
file_namestring⚪ NoName of the document
links.downloadurl, 🔒 SystemTemporary, signed URL for file download
file_typestring, 🔒 SystemMIME type (e.g., application/pdf)
size_bytesstring, 🔒 SystemOptional file hash for dedupe
uploaded_atISO 8601, 🔒 systemTimestamp
processed_atISO 8601, 🔒 systemTimestamp
deleted_atstring, 🔒 systemnullable ISO 8601

Relationships

NameTypeRequiredDescriptionExample
personspeople⚪ NoPeople Resource associated with the document[{ “type”: “people”, “id”: “people1” }]
companiesto-many (company)⚪ NoCompany Resource associated with the document[{ “type”: “company”, “id”: “company_tenant” }]
workspacesto-many (workspace)⚪ NoWorkspace Resource containing the document[{ “type”: “workspace”, “id”: “workspace_tenant” }]
I