Create watcher
Creates a new watcher. Supports multiple categories: uptime, ssl_certificate, domain_expiration, cron_job, heartbeat.
POST
https://api.uptimetea.com/watchersHeaders
AuthorizationREQUIRED
STRING
Bearer $TOKENContent-TypeREQUIRED
STRING
application/jsonResponse body
{
"id": "uuid",
"title": "My Website",
"category": "uptime",
"url": "https://example.com",
"status": "pending",
"tags": ["production"],
"last_checked_at": null,
"uptime_percentage": null,
"consecutive_failures": 0,
"in_maintenance": false,
"created_at": "2024-01-15T10:30:00Z",
"updated_at": "2024-01-15T10:30:00Z"
}Code Examples
curl -X POST "https://api.uptimetea.com/watchers" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"title": "My Website",
"category": "uptime",
"url": "https://example.com",
"tags": ["production"]
}'