REST API Reference
Integrate Statzly directly into your deployment workflows, custom dashboards, and automated maintenance scripts.
Authentication
All API requests must include your API key in the Authorization header as a Bearer token.
Authorization: Bearer YOUR_API_KEY
Endpoints
GET/v1/monitors
List all your active monitors and their current status.
Response Example
{
"id": "mon_12345",
"name": "Production API",
"url": "https://api.statzly.com",
"status": "up",
"uptime": 99.98
}POST/v1/monitors
Create a new uptime monitor programmatically.
Response Example
{
"id": "mon_12345",
"name": "Production API",
"url": "https://api.statzly.com",
"status": "up",
"uptime": 99.98
}GET/v1/monitors/{id}
Get detailed uptime and response time data for a specific monitor.
Response Example
{
"id": "mon_12345",
"name": "Production API",
"url": "https://api.statzly.com",
"status": "up",
"uptime": 99.98
}GET/v1/status
Get the overall health status of your entire infrastructure.
Response Example
{
"id": "mon_12345",
"name": "Production API",
"url": "https://api.statzly.com",
"status": "up",
"uptime": 99.98
}