Platform Related

Learn how to organize and manage your documents in Alan Workstation.

File Manager Structure

Alan Workstation uses a familiar folder-based structure to organize your documents:

  • Root Folder: The top-level container for your workspace. The root folder can only hold other folders.
  • Folders: Containers that can hold files. Currently, nested folders are not supported.
  • Files: Individual documents of various types.

Supported File Types

Alan Workstation supports the following file formats:

  • Documents: PDF, DOCX, DOC, TXT
  • Presentations: PPTX, PPT, ODP
  • Spreadsheets: XLSX, CSV
  • Other: HTML

Creating Folders

To create a new folder:

  1. Navigate to the file manager page
  2. Click the New Folder button
  3. Enter a name for the folder and select it's visibility (public or private)
  4. Optionally, select groups or individual members to share the folder with. The user that creates the folder will be automatically added to it.
  5. Click Create
Create Folder

Uploading Files

  1. Navigate to the desired folder
  2. Click the Upload file button
  3. Select files from your computer
  4. Click Open
Upload Files

Deleting Files and Folders

To delete files or folders:

  1. Select one or more items you want to delete
  2. Press the trash icon on the top right of the table, or
  3. Click the three dots on the right side of the table row and select Delete
  4. Confirm the deletion in the confirmation dialog that appears
Be careful when deleting files and folders as this action cannot be undone.

Searching for Files and Folders

To find files quickly:

  1. Use the search bar at the top of the file table
  2. Enter file names to search for
  3. The system will filter files based on the name you entered

The search functionality works for both files and folders.

Folder API

Get Folders

To get a list of folders, use the following API endpoint:

curl -X GET https://api.mrturing.ai/folders \
  -H "Authorization: {token}" \
  -G \
  --data-urlencode "page=1" \
  --data-urlencode "limit=10" \
  --data-urlencode "search=My Folder"

Request Parameters

FieldTypeRequiredDefaultDescription
user_idUUIDYes-The ID of the user making the request
organization_idUUIDYes-The ID of the organization
pageintegerNo1Page number for pagination
items_per_pageintegerNo10Number of items per page
start_timedateNo-Filter folders created after this date
end_timedateNo-Filter folders created before this date
searchstringNo-Search term to filter folders by name
order_bystringNo"created_at"Field to sort by
order_directionstringNo"desc"Sort direction ("asc" or "desc")

Get Folder

To get a specific folder, use the following API endpoint:

curl -X GET https://api.mrturing.ai/folders/{folder_id} \
  -H "Authorization: {token}"

Request Parameters

FieldTypeRequiredDescription
external_idUUIDYesThe ID of the folder to retrieve
organization_idUUIDYesThe ID of the organization
user_idUUIDYesThe ID of the user making the request

Create Folder

To create a new folder, use the following API endpoint:

curl -X POST https://api.mrturing.ai/folders \
  -H "Authorization: {token}" \
  -d '{
    "name": "My Folder",
    "is_public": true,
    "groups_access": ["group_id1", "group_id2"],
    "users_access": ["user_id1", "user_id2"]
  }'

Request Body

FieldTypeRequiredDefaultDescription
organization_idUUIDYes-The ID of the organization
created_byUUIDYes-The ID of the user creating the folder
namestringYes-Name of the folder
is_publicbooleanNofalseWhether the folder is public
categorystringNo"user"Category of the folder
parametersobjectNo-Additional parameters as key-value pairs
groups_accessUUIDNo-Array of group IDs that should have access
users_accessUUIDNo-Array of user IDs that should have access

Update Folder

To update a folder, use the following API endpoint:

curl -X PATCH https://api.mrturing.ai/folders/{folder_id} \
  -H "Authorization: {token}" \
  -d '{
    "name": "My Updated Folder",
    "is_public": true,
    "groups_access": ["group_id1", "group_id2"],
    "users_access": ["user_id1", "user_id2"]
  }'

Request Body

FieldTypeRequiredDescription
organization_idUUIDYesThe ID of the organization that owns the folder
folder_idUUIDYesThe ID of the folder to update
user_idUUIDYesThe ID of the user making the update
namestringNoNew name for the folder
is_publicbooleanNoWhether the folder should be public (true) or private (false)
parametersobjectNoAdditional parameters as key-value pairs
groups_accessUUIDNoArray of group IDs that should have access to the folder
users_accessUUIDNoArray of user IDs that should have access to the folder
You only need to include the fields you want to update in the request body. Omitted optional fields will retain their current values.

Delete Folders

To delete one or more folders, use the following API endpoint:

curl -X DELETE https://api.mrturing.ai/folders \
  -H "Authorization: {token}" \
  -H "Content-Type: application/json" \
  -d '{
    "folderIds": ["folder_id1", "folder_id2"]
  }'

Request Body

FieldTypeRequiredDescription
folderIdsUUIDYesArray of folder IDs to delete
This operation permanently deletes the specified folders and all their contents. This action cannot be undone.

File API

Upload File

To upload a new file, use the following API endpoint:

curl -X POST https://api.mrturing.ai/files/upload \
  -H "Authorization: {token}" \
  -F "[email protected]" \
  -F "folder_id=uuid"

Request Parameters

FieldTypeRequiredDefaultDescription
fileFileYes-The file to be uploaded
folder_idUUIDYes-The folder where the file will be stored

Delete Files

To delete one or more files, use the following API endpoint:

curl -X DELETE https://api.mrturing.ai/files \
  -H "Authorization: {token}" \
  -H "Content-Type: application/json" \
  -d '{"file_ids": ["uuid1", "uuid2"]}'

Request Parameters

FieldTypeRequiredDefaultDescription
file_idsUUIDYes-Array of file IDs to delete

Get Files

To retrieve a list of files in a folder, use the following API endpoint:

curl -X GET https://api.mrturing.ai/files \
  -H "Authorization: {token}" \
  -G \
  --data-urlencode "folder_id=uuid" \
  --data-urlencode "page=1" \
  --data-urlencode "items_per_page=10" \
  --data-urlencode "search=document"

Request Parameters

FieldTypeRequiredDefaultDescription
folder_idUUIDYes-Filter files by folder
pageintegerNo1Page number for pagination
items_per_pageintegerNo10Number of items per page
searchstringNo-Search term to filter files by name
order_bystringNo"created_at"Field to sort by (created_at, name, size)
order_directionstringNo"desc"Sort direction ("asc" or "desc")
start_timedateNo-Filter files created after this date
end_timedateNo-Filter files created before this date

Get Total Size

To get the total size of files, use the following API endpoint:

curl -X GET https://api.mrturing.ai/files/total-size \
  -H "Authorization: {token}" \
  -G \
  --data-urlencode "folder_id=uuid"

Request Parameters

FieldTypeRequiredDefaultDescription
folder_idUUIDNo-Get total size for specific folder

Get Document Summary

To retrieve a summary for a specific document, use the following API endpoint:

curl -X GET https://api.mrturing.ai/files/summary \
  -H "Authorization: {token}" \
  -G \
  --data-urlencode "fileId=uuid"

Request Parameters

FieldTypeRequiredDescription
fileIdUUIDYesThe ID of the file to retrieve summary for

Response

{
  "success": true,
  "data": {
    "id": "document_identifier",
    "summary": "Document summary content"
  }
}

Error Responses

{
  "success": false,
  "message": "Document not found"
}