Documentation / API Server Health and Metrics / Public Health Endpoint

Public Health Endpoint

Live GET endpoint for public application health status.

This endpoint returns public application health status as JSON. It is useful for dashboards, audits, provider portals, support checks, monitoring jobs, and automation that needs to observe PanelConfig state without opening the GUI.

Endpoint

FieldValue
AvailabilityAvailable in current source.
HTTP methodGET
Endpoint URL/api/v1/health.php
AuthenticationNo bearer token is required for this endpoint.
Published/recommended scope labelpublic
Current scope enforcement noteThe source stores scope labels, but this endpoint file does not call a central scope-check helper in the inspected build.
Role/access levelPublic endpoint.
Rate limit60 requests / 60 seconds
Primary data readNo primary database resource table found in this endpoint file, or the endpoint returns computed/static information.

Headers

HeaderRequiredValue
AuthorizationNoNot required
AcceptRecommendedapplication/json

Path

None. This is a collection-style file endpoint in the current build.

Query

No formal query parameters are documented from the source for this endpoint. The route returns a recent list or computed summary based on the SQL query inside the file.

Request Body

No request body is used. Sending a JSON body to this GET endpoint is unnecessary.

Request

curl -s https://panel.example.com/api/v1/health.php \
  -H "Accept: application/json"

Success Response

{
  "success": true,
  "message": "OK",
  "data": {"product": "PanelConfig"},
  "timestamp": "2026-06-19T00:00:00+00:00"
}

Status Codes

StatusMeaning
200Request succeeded.
401Bearer token missing, invalid, expired, or attached to an inactive user.
403The token user is authenticated but not admin-capable where this endpoint requires an admin-capable user.
429Rate limit exceeded where the endpoint calls the rate-limit helper.
500Unexpected application, PHP, or database failure.

Records

This endpoint is read-only for the resource it returns. For authenticated endpoints, the auth helper updates api_tokens.last_used_at and inserts a row into api_requests when that table exists.

Audit Logging

Read endpoints do not call the audit helper for the returned resource. Use API request logs and token last-used timestamps to review API activity. Token creation itself is audited by the token creation helper.

Panel UI

Public health/API health check

PCCLI

Use PCCLI list or health commands where available for local server automation. Treat API and PCCLI output as complementary: API for remote JSON clients, PCCLI for on-server shell workflows.

Security Notes

  • Use HTTPS.
  • Do not expose bearer tokens in client-side code.
  • Create a separate token for each external system.
  • For admin-only endpoints, restrict which operator accounts can create and own tokens.

Troubleshooting

  • Run /api/v1/me.php first to confirm the token works.
  • Check the HTTP status code and the JSON message.
  • For empty items, verify that records exist and that the token user has account visibility.
  • For 429, reduce polling frequency and retry after the rate window.
Server Advisor Checks Endpoint →