Whether the first admin account still has to be created.
GET
/api/v1/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”Media typeapplication/json
object
needed
required
No admin account exists yet; the console shows /setup.
boolean
token_required
required
POST /setup must carry the token the installer printed.
boolean
secure
required
The admin may be created over this connection (HTTPS, this machine,
or allowed by configuration); otherwise POST /setup answers 403.
boolean
Examplegenerated
{ "needed": true, "token_required": true, "secure": true}