API endpoint:
https://phpuptime.lunatio.com/api/v1/monitors
Request example:
curl --location --request GET 'https://phpuptime.lunatio.com/api/v1/monitors' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {api_key}'
search
search_by
name
for Name, url
for URL. Defaults to: name
.status_page_id
sort_by
id
for Date created, name
for Name, url
for URL. Defaults to: id
.sort
desc
for Descending, asc
for Ascending. Defaults to: desc
.per_page
10
, 25
, 50
, 100
. Defaults to: 10
.API endpoint:
https://phpuptime.lunatio.com/api/v1/monitors/{id}
Request example:
curl --location --request GET 'https://phpuptime.lunatio.com/api/v1/monitors/{id}' \ --header 'Accept: application/json' \ --header 'Authorization: Bearer {api_key}'
API endpoint:
https://phpuptime.lunatio.com/api/v1/monitors
Request example:
curl --location --request POST 'https://phpuptime.lunatio.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
.ssl_alert_days
0
, 1
, 2
, 3
, 7
, 14
, 30
, 60
.maintenance_start_at
Y-m-d H:i
format.maintenance_end_at
Y-m-d H:i
format.alerts[index][key]
email
for Email, webhook
for Webhook, slack
for Slack, teams
for Microsoft Teams, discord
for Discord, flock
for Flock, sms
for SMS.alerts[index][value]
API endpoint:
https://phpuptime.lunatio.com/api/v1/monitors/{id}
Request example:
curl --location --request PUT 'https://phpuptime.lunatio.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
.ssl_alert_days
0
, 1
, 2
, 3
, 7
, 14
, 30
, 60
.maintenance_start_at
Y-m-d H:i
format.maintenance_end_at
Y-m-d H:i
format.alerts[index][key]
email
for Email, webhook
for Webhook, slack
for Slack, teams
for Microsoft Teams, discord
for Discord, flock
for Flock, sms
for SMS.alerts[index][value]
paused
API endpoint:
https://phpuptime.lunatio.com/api/v1/monitors/{id}
Request example:
curl --location --request DELETE 'https://phpuptime.lunatio.com/api/v1/monitors/{id}' \ --header 'Authorization: Bearer {api_key}'