Webhooks
GET https://staging.gratisqrcode.nl/api/notification-handlers/
curl --request GET \
--url 'https://staging.gratisqrcode.nl/api/notification-handlers/' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://staging.gratisqrcode.nl/api/notification-handlers/' \
--header 'Authorization: Bearer {api_key}' \
| Paramètres | Détails | Description |
|---|---|---|
| search | En option Chaîne | La chaîne de recherche. |
| search_by | En option Chaîne | Quel est le champ recherché ? Les valeurs autorisées sont : name. |
| is_enabled | En option Booléen | |
| type | En option Chaîne | Quel est le champ recherché ? Les valeurs autorisées sont : email, webhook, slack, discord, telegram, microsoft_teams. |
| datetime_field | En option Chaîne | Valeurs autorisées : datetime, last_datetime |
| datetime_start | En option Chaîne | Filtrer les résultats à partir de cette date et heure. Format Y-m-d H:i:s. |
| datetime_end | En option Chaîne | Filtrer les résultats jusqu'à cette date et heure. Format Y-m-d H:i:s. |
| order_by | En option Chaîne | Champ sur lequel les résultats doivent être classés. Les valeurs autorisées sont : notification_handler_id, datetime, last_datetime, name. |
| order_type | En option Chaîne | L'ordre des résultats. Les valeurs autorisées sont : ASC pour l'ordre croissant et DESC pour l'ordre décroissant. |
| search | En option Chaîne | La chaîne de recherche. |
| search_by | En option Chaîne | Quel est le champ recherché ? Les valeurs autorisées sont : name. |
| is_enabled | En option Booléen | |
| type | En option Chaîne | Quel est le champ recherché ? Les valeurs autorisées sont : email, webhook, slack, discord, telegram, microsoft_teams. |
| datetime_field | En option Chaîne | Valeurs autorisées : datetime, last_datetime |
| datetime_start | En option Chaîne | Filtrer les résultats à partir de cette date et heure. Format Y-m-d H:i:s. |
| datetime_end | En option Chaîne | Filtrer les résultats jusqu'à cette date et heure. Format Y-m-d H:i:s. |
| order_by | En option Chaîne | Champ sur lequel les résultats doivent être classés. Les valeurs autorisées sont : notification_handler_id, datetime, last_datetime, name. |
| order_type | En option Chaîne | L'ordre des résultats. Les valeurs autorisées sont : ASC pour l'ordre croissant et DESC pour l'ordre décroissant. |
| page | En option Entier | Le numéro de page à partir duquel vous souhaitez obtenir des résultats. Par défaut 1. |
| results_per_page | En option Entier | Combien de résultats souhaitez-vous obtenir par page ? Les valeurs autorisées sont : 10, 25, 50, 100, 250, 500, 1000. La valeur par défaut est 25. |
{
"data": [
{
"id": 1,
"type": "email",
"name": "Work email",
"settings": {
"email": "hey@example.com"
},
"is_enabled": true,
"last_datetime": null,
"datetime": "2026-06-17 19:51:53",
}
],
"meta": {
"page": 1,
"results_per_page": 25,
"total": 1,
"total_pages": 1
},
"links": {
"first": "https://staging.gratisqrcode.nl/api/notification-handlers?page=1",
"last": "https://staging.gratisqrcode.nl/api/notification-handlers?page=1",
"next": null,
"prev": null,
"self": "https://staging.gratisqrcode.nl/api/notification-handlers?page=1"
}
}
GET https://staging.gratisqrcode.nl/api/notification-handlers/{notification_handler_id}
curl --request GET \
--url 'https://staging.gratisqrcode.nl/api/notification-handlers/{notification_handler_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://staging.gratisqrcode.nl/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-06-17 19:51:53",
}
}
POST https://staging.gratisqrcode.nl/api/notification-handlers
| Paramètres | Détails | Description |
|---|---|---|
| name | Exigée Chaîne | - |
| type | Exigée Chaîne | Valeurs autorisées : email, webhook, slack, discord, telegram, microsoft_teams |
| En option Chaîne | Disponible lorsque : type = email Courriel | |
| webhook | En option Chaîne | Disponible lorsque : type = webhook URL du webhook |
| slack | En option Chaîne | Disponible lorsque : type = slack URL du webhook de Slack |
| discord | En option Chaîne | Disponible lorsque : type = discord URL du webhook Discord |
| telegram | En option Chaîne | Disponible lorsque : type = telegram Token API Telegram |
| telegram_chat_id | En option Chaîne | Disponible lorsque : type = telegram ID du chat Telegram |
| microsoft_teams | En option Chaîne | Disponible lorsque : type = microsoft_teams URL du webhook de Microsoft Teams |
curl --request POST \
--url 'https://staging.gratisqrcode.nl/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://staging.gratisqrcode.nl/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://staging.gratisqrcode.nl/api/notification-handlers/{notification_handler_id}
| Paramètres | Détails | Description |
|---|---|---|
| name | En option Chaîne | - |
| type | En option Chaîne | Valeurs autorisées : email, webhook, slack, discord, telegram, microsoft_teams |
| En option Chaîne | Disponible lorsque : type = email Courriel | |
| webhook | En option Chaîne | Disponible lorsque : type = webhook URL du webhook |
| slack | En option Chaîne | Disponible lorsque : type = slack URL du webhook de Slack |
| discord | En option Chaîne | Disponible lorsque : type = discord URL du webhook Discord |
| telegram | En option Chaîne | Disponible lorsque : type = telegram Token API Telegram |
| telegram_chat_id | En option Chaîne | Disponible lorsque : type = telegram ID du chat Telegram |
| microsoft_teams | En option Chaîne | Disponible lorsque : type = microsoft_teams URL du webhook de Microsoft Teams |
| is_enabled | En option Booléen | - |
curl --request POST \
--url 'https://staging.gratisqrcode.nl/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://staging.gratisqrcode.nl/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://staging.gratisqrcode.nl/api/notification-handlers/{notification_handler_id}
curl --request DELETE \
--url 'https://staging.gratisqrcode.nl/api/notification-handlers/{notification_handler_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://staging.gratisqrcode.nl/api/notification-handlers/{notification_handler_id}' \
--header 'Authorization: Bearer {api_key}' \