What a new computer still needs
GET
/setup/doctor
const url = 'http://127.0.0.1:7700/api/setup/doctor';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://127.0.0.1:7700/api/setup/doctor \ --header 'Authorization: Bearer <token>'Owner only. Lists what is missing before this computer is ready. Used when an agent sets up a computer from another one.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”Whether it is ready, and what is missing.
Media typeapplication/json
object
ok
required
boolean
missing
required
Array<object>
object
id
required
string
text
required
string
Example
{ "ok": false, "missing": [ { "id": "key", "text": "No model key yet: set ANTHROPIC_API_KEY or FACTORY_API_KEY." } ]}The owner’s route, called by someone who is not the box’s own screen or a device paired as the owner.
Media typeapplication/json
object
error
required
What went wrong
string
Example
{ "error": "only this computer's own screen or the owner's paired device can do this"}