API endpoint:
https://phpuptime.lunatio.com/api/v1/incidents
Request example:
curl --location --request GET 'https://phpuptime.lunatio.com/api/v1/incidents' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {api_key}'
search
search_by
monitor
for Monitor, cause
for Cause. Defaults to: url
.monitor_id
status
unresolved
for Unresolved, acknowledged
for Acknowledged, resolved
for Resolved.sort_by
started_at
for Date started, ended_at
for Date ended. Defaults to: ended_at
.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/incidents/{id}
Request example:
curl --location --request GET 'https://phpuptime.lunatio.com/api/v1/incidents/{id}' \ --header 'Accept: application/json' \ --header 'Authorization: Bearer {api_key}'
API endpoint:
https://phpuptime.lunatio.com/api/v1/incidents/{id}
Request example:
curl --location --request PUT 'https://phpuptime.lunatio.com/api/v1/incidents/{id}' \ --header 'Content-Type: application/x-www-form-urlencoded' \ --header 'Authorization: Bearer {api_key}' \ --data-urlencode 'name={name}'
comment
acknowledged_at
API endpoint:
https://phpuptime.lunatio.com/api/v1/incidents/{id}
Request example:
curl --location --request DELETE 'https://phpuptime.lunatio.com/api/v1/incidents/{id}' \ --header 'Authorization: Bearer {api_key}'