Skip to main content
Source: equa-server/modules/api/src/endpoints/data-room-endpoints.ts
These endpoints are currently disabled in production. The source file exists but is commented out in the endpoint registration (endpoints.ts). These endpoints are documented here for reference and will become active when the feature is re-enabled.

Data Room Endpoints

Endpoints for managing an organization’s data room — uploading documents, creating folders, downloading files, and organizing the file structure. Files are stored in S3. All data room endpoints require authentication.

List Documents

GET /v1/organization/:organization/document
FieldValue
AuthRequired
PermissioncanViewOrganization
List all documents and folders in the organization’s data room. Response:
[
  {
    "id": "uuid",
    "name": "Operating Agreement.pdf",
    "type": "file",
    "parentFolder": "uuid",
    "size": 245000,
    "created": "2025-03-10T14:00:00Z"
  },
  {
    "id": "uuid",
    "name": "Contracts",
    "type": "folder",
    "parentFolder": null,
    "created": "2025-02-01T09:00:00Z"
  }
]

Upload Documents

POST /v1/organization/:organization/document
FieldValue
AuthRequired
PermissioncanEditDocuments
Content-Typemultipart/form-data
Upload one or more documents to the data room. Max file size is configurable via DATA_ROOM_UPLOAD_SIZE_LIMIT_MB (default 10 MB).

Download Document

GET /v1/organization/:organization/document/:document/content
FieldValue
AuthRequired
PermissioncanViewDocuments
Download a document as an attachment (Content-Disposition: attachment).

View Document Inline

GET /v1/organization/:organization/document/:document/content/:name
FieldValue
AuthRequired
PermissioncanViewDocuments
View a document inline in the browser (Content-Disposition: inline).

Create Folder

POST /v1/organization/:organization/folder
FieldValue
AuthRequired
PermissioncanEditDocuments
Create a new folder in the data room. Request:
{
  "name": "Legal Documents",
  "parentFolder": "uuid-or-null"
}

Move Document or Folder

POST /v1/organization/:organization/document/:document/move
FieldValue
AuthRequired
PermissioncanEditDocuments
Move a document or folder to a different location in the data room. Can also be used to rename items. Request:
{
  "name": "New Folder Name",
  "parentFolder": "uuid-of-target-folder"
}

Delete Document or Folder

DELETE /v1/organization/:organization/document/:document
FieldValue
AuthRequired
PermissioncanEditDocuments
Delete a document or folder from the data room.