Điểm cuối API:
https://uptime247.vn/api/v1/monitors
Ví dụ yêu cầu:
curl --location --request GET 'https://uptime247.vn/api/v1/monitors' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {api_key}'
search
search_by
name
cho Tên, url
cho URL. Mặc định là: name
.status_page_id
sort_by
id
cho Ngày tạo, name
cho Tên, url
cho URL. Mặc định là: id
.sort
desc
cho Giảm dần, asc
cho Tăng dần. Mặc định là: desc
.per_page
10
, 25
, 50
, 100
. Mặc định là: 10
.Điểm cuối API:
https://uptime247.vn/api/v1/monitors/{id}
Ví dụ yêu cầu:
curl --location --request GET 'https://uptime247.vn/api/v1/monitors/{id}' \ --header 'Accept: application/json' \ --header 'Authorization: Bearer {api_key}'
Điểm cuối API:
https://uptime247.vn/api/v1/monitors
Ví dụ yêu cầu:
curl --location --request POST 'https://uptime247.vn/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
.ssl_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
cho Email, webhook
cho Webhook, slack
cho Slack, teams
cho Microsoft Teams, discord
cho Discord, flock
cho Flock, sms
cho SMS.alerts[index][value]
Điểm cuối API:
https://uptime247.vn/api/v1/monitors/{id}
Ví dụ yêu cầu:
curl --location --request PUT 'https://uptime247.vn/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
.ssl_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
cho Email, webhook
cho Webhook, slack
cho Slack, teams
cho Microsoft Teams, discord
cho Discord, flock
cho Flock, sms
cho SMS.alerts[index][value]
paused
Điểm cuối API:
https://uptime247.vn/api/v1/monitors/{id}
Ví dụ yêu cầu:
curl --location --request DELETE 'https://uptime247.vn/api/v1/monitors/{id}' \ --header 'Authorization: Bearer {api_key}'