Manipuladores de notificações
GET https://linkbee.me/api/notification-handlers/
curl --request GET \
--url 'https://linkbee.me/api/notification-handlers/' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://linkbee.me/api/notification-handlers/' \
--header 'Authorization: Bearer {api_key}' \
| Parameters | Detalhes | Descrição |
|---|---|---|
| page | Optional Integer | O número da página que você deseja resultados. Padrões para 1. |
| results_per_page | Optional Integer | Quantos resultados você deseja por página. Os valores permitidos são: 10 , 25 , 50 , 100 , 250 , 500 , 1000. Padrões para 25. |
{
"data": [
{
"id": 1,
"type": "email",
"name": "Work email",
"settings": {
"email": "[email protected]"
},
"is_enabled": true,
"last_datetime": null,
"datetime": "2025-11-17 05:50:54",
}
],
"meta": {
"page": 1,
"results_per_page": 25,
"total": 1,
"total_pages": 1
},
"links": {
"first": "https://linkbee.me/api/notification-handlers?page=1",
"last": "https://linkbee.me/api/notification-handlers?page=1",
"next": null,
"prev": null,
"self": "https://linkbee.me/api/notification-handlers?page=1"
}
}
GET https://linkbee.me/api/notification-handlers/{notification_handler_id}
curl --request GET \
--url 'https://linkbee.me/api/notification-handlers/{notification_handler_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://linkbee.me/api/notification-handlers/{notification_handler_id}' \
--header 'Authorization: Bearer {api_key}' \
{
"data": {
"id": 1,
"type": "email",
"name": "Work email",
"settings": {
"email": "[email protected]"
},
"is_enabled": true,
"last_datetime": null,
"datetime": "2025-11-17 05:50:54",
}
}
POST https://linkbee.me/api/notification-handlers
| Parameters | Detalhes | Descrição |
|---|---|---|
| name | Required String | - |
| type | Required String | Valores permitidos: email , webhook , slack , discord , telegram , microsoft_teams |
| Optional String | Disponível quando: type = email Email | |
| webhook | Optional String | Disponível quando: type = webhook URL do Webhook |
| slack | Optional String | Disponível quando: type = slack URL do webhook do Slack |
| discord | Optional String | Disponível quando: type = discord URL do webhook do Discord |
| telegram | Optional String | Disponível quando: type = telegram Token da API do Telegram |
| telegram_chat_id | Optional String | Disponível quando: type = telegram ID do Chat do Telegram |
| microsoft_teams | Optional String | Disponível quando: type = microsoft_teams URL do webhook do Microsoft Teams |
curl --request POST \
--url 'https://linkbee.me/api/notification-handlers' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'name=Example' \
--form 'type=email' \
--form 'email=[email protected]' \
--url 'https://linkbee.me/api/notification-handlers' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'name=Example' \
--form 'type=email' \
--form 'email=[email protected]' \
{
"data": {
"id": 1
}
}
POST https://linkbee.me/api/notification-handlers/{notification_handler_id}
| Parameters | Detalhes | Descrição |
|---|---|---|
| name | Optional String | - |
| type | Optional String | Valores permitidos: email , webhook , slack , discord , telegram , microsoft_teams |
| Optional String | Disponível quando: type = email Email | |
| webhook | Optional String | Disponível quando: type = webhook URL do Webhook |
| slack | Optional String | Disponível quando: type = slack URL do webhook do Slack |
| discord | Optional String | Disponível quando: type = discord URL do webhook do Discord |
| telegram | Optional String | Disponível quando: type = telegram Token da API do Telegram |
| telegram_chat_id | Optional String | Disponível quando: type = telegram ID do Chat do Telegram |
| microsoft_teams | Optional String | Disponível quando: type = microsoft_teams URL do webhook do Microsoft Teams |
| is_enabled | Optional Boolean | - |
curl --request POST \
--url 'https://linkbee.me/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://linkbee.me/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://linkbee.me/api/notification-handlers/{notification_handler_id}
curl --request DELETE \
--url 'https://linkbee.me/api/notification-handlers/{notification_handler_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://linkbee.me/api/notification-handlers/{notification_handler_id}' \
--header 'Authorization: Bearer {api_key}' \