Loading...
Get a token to authenticate with the web socket interface.
Project ID
OK
Whether the operation succeeded
Optional error description (set if 'success' was false)
const response = await fetch('https://studio.edgeimpulse.com/v1/api/{projectId}/socket-token', { method: 'GET', headers: {}, }); const data = await response.json();
{ "success": false, "error": "text", "token": { "socketToken": "text", "expires": "2024-12-03T17:35:18.671Z" } }