The v1 API is HungerBridge’s first-generation JSON interface. It accepts and returnsDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/iFamishedX/HungerBridge/llms.txt
Use this file to discover all available pages before exploring further.
application/json payloads and introduces per-field control over command execution — including optional output capture and log-level selection. Every v1 endpoint is gated behind a dedicated config toggle and all are disabled by default in config.yaml under the v1-endpoints section.
The v1 endpoints are available but not recommended for new integrations. Use the v2 endpoints instead — they offer richer responses, more capabilities, and are enabled by default.
Authentication
All v1 endpoints that require authentication expect theX-Auth-Key header to match the auth.key value from config.yaml. A missing or incorrect key returns 401 Unauthorized.
GET /v1/status and GET /v1/version do not perform an auth check — they are open to any caller once their config toggle is enabled.
POST /v1/run
Runs a Minecraft server command and optionally returns its captured output. This endpoint accepts a JSON body, gives you control over output visibility, and returns the full command output as a list of strings unlesssilent is set to true.
Config toggle: v1-endpoints.run
Auth required: Yes — X-Auth-Key header
Request fields
The server command to execute. Must be a non-empty string. Omitting this field returns a
400 error.When
true, the output field is omitted from the response even if the command produces output. Defaults to false.When
true, the command output is also printed to the server console in addition to being captured. Defaults to false.Response fields
Always
true on success.Lines of output produced by the command. Omitted entirely when
silent is true or when the command produces no output.Example — run a command and capture output
Example — fire and forget (silent)
Error responses
| HTTP Status | error field | Cause |
|---|---|---|
400 | bad_request | command field missing from request body |
401 | unauthorized | X-Auth-Key header missing or incorrect |
403 | forbidden | Endpoint disabled (v1-endpoints.run: false) |
405 | method_not_allowed | Request method is not POST |
POST /v1/log
Writes a message to the server log at a specified severity level. Unlike the legacy/log endpoint, POST /v1/log accepts a JSON body and lets callers choose the log level.
Config toggle: v1-endpoints.log
Auth required: Yes — X-Auth-Key header
Request fields
The text to write to the server log. Omitting this field returns a
400 error.The log severity level. Passed to the logger as
level.toUpperCase(). Defaults to "info" when omitted. Common values: "info", "warn", "error".Response fields
Always
true on success.Example — log at INFO level
Example — log at WARN level
Error responses
| HTTP Status | error field | Cause |
|---|---|---|
400 | bad_request | message field missing from request body |
401 | unauthorized | X-Auth-Key header missing or incorrect |
403 | forbidden | Endpoint disabled (v1-endpoints.log: false) |
405 | method_not_allowed | Request method is not POST |
GET /v1/status
Returns a brief health snapshot of the HungerBridge server, including the bridge version, the hosting platform (Fabric or Paper/Purpur), and the running Minecraft version. This endpoint does not require authentication. Config toggle:v1-endpoints.status
Auth required: No
Response fields
Always
true on success.The HungerBridge plugin version, read from
version.yaml at startup.The server platform — e.g.
"fabric" or "paper". Set at runtime by the platform module.The Minecraft server version string — e.g.
"1.21.1". Set at runtime by the platform module.Example
Error responses
| HTTP Status | error field | Cause |
|---|---|---|
403 | forbidden | Endpoint disabled (v1-endpoints.status: false) |
GET /v1/version
Returns version information for the bridge, platform, and Minecraft server. Functionally similar toGET /v1/status but omits the ok field. This endpoint also does not require authentication.
Config toggle: v1-endpoints.version
Auth required: No
Response fields
The HungerBridge plugin version, read from
version.yaml at startup.The server platform — e.g.
"fabric" or "paper".The Minecraft server version string — e.g.
"1.21.1".Example
Error responses
| HTTP Status | error field | Cause |
|---|---|---|
403 | forbidden | Endpoint disabled (v1-endpoints.version: false) |