Obsługiwacze powiadomień

GET https://biolinks.pl/api/notification-handlers/
curl --request GET \
--url 'https://biolinks.pl/api/notification-handlers/' \
--header 'Authorization: Bearer {api_key}' \
Parametry Szczegóły Opis
page Opcjonalne Liczba całkowita Numer strony, z której chcesz uzyskać wyniki. Domyślnie 1.
results_per_page Opcjonalne Liczba całkowita Ile wyników chcesz na stronę. Dozwolone wartości to: 10 , 25 , 50 , 100 , 250 , 500 , 1000. Domyślnie 25.
{
    "data": [
        {
            "id": 1,
            "type": "email",
            "name": "Work email",
            "settings": {
                "email": "hey@example.com"
            },
            "is_enabled": true,
            "last_datetime": null,
            "datetime": "2026-02-04 23:46:19",
        }
    ],
    "meta": {
        "page": 1,
        "results_per_page": 25,
        "total": 1,
        "total_pages": 1
    },
    "links": {
        "first": "https://biolinks.pl/api/notification-handlers?page=1",
        "last": "https://biolinks.pl/api/notification-handlers?page=1",
        "next": null,
        "prev": null,
        "self": "https://biolinks.pl/api/notification-handlers?page=1"
    }
}
GET https://biolinks.pl/api/notification-handlers/{notification_handler_id}
curl --request GET \
--url 'https://biolinks.pl/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": "2026-02-04 23:46:19",
    }
}
POST https://biolinks.pl/api/notification-handlers
Parametry Szczegóły Opis
name Wymagane Łańcuch -
type Wymagane Łańcuch Dozwolone wartości: email , webhook , slack , discord , telegram , microsoft_teams , whatsapp , x , google_chat , push_subscriber_id
email Opcjonalne Łańcuch Dostępne, gdy: type = email Email
webhook Opcjonalne Łańcuch Dostępne, gdy: type = webhook Webhook URL
slack Opcjonalne Łańcuch Dostępne, gdy: type = slack Slack webhook URL
discord Opcjonalne Łańcuch Dostępne, gdy: type = discord Discord webhook URL
telegram Opcjonalne Łańcuch Dostępne, gdy: type = telegram Telegram API Token
telegram_chat_id Opcjonalne Łańcuch Dostępne, gdy: type = telegram Telegram Chat ID
microsoft_teams Opcjonalne Łańcuch Dostępne, gdy: type = microsoft_teams Microsoft Teams webhook URL
google_chat Opcjonalne Łańcuch Dostępne, gdy: type = google_chat Google chat webhook URL
x_consumer_key Opcjonalne Łańcuch Dostępne, gdy: type = x Telegram API Token
x_consumer_secret Opcjonalne Łańcuch Dostępne, gdy: type = x Telegram API Token
x_access_token Opcjonalne Łańcuch Dostępne, gdy: type = x Telegram API Token
x_access_token_secret Opcjonalne Łańcuch Dostępne, gdy: type = x Telegram API Token
push_subscriber_id Opcjonalne Łańcuch Dostępne, gdy: type = push_subscriber_id Push subscriber
whatsapp Opcjonalne Łańcuch Dostępne, gdy: type = whatsapp Phone number
curl --request POST \
--url 'https://biolinks.pl/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://biolinks.pl/api/notification-handlers/{notification_handler_id}
Parametry Szczegóły Opis
name Opcjonalne Łańcuch -
type Opcjonalne Łańcuch Dozwolone wartości: email , webhook , slack , discord , telegram , microsoft_teams , whatsapp , x , google_chat , push_subscriber_id
email Opcjonalne Łańcuch Dostępne, gdy: type = email Email
webhook Opcjonalne Łańcuch Dostępne, gdy: type = webhook Webhook URL
slack Opcjonalne Łańcuch Dostępne, gdy: type = slack Slack webhook URL
discord Opcjonalne Łańcuch Dostępne, gdy: type = discord Discord webhook URL
telegram Opcjonalne Łańcuch Dostępne, gdy: type = telegram Telegram API Token
telegram_chat_id Opcjonalne Łańcuch Dostępne, gdy: type = telegram Telegram Chat ID
microsoft_teams Opcjonalne Łańcuch Dostępne, gdy: type = microsoft_teams Microsoft Teams webhook URL
google_chat Opcjonalne Łańcuch Dostępne, gdy: type = google_chat Google chat webhook URL
x_consumer_key Opcjonalne Łańcuch Dostępne, gdy: type = x Telegram API Token
x_consumer_secret Opcjonalne Łańcuch Dostępne, gdy: type = x Telegram API Token
x_access_token Opcjonalne Łańcuch Dostępne, gdy: type = x Telegram API Token
x_access_token_secret Opcjonalne Łańcuch Dostępne, gdy: type = x Telegram API Token
push_subscriber_id Opcjonalne Łańcuch Dostępne, gdy: type = push_subscriber_id Push subscriber
whatsapp Opcjonalne Łańcuch Dostępne, gdy: type = whatsapp Phone number
is_enabled Opcjonalne Logiczny -
curl --request POST \
--url 'https://biolinks.pl/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://biolinks.pl/api/notification-handlers/{notification_handler_id}
curl --request DELETE \
--url 'https://biolinks.pl/api/notification-handlers/{notification_handler_id}' \
--header 'Authorization: Bearer {api_key}' \