Skip to main content
POST
Shut down server
Request graceful shutdown of the server and its active workspaces. This operation is unavailable to account-scoped callers. A custom server must configure on_idle_exit in Python or onIdleExit in TypeScript. Without that callback, it continues serving. See server shutdown configuration.
See error examples and recovery steps. The complete OpenAPI contract includes every response schema.

Authorizations

Authorization
string
header
required

The server's token (MIRAGE_AUTH_TOKEN) or a JWT. A daemon in the default local mode with no token accepts requests without one.

Response

200 - application/json

OK

status
string
required
pid
integer
required