API

⚠️ Direct access to the API will be available soon.

EndpointRequest type and fields to supplyDescriptionResponse type
/api/storageGETReturns information about connected storage serversservers: String[], locations: String[], hosts: String[], pings: Number[]
/api/fileGETReturns the list of currently protected files and a percentage of storage usefiles: File[], percentage: Number
/api/file/accessGET
- with (query param, me or others) : which way of file access
Return the list of currently shared files (shared with us, or files we shared with others)files: File[]
/api/file/access/modifyPOST
- mails ({ "mails": [<list of mails>] }): mails of user to change permissions
- files ({ "files": [<list of filenames>] }):
- permission (add_read or revoke_read): the permission
Change an user access to a file owned by the demanding usernull
/api/configurationGETReturns a list of information about the configurationversion: String, limit: Number, max_file_size: Number
/api/file/protectPOST
- threshold (number): number of parts
- storage_servers (list): list of storage servers's player name (Charlie1)
- file (file): the file to protect
Protects a filenull
/api/file/retrievePOST
- name (string): the filename
Retrieves a fileFile data as a stream of bytes
/api/file/removePOST
- name (string): the filename
Removes a filenull
/api/file/multiprotectPOST
- threshold (number): threshold in the main proxy
- storage_servers (list): list of storage servers's player name (Charlie1) for the main proxy
- threshold_secondary (number): threshold for the secondary shares
- sub_networks: [[{"proxy_url": ""}, {"threshold": , "storage_servers": [""]}], ]
- file (file): the file to protect
Protects a file with the multiss protocolnull
/api/file/multiretrievePOST
- name (string): the filename
Retrieves a file protected by multissFile data as a stream of bytes
/api/file/multiremovePOST
- name (string): the filename
Removes a file protected by multissnull
/pingGETChecks if the proxy is onlinenull