Read the console reply
GET
/api/v1/console
const url = 'http://pwrman.local/api/v1/console';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/console \ --header 'Authorization: Bearer <token>'The transcript of the last batch sent to POST /api/v1/console.
Poll until the reply is 200.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”The transcript; empty before the first batch.
Media typetext/plain
string
The batch is still running. The body is empty.
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"}USB Type-C® and USB-C® are registered trademarks of USB Implementers Forum.