API Reference
Statly provides a REST API for programmatic access.
Base URL
https://statly.live/api/v1
Authentication
All requests require a Bearer token:
Authorization: Bearer sk_live_xxx
Rate Limits by Plan
| Plan | Rate Limit | |------|------------| | Free | 50 req/min | | Hobby | 100 req/min | | Pro | 300 req/min | | Enterprise | 1000 req/min |
Check the X-RateLimit-Remaining header in responses.
Endpoints
Monitors
GET /monitors- List all monitorsPOST /monitors- Create monitorGET /monitors/:id- Get monitor detailsPATCH /monitors/:id- Update monitorDELETE /monitors/:id- Delete monitor
Incidents
GET /incidents- List incidentsPOST /incidents- Create incidentPATCH /incidents/:id- Update incidentPOST /incidents/:id/updates- Add update
Status (Public, no auth required)
GET /status/:slug- Get organization statusGET /widget/:slug- Widget data for embeddingGET /badge/:slug/:monitorId- SVG uptime badge
Observe SDK
POST /observe/ingest- Send error events Header:X-Statly-DSN: https://[email protected]/org
Error Responses
{
"error": {
"code": "not_found",
"message": "Monitor not found"
}
}
Standard HTTP status codes: 400, 401, 403, 404, 429, 500