Get JWT Token
Get a JWT token to authenticate with the API.
post
https://studio.edgeimpulse.com/v1
/api-login
Get JWT token
cURL
Python
Node.js
1
curl --request POST \
2
--url https://studio.edgeimpulse.com/v1/api-login \
3
--header 'content-type: application/json' \
4
--data '{"username":"edge-user-01","password":"string","uuid":"string","ssoType":"browser"}'
Copied!
1
import http.client
2
3
conn = http.client.HTTPSConnection("studio.edgeimpulse.com")
4
5
payload = "{\"username\":\"edge-user-01\",\"password\":\"string\",\"uuid\":\"string\",\"ssoType\":\"browser\"}"
6
7
headers = { 'content-type': "application/json" }
8
9
conn.request("POST", "/v1/api-login", payload, headers)
10
11
res = conn.getresponse()
12
data = res.read()
13
14
print(data.decode("utf-8"))
Copied!
1
const request = require('request');
2
3
const options = {
4
method: 'POST',
5
url: 'https://studio.edgeimpulse.com/v1/api-login',
6
headers: {'content-type': 'application/json'},
7
body: {
8
username: 'edge-user-01',
9
password: 'string',
10
uuid: 'string',
11
ssoType: 'browser'
12
},
13
json: true
14
};
15
16
request(options, function (error, response, body) {
17
if (error) throw new Error(error);
18
19
console.log(body);
20
});
Copied!
Export as PDF
Copy link