masv

v0.0.7
io.github.getmasv/masv Checked 59 minutes ago Published 2 months ago

Provides tools to use MASV API.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

get_packages List team packages

Get team packages. These are packages sent by MASV team users directly to MASV. It does not include packages sent to Portals. To get full list of packages you need to get both team packages and portal packages

ParameterTypeDescription
created_at_endstringRetrieve records that were created before (YYYY-MM-DDTHH:mm:SS)
created_at_startstringRetrieve records that were created after (YYYY-MM-DDTHH:mm:SS)
expiry_endstringRetrieve records that expire before (YYYY-MM-DDTHH:mm:SS)
expiry_startstringRetrieve records that expire after (YYYY-MM-DDTHH:mm:SS)
extra_storagebooleanIf true, will only include packages which will or have already incurred extended storage costs
limitnumberNumber of records returned per page
namestringFilter packages by name
pagenumberPage number of paginated response. First page is 1
senderstringFilter packages by sender email
sortstringSort results ascending (fieldname) or descending (-fieldname)
statusarraySelect packages with status. New - package is currently uploading and not ready for view/download yet, finalized - package was uploaded and is ready for download, view, or transfer to another storage…
tagsarrayFilter packages by tag id. If any of provided tag ids match package will be returned
teamspacesarrayRetrieve records where teamspace id is equal to one of these values

get_package Get package details

Get package by id

ParameterTypeDescription
packageId *stringId of the package to retrieve

get_portal_packages List packages received through portals

Get portal packages. These are packages uploaded by anyone to MASV Portals. Only packages that were uploaded to Portals returned by this tool. To get full list of packages you need to get both team packages and portal packages.

ParameterTypeDescription
created_at_endstringRetrieve records that were created before (YYYY-MM-DDTHH:mm:SS)
created_at_startstringRetrieve records that were created after (YYYY-MM-DDTHH:mm:SS)
expiry_endstringRetrieve records that expire before (YYYY-MM-DDTHH:mm:SS)
expiry_startstringRetrieve records that expire after (YYYY-MM-DDTHH:mm:SS)
extra_storagebooleanIf true, will only include packages which will or have already incurred extended storage costs
limitnumberNumber of records returned per page
namestringFilter packages by name
pagenumberPage number of paginated response. First page is 1
portalstringRetrieve records that belongs to the specified portal name
senderstringFilter packages by sender email
sortstringSort results ascending (fieldname) or descending (-fieldname)
statusarraySelect packages with status. New - package is currently uploading and not ready for view/download yet, finalized - package was uploaded and is ready for download, view, or transfer to another storage…
tagsarrayFilter packages by tag id. If any of provided tag ids match package will be returned
teamspacesarrayRetrieve records where teamspace id is equal to one of these values

get_package_files List files in a package

Get list of package files

ParameterTypeDescription
packageId *stringId of the package to retrieve files for

get_package_transfers List package deliveries to storage

Get all transfers of a package to storage. Transfer is a package delivery via MASV to cloud or on-premise (via MASV Storage Gateway) destination

ParameterTypeDescription
packageId *stringId of the package to retrieve transfers for. Transfer is a package delivery via MASV to cloud or on-premise (via MASV Storage Gateway) destination

update_package_expiration_date_and_time Change when a package expires

Update package expiration date and time. Also allows enable or disable unlimited storage. Additional package storage may incur charges, depending on your team subscription plan. Once expired the package and all of its files are deleted and can not be restored.

ParameterTypeDescription
packageId *stringId of the package to update expiry date for
unlimited_storage *booleanSpecifies if unlimited storage is enabled or disabled for a package. If disabling unlimited storage expiry parameter must be set
expirystringThe date and time on which the package will expire in UTC (ISO 8601 format). When setting expiry unlimited_storage parameter should be false

delete_package Delete a package

Delete a package by ID. This permanently removes the package and all its files and cannot be undone. Requires MASV_ALLOW_DELETE=true environment variable to be set.

ParameterTypeDescription
packageId *stringId of the package to delete

get_activities List activity history

Get activities. Activities are records of events that happened with MASV resources like packages, links and transfers. Each activity has assosiated events and can be in one of several states: pending, started, complete, cancelled, error. Full list of activity types: package_upload_to_masv (package upload from user or connected storage integration to MASV), package_download_from_masv (user downloads package), link_generation (new download link is added to the package), package_transfer_masv_to_cloud (package transfer from MASV to connected storage integration)

