oCoreoCore Docs
API Reference

Health

Get system health

Returns health check results for database, Redis, and other services.

GET
/admin/health

Authorization

Authorization<token>

JWT Bearer token (format: Bearer {token})

In: header

curl -X GET "//api.ocore.dev/api/admin/health" \
  -H "Authorization: <token>"

OK

{
  "checks": [
    {}
  ],
  "status": "string"
}

Get server version

Returns the current server version and optionally the latest available release.

GET
/admin/version

Authorization

Authorization<token>

JWT Bearer token (format: Bearer {token})

In: header

curl -X GET "//api.ocore.dev/api/admin/version" \
  -H "Authorization: <token>"

OK

{
  "latestRelease": {},
  "version": "string"
}

System health check

Returns public liveness status. When HEALTH_CHECK_TOKEN is configured and a matching Bearer token is supplied, returns rich operational health details; unauthenticated 200 responses are intentionally minimal.

GET
/health
curl -X GET "//api.ocore.dev/api/health"

OK

{
  "status": "string"
}

Get instance health status

Runs a full health check and returns the current health status for the instance.

GET
/instances/{id}/monitoring/health

Authorization

Authorization<token>

JWT Bearer token (format: Bearer {token})

In: header

Path Parameters

idRequiredstring

Instance ID (UUID)

curl -X GET "//api.ocore.dev/api/instances/<string>/monitoring/health" \
  -H "Authorization: <token>"

OK

{
  "checks": [
    {}
  ],
  "instanceId": "string",
  "lastCheck": "string",
  "status": "string"
}

Get instance uptime

Returns uptime percentage and incident log for the given period.

GET
/instances/{id}/monitoring/uptime

Authorization

Authorization<token>

JWT Bearer token (format: Bearer {token})

In: header

Path Parameters

idRequiredstring

Instance ID (UUID)

Query Parameters

daysinteger

Number of days (1-365)

Default: 30
curl -X GET "//api.ocore.dev/api/instances/<string>/monitoring/uptime?days=30" \
  -H "Authorization: <token>"

OK

{}

Was this page helpful?