Gerenciadores de notificação
GET https://pushes.com.br/api/notification-handlers/
curl --request GET \
--url 'https://pushes.com.br/api/notification-handlers/' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://pushes.com.br/api/notification-handlers/' \
--header 'Authorization: Bearer {api_key}' \
Parâmetros | Detalhes | Descrição |
---|---|---|
page | Opcional Número inteiro | Número da página desejada. Padrão: 1 . |
results_per_page | Opcional Número inteiro | Quantidade de resultados por página. Valores permitidos: 10 , 25 , 50 , 100 , 250 , 500 , 1000 . Padrão: 25 . |
{
"data": [
{
"id": 1,
"type": "email",
"name": "Work email",
"settings": {
"email": "hey@example.com"
},
"is_enabled": true,
"last_datetime": null,
"datetime": "2025-08-14 22:34:52"
}
],
"meta": {
"page": 1,
"results_per_page": 25,
"total": 1,
"total_pages": 1
},
"links": {
"first": "https://pushes.com.br/api/notification-handlers?&page=1",
"last": "https://pushes.com.br/api/notification-handlers?&page=1",
"next": null,
"prev": null,
"self": "https://pushes.com.br/api/notification-handlers?&page=1"
}
}
GET https://pushes.com.br/api/notification-handlers/{notification_handler_id}
curl --request GET \
--url 'https://pushes.com.br/api/notification-handlers/{notification_handler_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://pushes.com.br/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-08-14 22:34:52"
}
}
POST https://pushes.com.br/api/notification-handlers
Parâmetros | Detalhes | Descrição |
---|---|---|
name | Obrigatório Texto | - |
type | Obrigatório Texto | Valores permitidos: email , webhook , slack , discord , telegram , microsoft_teams , x , google_chat , internal_notification |
Opcional Texto | Disponível quando: type = email E-mail | |
webhook | Opcional Texto | Disponível quando: type = webhook URL do Webhook |
slack | Opcional Texto | Disponível quando: type = slack URL do Webhook do Slack |
discord | Opcional Texto | Disponível quando: type = discord URL do Webhook do Discord |
telegram | Opcional Texto | Disponível quando: type = telegram Token da API do Telegram |
telegram_chat_id | Opcional Texto | Disponível quando: type = telegram ID do Chat do Telegram |
x_consumer_key | Opcional Texto | Disponível quando: type = x Token da API do Telegram |
x_consumer_secret | Opcional Texto | Disponível quando: type = x Token da API do Telegram |
x_access_token | Opcional Texto | Disponível quando: type = x Token da API do Telegram |
x_access_token_secret | Opcional Texto | Disponível quando: type = x Token da API do Telegram |
curl --request POST \
--url 'https://pushes.com.br/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://pushes.com.br/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://pushes.com.br/api/notification-handlers/{notification_handler_id}
Parâmetros | Detalhes | Descrição |
---|---|---|
name | Opcional Texto | - |
type | Opcional Texto | Valores permitidos: email , webhook , slack , discord , telegram , microsoft_teams , x , google_chat , internal_notification |
Opcional Texto | Disponível quando: type = email E-mail | |
webhook | Opcional Texto | Disponível quando: type = webhook URL do Webhook |
slack | Opcional Texto | Disponível quando: type = slack URL do Webhook do Slack |
discord | Opcional Texto | Disponível quando: type = discord URL do Webhook do Discord |
telegram | Opcional Texto | Disponível quando: type = telegram Token da API do Telegram |
telegram_chat_id | Opcional Texto | Disponível quando: type = telegram ID do Chat do Telegram |
x_consumer_key | Opcional Texto | Disponível quando: type = x Token da API do Telegram |
x_consumer_secret | Opcional Texto | Disponível quando: type = x Token da API do Telegram |
x_access_token | Opcional Texto | Disponível quando: type = x Token da API do Telegram |
x_access_token_secret | Opcional Texto | Disponível quando: type = x Token da API do Telegram |
is_enabled | Opcional Booleano | - |
curl --request POST \
--url 'https://pushes.com.br/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://pushes.com.br/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://pushes.com.br/api/notification-handlers/{notification_handler_id}
curl --request DELETE \
--url 'https://pushes.com.br/api/notification-handlers/{notification_handler_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://pushes.com.br/api/notification-handlers/{notification_handler_id}' \
--header 'Authorization: Bearer {api_key}' \