palbaseDocs

Palbase ai · API

POST/ai/machines/{machine}/resume

Resume a machine

A cordoned machine takes sessions again. A signed-in user resumes a machine that is theirs; any other — someone else's, or one of the project's own — is not there for them (404).

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 POST "https://<your-ref>.palbase.studio/ai/machines/<machine>/resume" \
  -H "apikey: $PALBASE_SECRET_KEY"

Responses

204Resumed

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 ResumeMachine of ai's contract.