Retrieve a file

GET/storage/{connection_id}/file/{id}

Parameters

fieldsstring array
Fields to return
rawstring
Raw parameters to include in the 3rd-party request. Encoded as a URL component. eg. raw parameters: foo=bar&zoo=bar -> raw=foo%3Dbar%26zoo%3Dbar
connection_idstring required
ID of the connection
idstring required
ID of the File

Returns

idstring
created_atdate
(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
updated_atdate
(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
namestring
descriptionstring
parent_idstring
user_idstring
(reference to HrisEmployee)
sizenumber
type enum
Valid values:
"FILE"
"FOLDER"
mime_typestring
permissions array
download_urlstring
This link expires after 1 hour. When you need to retrieve the contents of a file, call the "Retrieve a file" endpoint again to get a new download_url.
hashstring
datastring
base64 encoded file contents used to create/update only
versionstring
web_urlstring
references array
const options = {
  method: 'GET',
  url: 'https://api.unified.to/storage/5de520f96e439b002043d8dc/file/5de520f96e439b002043d8d8',
  headers: {
    authorization: 'bearer .....'
  },
  params: {
    fields: '',
    raw: '',
  }
};

const results = await axios.request(options);
Are we missing anything? Let us know
Was this page helpful?