Retrieve IM server token
OK
The access token for IM Server.
const response = await fetch('http://127.0.0.1:8888/api/im/token', { method: 'GET', headers: {}, }); const data = await response.json();
{ "token": "text" }
Regenerate IM server token
const response = await fetch('http://127.0.0.1:8888/api/im/token', { method: 'POST', headers: {}, }); const data = await response.json();