API endpoint
https://phpuptime.lunatio.com/api/v1/alert-channels
Request example
curl --location --request GET 'https://phpuptime.lunatio.com/api/v1/alert-channels' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {api_key}'
Parameters
search
search_by
name for Name. Defaults to: name.
type
email, sms, phone_call, webhook, slack, teams, discord, flock, telegram, mattermost.
sort_by
id for Date created, name for Name. Defaults to: id.
sort
desc for Descending, asc for Descending. Defaults to: desc.
per_page
10, 25, 50, 100. Defaults to: 10.
API endpoint
https://phpuptime.lunatio.com/api/v1/alert-channels/{id}
Request example
curl --location --request GET 'https://phpuptime.lunatio.com/api/v1/alert-channels/{id}' \ --header 'Accept: application/json' \ --header 'Authorization: Bearer {api_key}'
API endpoint
https://phpuptime.lunatio.com/api/v1/alert-channels
Request example
curl --location --request POST 'https://phpuptime.lunatio.com/api/v1/alert-channels' \ --header 'Content-Type: application/x-www-form-urlencoded' \ --header 'Authorization: Bearer {api_key}' \ --data-urlencode 'name={name}' \ --data-urlencode 'type={type}' \ --data-urlencode 'value={value}'
Parameters
name
type
email for Email, sms for SMS, phone_call for Phone call, webhook for Webhook, slack for Slack, teams for Microsoft Teams, discord for Discord, flock for Flock, telegram for Telegram, mattermost for Mattermost.
value[email]
value[phone]
value[webhook_url]
value[slack_url]
value[discord_url]
value[flock_url]
value[teams_url]
value[mattermost_url]
value[telegram_token]
value[telegram_chat_id]
API endpoint
https://phpuptime.lunatio.com/api/v1/alert-channels/{id}
Request example
curl --location --request PUT 'https://phpuptime.lunatio.com/api/v1/alert-channels/{id}' \ --header 'Content-Type: application/x-www-form-urlencoded' \ --header 'Authorization: Bearer {api_key}'
Parameters
name
type
email for Email, sms for SMS, phone_call for Phone call, webhook for Webhook, slack for Slack, teams for Microsoft Teams, discord for Discord, flock for Flock, telegram for Telegram, mattermost for Mattermost.
value[email]
value[phone]
value[webhook_url]
value[slack_url]
value[discord_url]
value[flock_url]
value[teams_url]
value[telegram_token]
value[telegram_chat_id]
API endpoint
https://phpuptime.lunatio.com/api/v1/alert-channels/{id}
Request example
curl --location --request DELETE 'https://phpuptime.lunatio.com/api/v1/alert-channels/{id}' \ --header 'Authorization: Bearer {api_key}'