This guide explains how to create a quick access link using Quatrix API.
Retrieve a link for uploading a file using POST /upload/link with the following parameters:
Name | Type | Default Value | Description |
name* | string | - | file name |
parent_id* | string | - | the ID of the folder where you would like to upload your file. parent_id = home_id from the previous call |
resolve | boolean | true | if there is an existing file with the same name, the new file will not be overwritten and will have an extension in its name (e.g.: the existing file - test.pgp and the new file - test(1).pgp ) if the value is false and the file with the same name already exists, you'll get an error: TypeError: Failed to fetch |
file_size | number | - | file sizes are measured in bytes (B) |
* required parameters
Create a quick link using POST /quicklink/create with the following parameters:
Name | Type | Default Value | Description |
subject | string | ' ' | the share subject |
files* | list of strings | - | the ID of the file you upload data to from the response GET: /upload/finalize |
pin | string | - | base64 format |
notify | boolean | True | True or False |
*required parameters
{ "subject": "quick link test", "files": [ "435766b3-8121-4685-8126-3edecde29a39" ], "pin": "MTIzNDU=" } |
{ "files": [ "435766b3-8121-4685-8126-3edecde29a39" ], "activates": 1536842951, "id": "14a522d0-5a76-4ed6-a208-09382450148e", "expires": 1537447751 } |