Nofiticações
GET https://p8w.com.br/apps/uptime/api/notification-handlers/
curl --request GET \
--url 'https://p8w.com.br/apps/uptime/api/notification-handlers/' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://p8w.com.br/apps/uptime/api/notification-handlers/' \
--header 'Authorization: Bearer {api_key}' \
Parâmetros | Detalhes | Descrição |
---|---|---|
page | Opcional Integer | O número da página da qual você deseja resultados. O padrão é 1 . |
results_per_page | Opcional Integer | Quantos resultados você deseja por página. Os valores permitidos são: 10 , 25 , 50 , 100 , 250 , 500 , 1000 . O padrão é 25 . |
{
"data": [
{
"id": 1,
"type": "email",
"name": "Work email",
"settings": {
"email": "hey@example.com"
},
"is_enabled": true,
"last_datetime": null,
"datetime": "2025-05-09 10:05:14"
}
],
"meta": {
"page": 1,
"results_per_page": 25,
"total": 1,
"total_pages": 1
},
"links": {
"first": "https://p8w.com.br/apps/uptime/api/notification-handlers?&page=1",
"last": "https://p8w.com.br/apps/uptime/api/notification-handlers?&page=1",
"next": null,
"prev": null,
"self": "https://p8w.com.br/apps/uptime/api/notification-handlers?&page=1"
}
}
GET https://p8w.com.br/apps/uptime/api/notification-handlers/{notification_handler_id}
curl --request GET \
--url 'https://p8w.com.br/apps/uptime/api/notification-handlers/{notification_handler_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://p8w.com.br/apps/uptime/api/notification-handlers/{notification_handler_id}' \
--header 'Authorization: Bearer {api_key}' \
{
"data": {
"id": 1,
"type": "email",
"name": "Work email",
"settings": {
"email": "hey@example.com"
},
"is_enabled": true,
"last_datetime": null,
"datetime": "2025-05-09 10:05:14"
}
}
POST https://p8w.com.br/apps/uptime/api/notification-handlers
Parâmetros | Detalhes | Descrição |
---|---|---|
name | Obrigatório String | - |
type | Obrigatório String | Valores permitidos: email , webhook , slack , discord , telegram , microsoft_teams , twilio , twilio_call , whatsapp , x |
Opcional String | Disponível quando: type = email Email | |
webhook | Opcional String | Disponível quando: type = webhook Webhook URL |
slack | Opcional String | Disponível quando: type = slack Slack webhook URL |
discord | Opcional String | Disponível quando: type = discord Discord webhook URL |
telegram | Opcional String | Disponível quando: type = telegram Telegram API Token |
telegram_chat_id | Opcional String | Disponível quando: type = telegram Telegram Chat ID |
x_consumer_key | Opcional String | Disponível quando: type = x Telegram API Token |
x_consumer_secret | Opcional String | Disponível quando: type = x Telegram API Token |
x_access_token | Opcional String | Disponível quando: type = x Telegram API Token |
x_access_token_secret | Opcional String | Disponível quando: type = x Telegram API Token |
twilio | Opcional String | Disponível quando: type = twilio Phone number |
twilio_call | Opcional String | Disponível quando: type = twilio_call Phone number |
Opcional String | Disponível quando: type = whatsapp Phone number |
curl --request POST \
--url 'https://p8w.com.br/apps/uptime/api/notification-handlers' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'name=Example' \
--form 'type=email' \
--form 'email=hello@example.com' \
--url 'https://p8w.com.br/apps/uptime/api/notification-handlers' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'name=Example' \
--form 'type=email' \
--form 'email=hello@example.com' \
{
"data": {
"id": 1
}
}
POST https://p8w.com.br/apps/uptime/api/notification-handlers/{notification_handler_id}
Parâmetros | Detalhes | Descrição |
---|---|---|
name | Opcional String | - |
type | Opcional String | Valores permitidos: email , webhook , slack , discord , telegram , microsoft_teams , twilio , twilio_call , whatsapp , x |
Opcional String | Disponível quando: type = email Email | |
webhook | Opcional String | Disponível quando: type = webhook Webhook URL |
slack | Opcional String | Disponível quando: type = slack Slack webhook URL |
discord | Opcional String | Disponível quando: type = discord Discord webhook URL |
telegram | Opcional String | Disponível quando: type = telegram Telegram API Token |
telegram_chat_id | Opcional String | Disponível quando: type = telegram Telegram Chat ID |
x_consumer_key | Opcional String | Disponível quando: type = x Telegram API Token |
x_consumer_secret | Opcional String | Disponível quando: type = x Telegram API Token |
x_access_token | Opcional String | Disponível quando: type = x Telegram API Token |
x_access_token_secret | Opcional String | Disponível quando: type = x Telegram API Token |
twilio | Opcional String | Disponível quando: type = twilio Phone number |
twilio_call | Opcional String | Disponível quando: type = twilio_call Phone number |
Opcional String | Disponível quando: type = whatsapp Phone number | |
is_enabled | Opcional Boolean | - |
curl --request POST \
--url 'https://p8w.com.br/apps/uptime/api/notification-handlers/{notification_handler_id}' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'name=Example new name' \
--form 'is_enabled=1' \
--url 'https://p8w.com.br/apps/uptime/api/notification-handlers/{notification_handler_id}' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'name=Example new name' \
--form 'is_enabled=1' \
{
"data": {
"id": 1
}
}
DELETE https://p8w.com.br/apps/uptime/api/notification-handlers/{notification_handler_id}
curl --request DELETE \
--url 'https://p8w.com.br/apps/uptime/api/notification-handlers/{notification_handler_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://p8w.com.br/apps/uptime/api/notification-handlers/{notification_handler_id}' \
--header 'Authorization: Bearer {api_key}' \