openapi: 3.1.0 info: title: Puma Control/Status Application Gc Restart API version: 1.0.0 description: 'Puma ships with an optional control/status HTTP application that can be bound to a local TCP port or Unix socket and queried for runtime statistics and lifecycle control (stop, restart, halt, gc, etc.). Endpoints are served by Puma''s built-in status app and require a shared control token passed via the `token` query parameter; requests without a valid token receive HTTP 403. When the status app is started in `data_only: true` mode, only the read-only endpoints (`/stats` and `/gc-stats`) are enabled and all other paths return 404. ' contact: name: Puma url: https://puma.io/ license: name: BSD-3-Clause url: https://github.com/puma/puma/blob/master/LICENSE servers: - url: http://127.0.0.1:9293 description: Default local Puma control/status server (host and port are configured by the operator). security: - controlToken: [] tags: - name: Restart paths: /restart: get: summary: Hot restart description: Performs a hot restart of the Puma server. operationId: restart responses: '200': description: Restart initiated. '403': $ref: '#/components/responses/Forbidden' tags: - Restart components: responses: Forbidden: description: Missing or invalid control token. securitySchemes: controlToken: type: apiKey in: query name: token description: Shared control-app authentication token. Configured via Puma's `--control-token` option (or `auth_token` in the control app configuration). Required on every request; missing or wrong token returns 403. externalDocs: description: Puma restart and control documentation url: https://github.com/puma/puma/blob/master/docs/restart.md