Đ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}'
searchsearch_byname cho Tên, url cho URL. Mặc định là: name.status_page_idsort_byid cho Ngày tạo, name cho Tên, url cho URL. Mặc định là: id.sortdesc cho Giảm dần, asc cho Tăng dần. Mặc định là: desc.per_page10, 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}'
nameurlinterval60, 180, 300, 600, 900, 1800, 3600.ssl_alert_days0, 1, 2, 3, 7, 14, 30, 60.maintenance_start_atY-m-d H:i.maintenance_end_atY-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}'
nameurlinterval60, 180, 300, 600, 900, 1800, 3600.ssl_alert_days0, 1, 2, 3, 7, 14, 30, 60.maintenance_start_atY-m-d H:i.maintenance_end_atY-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}'