Stopping the workspace from inside the workspace

Hi,

Is there a way to stop a workspace from inside the workspace?

Like does the agent have cli commands by chance?

Or might I be able to hit the API to stop the workspace possibly?
Was this page helpful?