palbaseDocs

Palbase ai · API

GET/ai/machines

List a person's machines

A signed-in user's own machines (settings.clients is not asked: what a person enrolled is theirs to read), each with its name, its state, when it was last seen and its harnesses; the project's server reads those of the user it names (owner). A machine of someone else's is never in the list. The list changes without a call: the realtime channel ai_machines:<project ref>:<user id>, which that user alone joins and nobody but the platform writes, carries the broadcast machines.changed.v1, with no data, whenever one of the user's machines is enrolled, goes online or offline, is cordoned, resumed or removed, or reports other harnesses — read the list again then.

Called by a signed-in user of your app, with their token and the publishable key; or your server, with the project's secret key.

Query

ownerstring · optionalThe user whose machines to list: required of the project's server, and refused of a signed-in user unless it is their own id.
curl
curl -X GET "https://<your-ref>.palbase.studio/ai/machines" \
  -H "apikey: $PALBASE_SECRET_KEY"

Responses

200The machines

400The request is malformed, or names what this module does not offer (the error names which)

401No valid credential

403A publishable key or a user's session: everything here is the project's server's, called with the secret key

503The model service or the database did not answer; retry shortly

defaultAn error: the envelope names it (`error`) and explains it (`error_description`).

Operation ListMachines of ai's contract.