Skip to main content

Documents

The Document entity set provides endpoints for managing files, hyperlinks, file links, and folder structures within projects. Documents can be organized into folders and linked to other entities.


Document

A document represents a file, hyperlink, or file link stored within a project. Documents support metadata, notes, favorites, and relations to other entities.

Properties

PropertyTypeDescription
DocumentIdGuidPrimary key. Unique identifier for the document.
FileNamestringName of the file including extension.
ProjectIdGuid?Foreign key to the associated project.
DocumentFolderIdGuid?Foreign key to the parent folder.
DescriptionHTMLstringHTML-formatted description of the document.
OutlookPreviewTextstringPreview text extracted from Outlook messages.
IsInternetLinkboolWhether the document is a web URL.
IsFileLinkboolWhether the document is a link to a local or network file.
IsStandardFileboolWhether the document is an uploaded file.
StoreTypeint?Storage backend type identifier.
PhysicalIdstringInternal storage identifier for the physical file.
IsOrphanedboolWhether the document has lost its association to a project or folder.
SourceFolderstringOriginal source folder path.
DocumentFolderPathstringFull path of the document within the folder structure.
CreatedByContactIdGuid?Contact who created the document.
FileTypestringMIME type or file extension classification.
Stateint?Current state of the document.
UpdatedAtDateTimeOffsetTimestamp when the document was last updated.
CreatedAtDateTimeOffsetTimestamp when the document was created.

Endpoints

List Documents

GET/odata/Document

Returns all documents. Supports OData query options.

GET /odata/Document?$filter=ProjectId eq {projectId}&$orderby=CreatedAt desc

Create Document

POST/odata/Document

Creates a new document entry.

{
"FileName": "report.pdf",
"ProjectId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"IsStandardFile": true
}

Get Document

GET/odata/Document({key})

Returns a single document by its ID.

ParameterTypeRequiredDescription
keyGuidThe DocumentId.

Update Document

PATCH/odata/Document({key})

Partially updates an existing document.

ParameterTypeRequiredDescription
keyGuidThe DocumentId.

Delete Document

DELETE/odata/Document({key})

Deletes a document.

ParameterTypeRequiredDescription
keyGuidThe DocumentId.

Count Documents

GET/odata/Document/$count

Returns the total number of documents.

Functions

Get Documents for Object

GET/odata/Document({key})/GetDocumentsForObject()

Returns all documents linked to a specific object.

ParameterTypeRequiredDescription
keyGuidThe object ID to retrieve documents for.
GET/odata/Document({key})/GetRelatedItems()

Returns all entities related to the specified document.

ParameterTypeRequiredDescription
keyGuidThe DocumentId.

Get Tracked Documents for Project

GET/odata/Document/GetTrackedDocumentsForProject(projectId={projectId})

Returns documents being tracked within a project.

ParameterTypeRequiredDescription
projectIdGuidThe ProjectId to query tracked documents for.

Check for Document by Internet Message ID

GET/odata/Document/HasDocumentWithInternetMessageIdInProject(internetMessageId={internetMessageId},projectId={projectId})

Checks whether a document with the given Internet Message ID exists in a project.

ParameterTypeRequiredDescription
internetMessageIdstringThe Internet Message ID (e.g., from an email header).
projectIdGuidThe ProjectId to search within.
tip

Use this function to prevent duplicate email imports by checking if an email has already been stored.

Get File Upload Size Limit

GET/odata/Document/GetFileUploadSizeLimit()

Returns the maximum allowed file upload size in bytes.

Toggle Favorite

GET/odata/Document({key})/ToggleFavorite(isFavorite={isFavorite})

Marks or unmarks a document as a favorite.

ParameterTypeRequiredDescription
keyGuidThe DocumentId.
isFavoriteboolSet to true to mark as favorite, false to unmark.

Actions

Add Note

POST/odata/Document({key})/AddNote

Adds a note to the document.

ParameterTypeRequiredDescription
keyGuidThe DocumentId.

Delete Note

GET/odata/Document/DeleteNote(noteRelationId={noteRelationId})

Removes a note from a document.

ParameterTypeRequiredDescription
noteRelationIdGuidThe ID of the note-document relation to remove.
POST/odata/Document/AddHyperlink

Creates a new document entry from a URL.

{
"FileName": "InLoox Homepage",
"Url": "https://www.inloox.com",
"ProjectId": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}
POST/odata/Document/AddFileLink

Creates a new document entry that links to a file on disk or a network share.

{
"FileName": "Shared Report",
"FilePath": "\\\\server\\share\\report.xlsx",
"ProjectId": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}
POST/odata/Document/ChangeFileLink

Updates the target path of an existing file link.


DocumentFolder

Document folders organize documents into a hierarchical directory structure within a project.

Properties

PropertyTypeDescription
DocumentFolderIdGuidPrimary key. Unique identifier for the folder.
ParentDocumentFolderIdGuid?Foreign key to the parent folder. Null for root folders.
FolderNamestringDisplay name of the folder.
RelativePathstringRelative path of the folder within the project.
ProjectIdGuid?Foreign key to the associated project.
IsOrphanedboolWhether the folder has lost its parent reference.
CreatedDateDateTimeOffsetTimestamp when the folder was created.

Endpoints

GET/odata/DocumentFolder

Returns all document folders.

POST/odata/DocumentFolder

Creates a new document folder.

{
"FolderName": "Contracts",
"ProjectId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"ParentDocumentFolderId": null
}
GET/odata/DocumentFolder({key})

Returns a single folder by its ID.

PATCH/odata/DocumentFolder({key})

Updates an existing folder.

DELETE/odata/DocumentFolder({key})

Deletes a folder.

GET/odata/DocumentFolder/$count

Returns the total number of document folders.


DocumentFolderStructure

Document folder structures define rules for automatic folder creation based on project field values.

Properties

PropertyTypeDescription
DocumentStructureIdGuidPrimary key. Unique identifier for the structure rule.
FolderPathstringFolder path template to create.
RuleFieldstringThe project field used to evaluate the rule.
RuleExpressionstringExpression that determines when the folder is created.
info

Folder structure rules automate directory creation. When a project matches the defined RuleField and RuleExpression, the corresponding folder hierarchy is created automatically.

Endpoints

POST/odata/DocumentFolderStructure

Creates a new folder structure rule.

GET/odata/DocumentFolderStructure({key})

Returns a single folder structure rule by its ID.

PATCH/odata/DocumentFolderStructure({key})

Updates an existing folder structure rule.

DELETE/odata/DocumentFolderStructure({key})

Deletes a folder structure rule.

GET/odata/DocumentFolderStructure/$count

Returns the total number of folder structure rules.