Trang trạng thái

Ghi chú
Cấp độ chuyên gia
Khóa API nên được gửi dưới dạng Bearer token trong header Authorization của yêu cầu. Lấy khóa API của bạn.
Danh sách

Điểm cuối API:

GET
https://uptime247.vn/api/v1/status-pages

Ví dụ yêu cầu:

curl --location --request GET 'https://uptime247.vn/api/v1/status-pages' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {api_key}'
Tham số
Loại
Mô tả
search
tùy chọn string
Truy vấn tìm kiếm.
search_by
tùy chọn string
Tìm kiếm theo. Giá trị có thể là: name cho Tên. Mặc định là: name.
monitor_id
tùy chọn integer
ID giám sát.
sort_by
tùy chọn string
Sắp xếp theo. Giá trị có thể là: id cho Ngày tạo, name cho Tên. Mặc định là: id.
sort
tùy chọn string
Sắp xếp. Giá trị có thể là: desc cho Giảm dần, asc cho Tăng dần. Mặc định là: desc.
per_page
tùy chọn integer
Kết quả mỗi trang. Giá trị có thể là: 10, 25, 50, 100. Mặc định là: 10.
Hiển thị

Điểm cuối API:

GET
https://uptime247.vn/api/v1/status-pages/{id}

Ví dụ yêu cầu:

curl --location --request GET 'https://uptime247.vn/api/v1/status-pages/{id}' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {api_key}'
Lưu trữ

Điểm cuối API:

POST
https://uptime247.vn/api/v1/status-pages

Ví dụ yêu cầu:

curl --location --request POST 'https://uptime247.vn/api/v1/status-pages' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Authorization: Bearer {api_key}' \
--data-urlencode 'name={url}' \
--data-urlencode 'slug={id}'
Tham số
Loại
Mô tả
name
bắt buộc string
Tên.
slug
bắt buộc string
Đường dẫn.
monitor_ids[]
tùy chọn array
ID giám sát
privacy
tùy chọn integer
Bảo mật. Giá trị có thể là: 0 cho Công khai, 1 cho Riêng tư, 2 cho Mật khẩu. Mặc định là: 0.
password
tùy chọn string
Mật khẩu. Chỉ hoạt động khi trường privacy được đặt là 2.
domain
tùy chọn string
Tên miền tùy chỉnh.
logo
tùy chọn file
Logo.
favicon
tùy chọn file
Biểu tượng trang.
remove_logo
tùy chọn boolean
Xóa logo.
remove_favicon
tùy chọn boolean
Xóa favicon.
website_url
tùy chọn string
URL trang web.
contact_url
tùy chọn string
URL liên hệ.
custom_css
tùy chọn string
CSS tùy chỉnh.
custom_js
tùy chọn string
JS tùy chỉnh.
meta_title
tùy chọn string
Tiêu đề meta.
meta_description
tùy chọn string
Mô tả meta.
noindex
tùy chọn boolean
Loại trừ trang trạng thái khỏi công cụ tìm kiếm.
Cập nhật

Điểm cuối API:

POST
https://uptime247.vn/api/v1/status-pages/{id}

Ví dụ yêu cầu:

curl --location --request POST 'https://uptime247.vn/api/v1/status-pages/{id}' \
--header 'Authorization: Bearer {api_key}' \
--form '_method="PUT"'
Tham số
Loại
Mô tả
_method
bắt buộc string
Phải được đặt thành PUT.
name
tùy chọn string
Tên.
slug
tùy chọn string
Đường dẫn.
monitor_ids[]
tùy chọn array
ID giám sát
privacy
tùy chọn integer
Bảo mật. Giá trị có thể là: 0 cho Công khai, 1 cho Riêng tư, 2 cho Mật khẩu.
password
tùy chọn string
Mật khẩu. Chỉ hoạt động khi trường privacy được đặt là 2.
domain
tùy chọn string
Tên miền tùy chỉnh.
logo
tùy chọn file
Logo.
favicon
tùy chọn file
Biểu tượng trang.
remove_logo
tùy chọn boolean
Xóa logo.
remove_favicon
tùy chọn boolean
Xóa favicon.
website_url
tùy chọn string
URL trang web.
contact_url
tùy chọn string
URL liên hệ.
custom_css
tùy chọn string
CSS tùy chỉnh.
custom_js
tùy chọn string
JS tùy chỉnh.
meta_title
tùy chọn string
Tiêu đề meta.
meta_description
tùy chọn string
Mô tả meta.
noindex
tùy chọn boolean
Loại trừ trang trạng thái khỏi công cụ tìm kiếm.
Xóa

Điểm cuối API:

DELETE
https://uptime247.vn/api/v1/status-pages/{id}

Ví dụ yêu cầu:

curl --location --request DELETE 'https://uptime247.vn/api/v1/status-pages/{id}' \
--header 'Authorization: Bearer {api_key}'