palbaseDocs

Palbase ai · API

GET/ai/machines/{machine}

Read a machine

One machine: its name, its state, when it was last seen and its harnesses. The project's server reads every machine of the project. A signed-in user reads a machine that is theirs; any other — someone else's, or one of the project's own — is not there for them (404), as a machine that does not exist.

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.

Path

machinestring · requiredThe machine: its id.
curl
curl -X GET "https://<your-ref>.palbase.studio/ai/machines/<machine>" \
  -H "apikey: $PALBASE_SECRET_KEY"

Responses

200The machine

401No valid credential

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

404No such response, job or provider in this project

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

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

Operation GetMachine of ai's contract.