API endpoint:
https://siteuptimes.com/api/v1/monitors
Příklad požadavku:
curl --location --request GET 'https://siteuptimes.com/api/v1/monitors' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {api_key}'
search
search_by
name
pro Jméno, url
pro URL. Výchozí hodnota: name
.status_page_id
sort_by
id
pro Datum vytvoření, name
pro Jméno, url
pro URL. Výchozí hodnota: id
.sort
desc
pro Sestupně, asc
pro Vzestupně. Výchozí hodnota: desc
.per_page
10
, 25
, 50
, 100
. Výchozí hodnota: 25
.API endpoint:
https://siteuptimes.com/api/v1/monitors/{id}
Příklad požadavku:
curl --location --request GET 'https://siteuptimes.com/api/v1/monitors/{id}' \ --header 'Accept: application/json' \ --header 'Authorization: Bearer {api_key}'
API endpoint:
https://siteuptimes.com/api/v1/monitors
Příklad požadavku:
curl --location --request POST 'https://siteuptimes.com/api/v1/monitors' \ --header 'Content-Type: application/x-www-form-urlencoded' \ --header 'Authorization: Bearer {api_key}' \ --data-urlencode 'name={name}' \ --data-urlencode 'url={url}'
name
url
interval
60
, 180
, 300
, 600
, 900
, 1800
, 3600
.alert_condition
url_unavailable
pro URL se stane nedostupnou, url_text
pro Odpověď URL obsahuje text, url_no_text
pro Odpověď URL neobsahuje text.alert_text_lookup
alert_condition
nastaveným na url_text
, url_no_text
.request_method
GET
, POST
, HEAD
, PUT
, DELETE
, PATCH
, OPTIONS
.request_headers[index][key]
request_headers[index][value]
request_auth_username
request_auth_password
cache_buster
0
pro Zakázáno, 1
pro Povoleno. Výchozí hodnota: 0
.ssl_alert_days
0
, 1
, 2
, 3
, 7
, 14
, 30
, 60
.domain_alert_days
0
, 1
, 2
, 3
, 7
, 14
, 30
, 60
.maintenance_start_at
Y-m-d H:i
.maintenance_end_at
Y-m-d H:i
.alerts[index][key]
email
pro Email, webhook
pro Webhook, slack
pro Slack, teams
pro Microsoft Teams, discord
pro Discord, flock
pro Flock, sms
pro SMS.alerts[index][value]
API endpoint:
https://siteuptimes.com/api/v1/monitors/{id}
Příklad požadavku:
curl --location --request PUT 'https://siteuptimes.com/api/v1/monitors/{id}' \ --header 'Content-Type: application/x-www-form-urlencoded' \ --header 'Authorization: Bearer {api_key}' \ --data-urlencode 'name={name}'
name
url
interval
60
, 180
, 300
, 600
, 900
, 1800
, 3600
.alert_condition
url_unavailable
pro URL se stane nedostupnou, url_text
pro Odpověď URL obsahuje text, url_no_text
pro Odpověď URL neobsahuje text.alert_text_lookup
alert_condition
nastaveným na url_text
, url_no_text
.request_method
GET
, POST
, HEAD
, PUT
, DELETE
, PATCH
, OPTIONS
.request_headers[index][key]
request_headers[index][value]
request_auth_username
request_auth_password
cache_buster
0
pro Zakázáno, 1
pro Povoleno.ssl_alert_days
0
, 1
, 2
, 3
, 7
, 14
, 30
, 60
.domain_alert_days
0
, 1
, 2
, 3
, 7
, 14
, 30
, 60
.maintenance_start_at
Y-m-d H:i
.maintenance_end_at
Y-m-d H:i
.alerts[index][key]
email
pro Email, webhook
pro Webhook, slack
pro Slack, teams
pro Microsoft Teams, discord
pro Discord, flock
pro Flock, sms
pro SMS.alerts[index][value]
paused
API endpoint:
https://siteuptimes.com/api/v1/monitors/{id}
Příklad požadavku:
curl --location --request DELETE 'https://siteuptimes.com/api/v1/monitors/{id}' \ --header 'Authorization: Bearer {api_key}'