Links

View File From Portal

View a file that's located in an upload portal (requires JWT auth). Will return a signed URL to the bucket.
get
https://studio.edgeimpulse.com/v1
/api/portals/{portalId}/files/view
View file from portal

View a file that's located in an upload portal (requires JWT auth). Will return a signed URL to the bucket.

Parameters
Path
portalId*
integer
Portal ID
Query
path*
string
Path to file in portal
Responses
302: Found
A redirect to a signed URL to view this file
cURL
Python
Node.js
curl --request GET \
--url 'https://studio.edgeimpulse.com/v1/api/portals/{portalId}/files/view?path=SOME_STRING_VALUE' \
--header 'x-jwt-token: REPLACE_KEY_VALUE'
import http.client
conn = http.client.HTTPSConnection("studio.edgeimpulse.com")
headers = { 'x-jwt-token': "REPLACE_KEY_VALUE" }
conn.request("GET", "/v1/api/portals/{portalId}/files/view?path=SOME_STRING_VALUE", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
const request = require('request');
const options = {
method: 'GET',
url: 'https://studio.edgeimpulse.com/v1/api/portals/{portalId}/files/view',
qs: {path: 'SOME_STRING_VALUE'},
headers: {'x-jwt-token': 'REPLACE_KEY_VALUE'}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});