ParameterTypeDescription
activity_statesarrayRetrieve records that has any of the specified activity states
activity_typesarrayRetrieve records that has any of the specified activity types. Activities: package_upload_to_masv - package upload from user or connected storage integration to MASV, package_download_from_masv - user…
created_at_endstringRetrieve records that were created before (YYYY-MM-DDTHH:mm:SS)
created_at_startstringRetrieve records that were created after (YYYY-MM-DDTHH:mm:SS)
limitnumberNumber of records returned per page
package_idstringRetrieve records that belongs to the specified package ID
pagenumberPage number of paginated response. First page is 1
portalsarrayRetrieve records that belong to any of the specified portal IDs
sortstringSort results ascending (fieldname) or descending (-fieldname)
teamspacesarrayRetrieve records where teamspace id is equal to one of these values

get_activity_events Get an activity's event history

Get history of events for given activity. Activity gets event record every time it transitions to a new state. It is very useful to get events history to get more information about activity because it can transition states several times and activity only keeps track of its current state.

ParameterTypeDescription
activityId *stringId of the activity to retrieve events for

get_activities_information Explain MASV activities and states

Get detailed information about all existing activities and their accurate states description. Always use this tool provide users with detailed explanation about activities and their states.

get_integrations List connected storage

Get list of connected integrations. Integration could be cloud or on-prem system like AWS S3, Frame.io, Dropbox, MASV Storage Gateway and many others

send_package_to_integration Deliver a package to storage

Send MASV package to connected integration. Integration could be cloud or on-prem system like AWS S3, Frame.io, Dropbox, MASV Storage Gateway and many others

ParameterTypeDescription
integrationId *stringId of the integration to transfer package to. Integration should have direction: masv_to_cloud.
packageId *stringId of the package that will be transferred to connected integration

list_files_on_integration Browse files in connected storage

List files on any integration (cloud or MASV Storage Gateway). Supports pagination — if more results are available, a cursor is returned; pass it back in the next call to get the next page.

ParameterTypeDescription
integrationId *stringID of the cloud or storage gateway integration
cursorstringPagination cursor returned from a previous call. Pass this to retrieve the next page of results.
pathstringDirectory path/prefix to list files from

transfer_files_from_integration Create a package from files in storage

Transfer files from a cloud integration (AWS S3, Azure, Dropbox, etc.) or MASV Storage Gateway to MASV. Creates a new package and initiates the transfer. Use list_files_on_integration first to get file information including IDs.

ParameterTypeDescription
files *arrayArray of files/directories to transfer from the integration
integrationId *stringID of the cloud or storage gateway integration
packageName *stringName for the new package
accessLimitnumberDownload access limit (default: 5)
notifyEmailstringEmail to notify on transfer completion
packageDescriptionstringDescription for the package
recipientsarrayEmail addresses to send package to

get_portals List portals

Get list of portals that belong to the team. Portals are used to collect files from external users. Each portal has a unique subdomain and can be configured with various settings like upload and download password, file type restrictions, connected integrations, metadata forms, etc.

ParameterTypeDescription
limitnumberNumber of records returned per page
namestringFilter portals by name
pagenumberPage number of paginated response. First page is 1
sortstringSort results by field. Use field name for ascending order or prefix with '-' for descending (e.g., 'name' or '-created_at')
subdomainstringFilter portals by subdomain
tagsarrayFilter portals by tag id. If any of provided tag ids match portal will be returned
teamspacesarrayRetrieve records where teamspace id is equal to one of these values

get_portal Get portal details

Get a specific portal by ID. Returns detailed information about the portal including its configuration, recipients, connected integrations, and settings.

ParameterTypeDescription
portalId *stringId of the portal to retrieve

create_portal Create a portal to collect files

Create a new portal for collecting files from external users. Portals can be configured with access codes, download passwords, file type restrictions, custom branding, connected integrations, and more. Only 'name' and 'subdomain' are required - all other settings are optional.

