Notification handlers

GET https://bio.p8w.app/api/notification-handlers/
curl --request GET \
--url 'https://bio.p8w.app/api/notification-handlers/' \
--header 'Authorization: Bearer {api_key}' \
Parâmetros Detalhes Descrição
page Opcional Inteiro O número da página de onde você deseja obter resultados. O padrão é 1.
results_per_page Opcional Inteiro Quantos resultados você deseja por página. 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-09-19 08:43:56",
        }
    ],
    "meta": {
        "page": 1,
        "results_per_page": 25,
        "total": 1,
        "total_pages": 1
    },
    "links": {
        "first": "https://bio.p8w.app/api/notification-handlers?page=1",
        "last": "https://bio.p8w.app/api/notification-handlers?page=1",
        "next": null,
        "prev": null,
        "self": "https://bio.p8w.app/api/notification-handlers?page=1"
    }
}
GET https://bio.p8w.app/api/notification-handlers/{notification_handler_id}
curl --request GET \
--url 'https://bio.p8w.app/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-19 08:43:56",
    }
}
POST https://bio.p8w.app/api/notification-handlers
Parâmetros Detalhes Descrição
name Necessário Corda -
type Necessário Corda Valores permitidos: email , webhook , slack , discord , telegram , microsoft_teams
email Opcional Corda Disponível quando: type = email Email
webhook Opcional Corda Disponível quando: type = webhook Webhook URL
slack Opcional Corda Disponível quando: type = slack Slack webhook URL
discord Opcional Corda Disponível quando: type = discord Discord webhook URL
telegram Opcional Corda Disponível quando: type = telegram Telegram API Token
telegram_chat_id Opcional Corda Disponível quando: type = telegram Telegram Chat ID
microsoft_teams Opcional Corda Disponível quando: type = microsoft_teams Microsoft Teams webhook URL
curl --request POST \
--url 'https://bio.p8w.app/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://bio.p8w.app/api/notification-handlers/{notification_handler_id}
Parâmetros Detalhes Descrição
name Opcional Corda -
type Opcional Corda Valores permitidos: email , webhook , slack , discord , telegram , microsoft_teams
email Opcional Corda Disponível quando: type = email Email
webhook Opcional Corda Disponível quando: type = webhook Webhook URL
slack Opcional Corda Disponível quando: type = slack Slack webhook URL
discord Opcional Corda Disponível quando: type = discord Discord webhook URL
telegram Opcional Corda Disponível quando: type = telegram Telegram API Token
telegram_chat_id Opcional Corda Disponível quando: type = telegram Telegram Chat ID
microsoft_teams Opcional Corda Disponível quando: type = microsoft_teams Microsoft Teams webhook URL
is_enabled Opcional Booleano -
curl --request POST \
--url 'https://bio.p8w.app/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://bio.p8w.app/api/notification-handlers/{notification_handler_id}
curl --request DELETE \
--url 'https://bio.p8w.app/api/notification-handlers/{notification_handler_id}' \
--header 'Authorization: Bearer {api_key}' \