Get network health status
GET
/api/v1/network/health
const url = 'http://localhost:8080/api/v1/network/health';const options = {method: 'GET', headers: {'X-Signature': '<X-Signature>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url http://localhost:8080/api/v1/network/health \ --header 'X-Signature: <X-Signature>'Get health status of the mesh network and this node
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”Health status retrieved successfully
Media typeapplication/json
object
success
boolean
status
Overall health status
string
uptime
Human-readable uptime
string
checks
object
dhtReachable
DHT is reachable
boolean
storageWritable
Storage is writable
boolean
peersConnected
Peers are connected
boolean
memoryOk
Memory usage is acceptable
boolean
Example
{ "success": true, "status": "healthy", "uptime": "1d 2h 30m 45s", "checks": { "dhtReachable": true, "storageWritable": true, "peersConnected": true, "memoryOk": true }}Internal Server Error
Media typeapplication/json
object
error
Error type
string
message
Human-readable error description
string
code
Optional error code
string
Example
{ "error": "Internal server error", "message": "An unexpected error occurred"}