Whether first-run setup is needed
GET
/setup
const url = 'https://example.com/api/v1/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 https://example.com/api/v1/setupResponses
Section titled “Responses”Setup status.
Media typeapplication/json
object
needed
required
True while no user exists; the setup code is then in <data-dir>/setup-code.
boolean
Examplegenerated
{ "needed": true}Shardkeep is free software under the AGPL-3.0. Minecraft is a trademark of Mojang AB; Shardkeep is not affiliated with or endorsed by Mojang or Microsoft.