Skip to content

Documents Module

Operations module on the frozen platform. A workspace flat file library — upload shared files, organize them with flat categories, optionally link them to CRM/HR/project records, and download them — built on the free Storage quota. Documents is a free Marketplace opt-in with a hard dependency on Storage.

Guides

AudienceDocument
Operators / workspace usersdocuments.md
Engineersdocuments.md
Production / opsdocuments.md · production readiness
Module Development Standardmodule-development.md
Reference blueprintassets-overview.md
Tenant API../api/tenant-v1-documents.md

Capabilities

  • Upload workspace files (title, optional description, optional category, file blob)
  • Flat categories (name/slug/sort/active) — no nested folders
  • Soft links to entitled Leads, Contacts, Companies, Projects, Employees, Assets, and Tasks (optional; module + permission gated per record type)
  • Download original file by authenticated API
  • Soft delete / restore; permanent delete removes the object from disk
  • Bulk soft delete (active list) and bulk permanent delete (Deleted only)
  • Table view with search, category filter, and trash filters
  • KPIs via GET /documents/stats (total, categorized, uncategorized)
  • Automation trigger document.created when Automation is entitled
  • File bytes count toward the workspace Storage quota (documents.size_bytes)
  • Module licensing (module:documents) + Spatie permissions — free Marketplace opt-in, requires Storage
  • Audit logging on create / update / soft delete / restore / force delete
  • Soft-deleted files purged with workspace trash retention (trash:purge-expired)

Permissions

documents.view · create · update · delete · restore · force.delete

Delete / force delete ownership: users may only soft-delete or permanently delete documents they uploaded (created_by), even when they hold documents.delete / documents.force.delete. The workspace owner (superadmin role) may delete any document. View / create / update / restore are unchanged permission gates.

Default roles: admin = all except force.delete; manager = view / create / update; staff = view.

Catalog

Enable Documents from Marketplace (free). Catalog: slug documents, category operations (Operations), is_default_included = false, is_billable = false, sort_order = 85, version 1.4.0.

Hard dependency: Storage (storage) must be entitled first. Install fails without it.

To make Documents billable later, use Central → Modules → Documents and set is_billable plus prices via the existing Update Module API — no new Central UI.

Storage quota

Uploaded document bytes are included in WorkspaceStorageService::usedBytes(). Soft-deleted documents drop out of the sum until restored; force-delete removes the file from object storage.

See Storage.

Explicitly deferred

  • Nested folders / directory trees
  • Versioning / check-in / check-out
  • Preview / in-browser viewers
  • Dashboard widget

Official documentation for the EloSync SaaS Platform.