Ana içeriğe geç

📖 API Reference Overview

Monitron SaaS provides HTTP endpoints for integrating external services — primarily for Heartbeat monitoring and Server Agent reporting.


🔗 Base URL

All API endpoints use your Monitron installation URL:

https://your-monitron.com

🔑 Authentication

EndpointAuth Method
Heartbeat APIToken in URL path (no headers needed)
Agent APIagent_key in request body

No API keys, OAuth, or Bearer tokens required — authentication is built into the endpoint structure.


📋 Available Endpoints

MethodEndpointDescription
GET/POST/heartbeat/{token}Send a heartbeat ping
POST/heartbeat/{token}/failReport a heartbeat failure
POST/agent/reportSubmit server agent metrics

📊 Response Format

All endpoints return JSON:

{
"status": "ok",
"message": "Heartbeat recorded"
}

Error responses:

{
"status": "error",
"message": "Invalid agent key"
}