Benachrichtigungs-Handler
GET https://prooflr.com/api/notification-handlers/
curl --request GET \
--url 'https://prooflr.com/api/notification-handlers/' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://prooflr.com/api/notification-handlers/' \
--header 'Authorization: Bearer {api_key}' \
Parameter | Details | Beschreibung |
---|---|---|
page | Optional Integer | Die Seitenzahl, von der du die Ergebnisse möchtest. Standardmäßig ist es 1 . |
results_per_page | Optional Integer | Wie viele Ergebnisse möchtest du pro Seite sehen? Erlaubte Werte sind: 10 , 25 , 50 , 100 , 250 , 500 , 1000 . Standardmäßig ist 25 . |
{
"data": [
{
"id": 1,
"type": "email",
"name": "Work email",
"settings": {
"email": "hey@example.com"
},
"is_enabled": true,
"last_datetime": null,
"datetime": "2021-06-27 22:16:23"
}
],
"meta": {
"page": 1,
"results_per_page": 25,
"total": 1,
"total_pages": 1
},
"links": {
"first": "https://prooflr.com/api/notification-handlers?&page=1",
"last": "https://prooflr.com/api/notification-handlers?&page=1",
"next": null,
"prev": null,
"self": "https://prooflr.com/api/notification-handlers?&page=1"
}
}
GET https://prooflr.com/api/notification-handlers/{notification_handler_id}
curl --request GET \
--url 'https://prooflr.com/api/notification-handlers/{notification_handler_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://prooflr.com/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": "2021-06-27 22:16:23"
}
}
POST https://prooflr.com/api/notification-handlers
Parameter | Details | Beschreibung |
---|---|---|
name | Benötigt Zeichenkette | - |
type | Benötigt Zeichenkette | Erlaubte Werte:
|
Optional Zeichenkette | Verfügbar, wenn: type = email E-Mail | |
webhook | Optional Zeichenkette | Verfügbar, wenn: type = webhook Webhook URL |
slack | Optional Zeichenkette | Verfügbar, wenn: type = slack Slack Webhook URL |
discord | Optional Zeichenkette | Verfügbar, wenn: type = discord Discord Webhook URL |
telegram | Optional Zeichenkette | Verfügbar, wenn: type = telegram Telegram API Token |
telegram_chat_id | Optional Zeichenkette | Verfügbar, wenn: type = telegram Telegram Chat ID Telegram Chat ID |
x_consumer_key | Optional Zeichenkette | Verfügbar, wenn: type = x Telegram API Token |
x_consumer_secret | Optional Zeichenkette | Verfügbar, wenn: type = x Telegram API Token |
x_access_token | Optional Zeichenkette | Verfügbar, wenn: type = x Telegram API Token |
x_access_token_secret | Optional Zeichenkette | Verfügbar, wenn: type = x Telegram API Token |
curl --request POST \
--url 'https://prooflr.com/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://prooflr.com/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://prooflr.com/api/notification-handlers/{notification_handler_id}
Parameter | Details | Beschreibung |
---|---|---|
name | Optional Zeichenkette | - |
type | Optional Zeichenkette | Erlaubte Werte:
|
Optional Zeichenkette | Verfügbar, wenn: type = email E-Mail | |
webhook | Optional Zeichenkette | Verfügbar, wenn: type = webhook Webhook URL |
slack | Optional Zeichenkette | Verfügbar, wenn: type = slack Slack Webhook URL |
discord | Optional Zeichenkette | Verfügbar, wenn: type = discord Discord Webhook URL |
telegram | Optional Zeichenkette | Verfügbar, wenn: type = telegram Telegram API Token |
telegram_chat_id | Optional Zeichenkette | Verfügbar, wenn: type = telegram Telegram Chat ID Telegram Chat ID |
x_consumer_key | Optional Zeichenkette | Verfügbar, wenn: type = x Telegram API Token |
x_consumer_secret | Optional Zeichenkette | Verfügbar, wenn: type = x Telegram API Token |
x_access_token | Optional Zeichenkette | Verfügbar, wenn: type = x Telegram API Token |
x_access_token_secret | Optional Zeichenkette | Verfügbar, wenn: type = x Telegram API Token |
is_enabled | Optional Boolean German: Boolean | - |
curl --request POST \
--url 'https://prooflr.com/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://prooflr.com/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://prooflr.com/api/notification-handlers/{notification_handler_id}
curl --request DELETE \
--url 'https://prooflr.com/api/notification-handlers/{notification_handler_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://prooflr.com/api/notification-handlers/{notification_handler_id}' \
--header 'Authorization: Bearer {api_key}' \