Get the saved preferences
GET
/api/setup
const url = 'http://127.0.0.1:8765/api/setup';const options = {method: 'GET'};
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://127.0.0.1:8765/api/setupThe saved preferences (the wizard’s answers).
Responses
Section titled “Responses”Success.
Media typeapplication/json
object
key
additional properties
any
Example
{ "countries": [ "US" ], "roles": [ "Software Engineer" ]}Forbidden / forbidden_origin: loopback peer and Host 127.0.0.1:<port> or localhost:<port> only (Origin too on writes).
Media typeapplication/json
object
error
required
object
allowed_keys
Array<string>
code
required
string
message
required
string
key
additional properties
any
Examplegenerated
{ "error": { "allowed_keys": [ "example" ], "code": "example", "message": "example" }}Prefs_missing
Media typeapplication/json
object
error
required
object
allowed_keys
Array<string>
code
required
string
message
required
string
key
additional properties
any
Example
{ "error": { "code": "prefs_missing", "message": "..." }}