List documents and folders


get https://api.trivi.com/v2/documents/{documentItemUniqueId}

Sorts by type and name automatically:

  • In case of ASC sorting Folders are returned first (alphabetically sorted) and Files afterwards (alphabetically sorted).
  • In case of DESC sorting the order is completely reveresed (Files go first, Folders after them).

Path Variables
documentItemUniqueId
string   required

GUID

Query Variables
page
integer   optional
Default 1
pageSize
integer   optional
Default 20 Minimum 10 Maximum 100
sortingDirection
string   optional
Default ASC
type
integer   optional

0 - File

1 - Folder

Format int8 Default 0
DocumentsSearchResult
documentItems
Array of DocumentItem   optional
pagesCount
integer   optional
currentPage
integer   optional
pageSize
number   optional
currentDocumentItem
DocumentItem   optional
parentDocumentInfo
DocumentDescriptor   optional
DocumentDescriptor
uniqueId
string   optional

Only in GET UUID

name
string   optional
parentDocumentInfo
DocumentDescriptor   optional
isReadOnly
boolean   optional

If null, the DocumentDescriptor inherits settings from parent DocumentDescriptor.

DocumentItem
uniqueId
string   optional

Only in GET UUID

fileId
integer   optional

Only in GET

Format int64
name
string   optional
size
integer   optional

Only in GET

In bytes

note
string   optional
parentUniqueId
string   optional

Only in GET UUID

Parent folder ID. If empty, the document is in the root.

itemType
number   optional

0 - File, 1 - Folder

folderType
number   optional

0 - Generic

children
Array of DocumentItem   optional

Only in GET

isReadOnly
boolean   optional

Only in GET

If null, the DocumentItem inherits settings from parent DocumentItem.

canBeChanged
boolean   optional

Only in GET

Based on current user permissions.

canChildrenBeCreated
boolean   optional

Only in GET

Based on current user permissions.