Gestionnaires de notification

GET https://vibes.su/api/notification-handlers/
curl --request GET \
--url 'https://vibes.su/api/notification-handlers/' \
--header 'Authorization: Bearer {api_key}' \
Paramètres Détails Description
page Optionnel Entier Le numéro de page à partir duquel vous voulez des résultats. Par défaut : 1.
results_per_page Optionnel Entier Nombre de résultats par page. Les valeurs autorisées sont : 10 , 25 , 50 , 100 , 250 , 500 , 1000. Par défaut : 25.
{
    "data": [
        {
            "id": 1,
            "type": "email",
            "name": "Work email",
            "settings": {
                "email": "hey@example.com"
            },
            "is_enabled": true,
            "last_datetime": null,
            "datetime": "2025-10-15 16:11:11",
        }
    ],
    "meta": {
        "page": 1,
        "results_per_page": 25,
        "total": 1,
        "total_pages": 1
    },
    "links": {
        "first": "https://vibes.su/api/notification-handlers?page=1",
        "last": "https://vibes.su/api/notification-handlers?page=1",
        "next": null,
        "prev": null,
        "self": "https://vibes.su/api/notification-handlers?page=1"
    }
}
GET https://vibes.su/api/notification-handlers/{notification_handler_id}
curl --request GET \
--url 'https://vibes.su/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-10-15 16:11:11",
    }
}
POST https://vibes.su/api/notification-handlers
Paramètres Détails Description
name Requis Chaîne -
type Requis Chaîne Valeurs autorisées : email , webhook , slack , discord , telegram , microsoft_teams , x , google_chat , internal_notification , push_subscriber_id
email Optionnel Chaîne Disponible quand : type = email E-mail
webhook Optionnel Chaîne Disponible quand : type = webhook URL de webhook
slack Optionnel Chaîne Disponible quand : type = slack URL de webhook Slack
discord Optionnel Chaîne Disponible quand : type = discord URL de webhook Discord
telegram Optionnel Chaîne Disponible quand : type = telegram Jeton d'API Telegram
telegram_chat_id Optionnel Chaîne Disponible quand : type = telegram ID de chat Telegram
microsoft_teams Optionnel Chaîne Disponible quand : type = microsoft_teams URL de webhook Microsoft Teams
google_chat Optionnel Chaîne Disponible quand : type = google_chat URL de webhook Google Chat
x_consumer_key Optionnel Chaîne Disponible quand : type = x Jeton d'API Telegram
x_consumer_secret Optionnel Chaîne Disponible quand : type = x Jeton d'API Telegram
x_access_token Optionnel Chaîne Disponible quand : type = x Jeton d'API Telegram
x_access_token_secret Optionnel Chaîne Disponible quand : type = x Jeton d'API Telegram
push_subscriber_id Optionnel Chaîne Disponible quand : type = push_subscriber_id Abonné aux notifications push
curl --request POST \
--url 'https://vibes.su/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://vibes.su/api/notification-handlers/{notification_handler_id}
Paramètres Détails Description
name Optionnel Chaîne -
type Optionnel Chaîne Valeurs autorisées : email , webhook , slack , discord , telegram , microsoft_teams , x , google_chat , internal_notification , push_subscriber_id
email Optionnel Chaîne Disponible quand : type = email E-mail
webhook Optionnel Chaîne Disponible quand : type = webhook URL de webhook
slack Optionnel Chaîne Disponible quand : type = slack URL de webhook Slack
discord Optionnel Chaîne Disponible quand : type = discord URL de webhook Discord
telegram Optionnel Chaîne Disponible quand : type = telegram Jeton d'API Telegram
telegram_chat_id Optionnel Chaîne Disponible quand : type = telegram ID de chat Telegram
microsoft_teams Optionnel Chaîne Disponible quand : type = microsoft_teams URL de webhook Microsoft Teams
google_chat Optionnel Chaîne Disponible quand : type = google_chat URL de webhook Google Chat
x_consumer_key Optionnel Chaîne Disponible quand : type = x Jeton d'API Telegram
x_consumer_secret Optionnel Chaîne Disponible quand : type = x Jeton d'API Telegram
x_access_token Optionnel Chaîne Disponible quand : type = x Jeton d'API Telegram
x_access_token_secret Optionnel Chaîne Disponible quand : type = x Jeton d'API Telegram
push_subscriber_id Optionnel Chaîne Disponible quand : type = push_subscriber_id Abonné aux notifications push
is_enabled Optionnel Booléen -
curl --request POST \
--url 'https://vibes.su/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://vibes.su/api/notification-handlers/{notification_handler_id}
curl --request DELETE \
--url 'https://vibes.su/api/notification-handlers/{notification_handler_id}' \
--header 'Authorization: Bearer {api_key}' \