Read the message log
GET
/api/v1/log
const url = 'http://pwrman.local/api/v1/log';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url http://pwrman.local/api/v1/log \ --header 'Authorization: Bearer <token>'The controller’s recent messages as text, oldest first.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”The messages. Passwords and the token appear as ********.
Media typetext/plain
string
The token is missing or wrong, or no token is set yet.
Media typeapplication/json
object
error
required
Why the request was refused, in words.
string
Examples
{ "error": "bearer token required"}{ "error": "no API token set yet: finish first-time setup first"}Another request is reading the log. Try again.
Media typetext/plain
string
Example
log busy, retryUSB Type-C® and USB-C® are registered trademarks of USB Implementers Forum.