Last updated 7 months ago
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-11-21T08:42:55.988Z" } }