Manipuladores de notificação
GET https://meulinksocial.com/api/notification-handlers/
curl --request GET \
--url 'https://meulinksocial.com/api/notification-handlers/' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://meulinksocial.com/api/notification-handlers/' \
--header 'Authorization: Bearer {api_key}' \
Parâmetros | Detalhes | Descrição |
---|---|---|
page | Opcional Integer | The page number that you want results from. Defaults to 1 . |
results_per_page | Opcional Integer | How many results you want per page. Allowed values are: 10 , 25 , 50 , 100 , 250 , 500 , 1000 . Defaults to 25 . |
{ "data": [ { "id": 1, "type": "email", "name": "Work email", "settings": { "email": "hey@example.com" }, "is_enabled": true, "last_datetime": null, "datetime": "2025-09-18 10:05:07", } ], "meta": { "page": 1, "results_per_page": 25, "total": 1, "total_pages": 1 }, "links": { "first": "https://meulinksocial.com/api/notification-handlers?page=1", "last": "https://meulinksocial.com/api/notification-handlers?page=1", "next": null, "prev": null, "self": "https://meulinksocial.com/api/notification-handlers?page=1" } }
GET https://meulinksocial.com/api/notification-handlers/{notification_handler_id}
curl --request GET \
--url 'https://meulinksocial.com/api/notification-handlers/{notification_handler_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://meulinksocial.com/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-09-18 10:05:07", } }
POST https://meulinksocial.com/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 , x , google_chat , internal_notification , push_subscriber_id |
Opcional String | Disponível quando: type = email Email | |
webhook | Opcional String | Disponível quando: type = webhook URL do Webhook |
slack | Opcional String | Disponível quando: type = slack URL do webhook do Slack |
discord | Opcional String | Disponível quando: type = discord URL do webhook do Discord |
telegram | Opcional String | Disponível quando: type = telegram Token da API do Telegram |
telegram_chat_id | Opcional String | Disponível quando: type = telegram ID do Chat do Telegram |
microsoft_teams | Opcional String | Disponível quando: type = microsoft_teams URL do webhook do Microsoft Teams |
google_chat | Opcional String | Disponível quando: type = google_chat URL do webhook do Google Chat |
x_consumer_key | Opcional String | Disponível quando: type = x Token da API do Telegram |
x_consumer_secret | Opcional String | Disponível quando: type = x Token da API do Telegram |
x_access_token | Opcional String | Disponível quando: type = x Token da API do Telegram |
x_access_token_secret | Opcional String | Disponível quando: type = x Token da API do Telegram |
push_subscriber_id | Opcional String | Disponível quando: type = push_subscriber_id Assinar o push |
curl --request POST \
--url 'https://meulinksocial.com/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://meulinksocial.com/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://meulinksocial.com/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 , x , google_chat , internal_notification , push_subscriber_id |
Opcional String | Disponível quando: type = email Email | |
webhook | Opcional String | Disponível quando: type = webhook URL do Webhook |
slack | Opcional String | Disponível quando: type = slack URL do webhook do Slack |
discord | Opcional String | Disponível quando: type = discord URL do webhook do Discord |
telegram | Opcional String | Disponível quando: type = telegram Token da API do Telegram |
telegram_chat_id | Opcional String | Disponível quando: type = telegram ID do Chat do Telegram |
microsoft_teams | Opcional String | Disponível quando: type = microsoft_teams URL do webhook do Microsoft Teams |
google_chat | Opcional String | Disponível quando: type = google_chat URL do webhook do Google Chat |
x_consumer_key | Opcional String | Disponível quando: type = x Token da API do Telegram |
x_consumer_secret | Opcional String | Disponível quando: type = x Token da API do Telegram |
x_access_token | Opcional String | Disponível quando: type = x Token da API do Telegram |
x_access_token_secret | Opcional String | Disponível quando: type = x Token da API do Telegram |
push_subscriber_id | Opcional String | Disponível quando: type = push_subscriber_id Assinar o push |
is_enabled | Opcional Boolean | - |
curl --request POST \
--url 'https://meulinksocial.com/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://meulinksocial.com/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://meulinksocial.com/api/notification-handlers/{notification_handler_id}
curl --request DELETE \
--url 'https://meulinksocial.com/api/notification-handlers/{notification_handler_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://meulinksocial.com/api/notification-handlers/{notification_handler_id}' \
--header 'Authorization: Bearer {api_key}' \