Stop every running workspace in the caller's org
POST
/workspaces/stop-all
const url = 'https://your-org.evershell.ai/v1/workspaces/stop-all';const options = {method: 'POST', 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 POST \ --url https://your-org.evershell.ai/v1/workspaces/stop-all \ --header 'Authorization: Bearer <token>'Permissions: workspace:write (unscoped — bulk
lifecycle crosses users, so no :own variant).
Bulk-stop convenience for incident response — fires
POST /workspaces/{id}/stop against every workspace
currently in idle or busy. Synchronous: returns once
every stop is acknowledged or the per-call timeout fires.
Authorizations
Section titled “Authorizations ”Responses
Section titled “ Responses ”OK
Media type application/json
object
stopping
required
Number of workspaces that received a stop signal.
integer
Example generated
{ "stopping": 1}