Point de terminaison API
https://up.aubin.dev/api/v1/alert-channels
Exemple de requête
curl --location --request GET 'https://up.aubin.dev/api/v1/alert-channels' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {api_key}'
Parameters
search
search_by
name pour Nom. Par défaut : name.
type
email, sms, phone_call, webhook, slack, teams, discord, flock, telegram, mattermost.
sort_by
id pour Date de création, name pour Nom. Par défaut : id.
sort
desc pour Décroissant, asc pour Décroissant. Par défaut : desc.
per_page
10, 25, 50, 100. Par défaut : 25.
Point de terminaison API
https://up.aubin.dev/api/v1/alert-channels/{id}
Exemple de requête
curl --location --request GET 'https://up.aubin.dev/api/v1/alert-channels/{id}' \ --header 'Accept: application/json' \ --header 'Authorization: Bearer {api_key}'
Point de terminaison API
https://up.aubin.dev/api/v1/alert-channels
Exemple de requête
curl --location --request POST 'https://up.aubin.dev/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 pour E-mail, sms pour SMS, phone_call pour Phone call, webhook pour Webhook, slack pour Slack, teams pour Microsoft Teams, discord pour Discord, flock pour Flock, telegram pour Telegram, mattermost pour 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]
Point de terminaison API
https://up.aubin.dev/api/v1/alert-channels/{id}
Exemple de requête
curl --location --request PUT 'https://up.aubin.dev/api/v1/alert-channels/{id}' \ --header 'Content-Type: application/x-www-form-urlencoded' \ --header 'Authorization: Bearer {api_key}'
Parameters
name
type
email pour E-mail, sms pour SMS, phone_call pour Phone call, webhook pour Webhook, slack pour Slack, teams pour Microsoft Teams, discord pour Discord, flock pour Flock, telegram pour Telegram, mattermost pour 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]
Point de terminaison API
https://up.aubin.dev/api/v1/alert-channels/{id}
Exemple de requête
curl --location --request DELETE 'https://up.aubin.dev/api/v1/alert-channels/{id}' \ --header 'Authorization: Bearer {api_key}'