ParameterTypeDescription
name *stringPortal name
subdomain *stringPortal subdomain (3-53 characters)
access_codestringAccess code for portal (required if has_access_code is true)
access_levelstringPortal access level: 'regular' for public access, 'private' for restricted access
access_listarrayArray of membership IDs for users with direct access to private portal. Use get_team_members to retrieve membership IDs
activebooleanWhether portal is active and accepting uploads
background_urlstringURL of background image for portal
cc_recipientsarrayEmail addresses that receive carbon copy notifications without download link
custom_expiry_daysintegerCustom expiry days for packages (-1 for unlimited)
disable_upload_receiptbooleanDisable email receipt to uploader
download_passwordstringDownload password (required if has_download_password is true)
download_user_authentication_requiredbooleanWhether users must authenticate to download
expirystringPortal expiry date (ISO 8601 format). This parameter is required when expiry_enabled: true
expiry_enabledbooleanWhether portal expiry is enabled. If set to true, need to also provide expiry parameter, e.g. expiry: '2027-01-01'
file_type_restriction_enabledbooleanWhether file type restrictions are enabled
file_type_restriction_excludebooleanWhether to exclude (true) or include (false) specified file types
file_typesarrayAllowed/excluded file extensions prefixed with dots (e.g., ['.mp4', '.mov'])
has_access_codebooleanWhether portal requires an access code to upload (if true, you also need to specify access_code parameter)
has_download_passwordbooleanWhether portal packages require password to download (if true, you also need to specify download_password parameter)
logo_urlstringURL of logo image for portal
max_file_countintegerMaximum number of files per upload (0 for unlimited). Only works when package_size_restriction_enabled: true
max_file_sizeintegerMaximum file size in bytes (0 for unlimited). Only works when package_size_restriction_enabled: true
max_package_sizeintegerMaximum package size in bytes (0 for unlimited). Only works when package_size_restriction_enabled: true
messagestringWelcome message displayed on portal
package_name_formatobjectCustom package naming format configuration (required when package_name_format_enabled is true)
package_name_format_enabledbooleanWhether custom package naming format is enabled
package_size_restriction_enabledbooleanWhether package size restrictions are enabled. Set to true in order to set max_file_count, max_file_size or max_package_size
primary_colorstringPrimary color for portal branding (hex color code)
recipientsarrayEmail addresses that receive notifications for portal uploads
teamspace_idstringID of teamspace to associate portal with
terms_of_serviceobjectTerms of service configuration (required when terms_of_service_enabled is true)
terms_of_service_enabledbooleanWhether terms of service acceptance is required to upload to the portal
user_authentication_requiredbooleanWhether to restrict Portal upload to only team users with proper access. Users must authenticate to upload

update_portal Update a portal

Update an existing portal's configuration. Use this to modify portal settings like access controls, branding, file restrictions, and more.

ParameterTypeDescription
name *stringPortal name
portalId *stringID of the portal to update
subdomain *stringPortal subdomain (3-53 characters)
access_codestringAccess code for portal (required if has_access_code is true)
access_levelstringPortal access level: 'regular' for public access, 'private' for restricted access
access_listarrayArray of membership IDs for users with direct access to private portal. Use get_team_members to retrieve membership IDs
activebooleanWhether portal is active and accepting uploads
background_urlstringURL of background image for portal
cc_recipientsarrayEmail addresses that receive carbon copy notifications without download link
custom_expiry_daysintegerCustom expiry days for packages (-1 for unlimited)
disable_upload_receiptbooleanDisable email receipt to uploader
download_passwordstringDownload password (required if has_download_password is true)
download_user_authentication_requiredbooleanWhether users must authenticate to download
expirystringPortal expiry date (ISO 8601 format). This parameter is required when expiry_enabled: true
expiry_enabledbooleanWhether portal expiry is enabled. If set to true, need to also provide expiry parameter, e.g. expiry: '2027-01-01'.
file_type_restriction_enabledbooleanWhether file type restrictions are enabled
file_type_restriction_excludebooleanWhether to exclude (true) or include (false) specified file types
file_typesarrayAllowed/excluded file extensions prefixed with dots (e.g., ['.mp4', '.mov'])
has_access_codebooleanWhether portal requires an access code to upload (if true, you also need to specify access_code parameter)
has_download_passwordbooleanWhether portal packages require password to download (if true, you also need to specify download_password parameter)
logo_urlstringURL of logo image for portal
max_file_countintegerMaximum number of files per upload (0 for unlimited). Only works when package_size_restriction_enabled: true.
max_file_sizeintegerMaximum file size in bytes (0 for unlimited). Only works when package_size_restriction_enabled: true.
max_package_sizeintegerMaximum package size in bytes (0 for unlimited). Only works when package_size_restriction_enabled: true.
messagestringWelcome message displayed on portal
package_name_formatobjectCustom package naming format configuration (required when package_name_format_enabled is true)
package_name_format_enabledbooleanWhether custom package naming format is enabled
package_size_restriction_enabledbooleanWhether package size restrictions are enabled. Set to true in order to set max_file_count, max_file_size or max_package_size
primary_colorstringPrimary color for portal branding (hex color code)
recipientsarrayEmail addresses that receive notifications for portal uploads
teamspace_idstringID of teamspace to associate portal with
terms_of_serviceobjectTerms of service configuration (required when terms_of_service_enabled is true)
terms_of_service_enabledbooleanWhether terms of service acceptance is required
user_authentication_requiredbooleanWhether to restrict Portal upload to only team users with proper access. Users must authenticate to upload

delete_portal Delete a portal

Delete a portal by ID. This permanently removes the portal and cannot be undone. Packages that were uploaded to this portal will remain accessible. Requires MASV_ALLOW_DELETE=true environment variable to be set.

ParameterTypeDescription
portalId *stringId of the portal to delete

get_team_members List team members

Get list of all team members. Returns member details including id (membership_id), email, name, policy, approval status, and teamspaces. Use this to get membership IDs needed for portal access_list when creating private portals.