Uptime MonitoringStart monitoring

Start monitoring

Enable uptime monitoring for a link's destination URL. The system checks availability at regular intervals and triggers webhook alerts on status changes.

curl -X POST "https://api.mythic-analytics.com/api/v1/links/example_string/uptime/start" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -d '{
  "interval": 300,
  "timeout": 30
}'
{
  "success": true,
  "data": {
    "link_id": "lnk_9xP3qLmN",
    "status": "up",
    "response_time_ms": 245,
    "last_checked": "2024-06-15T14:30:00.000Z",
    "monitoring_active": true,
    "interval": 300
  }
}
POST
/links/{id}/uptime/start
POST
Bearer Token
Bearer Tokenstring
Required

Admin API key as bearer token. Format: Bearer YOUR_ADMIN_KEY

Admin API key as bearer token. Format: Bearer YOUR_ADMIN_KEY
API Key (query: admin_key)
admin_keystring
Required

Alternative to the Authorization header for server-to-server scenarios.

Alternative to the Authorization header for server-to-server scenarios.
path
idstring
Required

Short link identifier.

Content-Typestring
Required

The media type of the request body

Options: application/json
intervalinteger

Check interval in seconds. Default 300 (5 minutes). Minimum 60.

Min: 60
timeoutinteger

Request timeout in seconds. Default 30.

Request Preview
Response

Response will appear here after sending the request

Authentication

header
Authorizationstring
Required

Bearer token. Admin API key as bearer token. Format: Bearer YOUR_ADMIN_KEY

query
admin_keystring
Required

API Key for authentication. Alternative to the Authorization header for server-to-server scenarios.

Path Parameters

idstring
Required

Short link identifier.

Body

application/json
intervalinteger

Check interval in seconds. Default 300 (5 minutes). Minimum 60.

timeoutinteger

Request timeout in seconds. Default 30.

Responses

successboolean
dataobject