Palbase ai · API
/ai/pools/{pool}/stateA runner pool's state
What the project's own scaling loop reads — no webhook tells it: each machine (online, offline or cordoned; the sessions it takes and holds; since when it is idle; when it was last seen), the pool's capacity and what it holds, how many sessions wait for a place and since when the oldest has waited. Scale up by enrolling machines; scale down by cordoning one (it takes no new session) and deleting it once it holds none.
Called by your server, with the project's secret key.
Path
poolstring · requiredThe pool: its id, or its name.curl -X GET "https://<your-ref>.palbase.studio/ai/pools/<pool>/state" \
-H "apikey: $PALBASE_SECRET_KEY"Responses
200The pool's state
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 GetPoolState of ai's contract.