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