Uptime Monitor API (1.0.0)

Download OpenAPI specification:

A REST API for monitoring website uptime and performance

Websites

Website monitoring operations

Get all websites

Retrieve a paginated list of monitored websites

Authorizations:
ApiKeyAuth
query Parameters
limit
integer [ 1 .. 100 ]
Default: 10

Number of websites to return (default 10)

offset
integer >= 0
Default: 0

Number of websites to skip (default 0)

search
string

Search term to filter websites by URL

sort_by
string
Enum: "id" "url" "created_at" "last_check_time"

Field to sort by

sort_order
string
Enum: "asc" "desc"

Sort order

Responses

Response samples

Content type
application/json
{
  • "websites": [
    ],
  • "total": 0,
  • "limit": 0,
  • "offset": 0
}

Create a new website

Add a new website to monitor

Authorizations:
ApiKeyAuth
Request Body schema: application/json
required
url
required
string <uri>

Website URL to monitor

check_interval
integer >= 60
Default: 60

Check interval in seconds (minimum 60)

request_timeout
integer
Default: 15

Request timeout in seconds

max_redirects
integer
Default: 2

Maximum number of redirects to follow

Responses

Request samples

Content type
application/json
{}

Response samples

Content type
application/json
{
  • "id": 0,
  • "check_interval": 60,
  • "request_timeout": 15,
  • "max_redirects": 2,
  • "current_status": "up",
  • "avg_response_time": 0,
  • "last_check_time": "2019-08-24T14:15:22Z",
  • "last_up_time": "2019-08-24T14:15:22Z",
  • "created_at": "2019-08-24T14:15:22Z",
  • "updated_at": "2019-08-24T14:15:22Z"
}

Get website details

Retrieve detailed information about a specific website including stats

Authorizations:
ApiKeyAuth
path Parameters
id
required
integer

Website ID

query Parameters
range
string
Default: "24h"
Enum: "1h" "24h" "7d" "30d"

Time range for stats (default 24h)

Responses

Response samples

Content type
application/json
{
  • "id": 0,
  • "check_interval": 60,
  • "request_timeout": 15,
  • "max_redirects": 2,
  • "current_status": "up",
  • "avg_response_time": 0,
  • "last_check_time": "2019-08-24T14:15:22Z",
  • "last_up_time": "2019-08-24T14:15:22Z",
  • "created_at": "2019-08-24T14:15:22Z",
  • "updated_at": "2019-08-24T14:15:22Z",
  • "current_uptime": 0,
  • "availability_percent": 0.1,
  • "total_incidents": 0
}

Update website

Update an existing website's configuration

Authorizations:
ApiKeyAuth
path Parameters
id
required
integer

Website ID

Request Body schema: application/json
required
url
string <uri>

Website URL to monitor

check_interval
integer >= 60

Check interval in seconds (minimum 60)

request_timeout
integer

Request timeout in seconds

max_redirects
integer

Maximum number of redirects to follow

Responses

Request samples

Content type
application/json
{}

Response samples

Content type
application/json
{
  • "id": 0,
  • "check_interval": 60,
  • "request_timeout": 15,
  • "max_redirects": 2,
  • "current_status": "up",
  • "avg_response_time": 0,
  • "last_check_time": "2019-08-24T14:15:22Z",
  • "last_up_time": "2019-08-24T14:15:22Z",
  • "created_at": "2019-08-24T14:15:22Z",
  • "updated_at": "2019-08-24T14:15:22Z"
}

Delete website

Remove a website from monitoring

Authorizations:
ApiKeyAuth
path Parameters
id
required
integer

Website ID

Responses

Response samples

Content type
application/json
{
  • "error": "string"
}

Checks

Check history and statistics

Get website checks

Retrieve check history for a specific website

Authorizations:
ApiKeyAuth
path Parameters
id
required
integer

Website ID

query Parameters
range
string
Default: "24h"
Enum: "24h" "7d" "30d"

Time range for checks (default 24h)

Responses

Response samples

Content type
application/json
[
  • {
    }
]

Get check graph data

Retrieve aggregated check data for graphing

Authorizations:
ApiKeyAuth
path Parameters
id
required
integer

Website ID

query Parameters
range
string
Default: "24h"
Enum: "1h" "24h" "7d" "30d"

Time range for graph data (default 24h)

Responses

Response samples

Content type
application/json
{ }

Incidents

Incident management

Get website incidents

Retrieve incidents for a specific website

Authorizations:
ApiKeyAuth
path Parameters
id
required
integer

Website ID

query Parameters
limit
integer [ 1 .. 50 ]
Default: 10

Number of incidents to return (default 10, max 50)

Responses

Response samples

Content type
application/json
[
  • {
    }
]

Statistics

Performance and uptime statistics

Get website daily summary

Retrieve 30-day daily uptime summary for a website

Authorizations:
ApiKeyAuth
path Parameters
id
required
integer

Website ID

Responses

Response samples

Content type
application/json
[
  • {
    }
]

Get website statistics

Retrieve statistics for a specific website

Authorizations:
ApiKeyAuth
path Parameters
id
required
integer

Website ID

query Parameters
range
string
Default: "24h"
Enum: "1h" "24h" "7d" "30d"

Time range for stats (default 24h)

Responses

Response samples

Content type
application/json
{
  • "availability": 0.1,
  • "avg_response_time": 0,
  • "incidents": 0
}

Redirect to website feature page

Redirects to the website feature page

Authorizations:
ApiKeyAuth

Responses