TheDocumentation 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.
/v2/ping endpoint is the simplest way to verify that HungerBridge is reachable and responding. It returns the server’s current Unix timestamp in milliseconds, which lets clients calculate round-trip latency by comparing it against their own clock before and after the request.
Request
Method:GETPath:
/v2/ping
Headers
| Header | Required | Description |
|---|---|---|
X-Auth-Key | Yes | Authentication key from config.yaml → auth.key |
Configuration
This endpoint can be disabled inconfig.yaml under v2-endpoints.ping. It is enabled by default.
Response
Always
true on success.The server’s current time as milliseconds since the Unix epoch (
System.currentTimeMillis()). Clients can compare this against their local clock to estimate clock skew, or measure round-trip latency by recording timestamps before sending the request and after receiving the response.Example Response
Error Responses
| Status | error field | Cause |
|---|---|---|
401 | unauthorized | Missing or incorrect X-Auth-Key header |
403 | forbidden | Endpoint disabled via v2-endpoints.ping: false |
405 | method_not_allowed | Request method was not GET |
curl Example
To measure round-trip latency, record the time before the request and subtract from the time after the response. The
server_time field reflects the instant the handler ran on the server side, not the time the response was sent over the wire.