Notifiche personali

GET https://push.gtechgroup.it/api/personal-notifications/
curl --request GET \
--url 'https://push.gtechgroup.it/api/personal-notifications/' \
--header 'Authorization: Bearer {api_key}' \
Parametri Dettagli Descrizione
page Opzionale Intero Il numero di pagina da cui desideri i risultati. Predefinito a 1.
results_per_page Opzionale Intero Quanti risultati vuoi per pagina. I valori consentiti sono: 10 , 25 , 50 , 100 , 250 , 500 , 1000. Predefinito a 25.
{ "data": [ { "id": 1, "user_id": 1, "website_id": 1, "subscriber_id": 1, "name": "Example", "title": "Sample message", "description": "This is coming from the API.", "url": "https://example.com", "image_url": null, "settings": { "is_scheduled": 0, "ttl": 2419200, "urgency": "normal", "is_silent": 0, "is_auto_hide": 0, "button_title_1": "", "button_url_1": "", "button_title_2": "", "button_url_2": "" }, "is_sent": 1, "is_displayed": 1, "is_clicked": 0, "is_closed": 0, "status": "sent", "scheduled_datetime": "2024-08-02 17:00:43", "sent_datetime": "2024-08-02 17:00:43", "last_datetime": null, "datetime": "2026-01-26 20:19:21", } ], "meta": { "page": 1, "results_per_page": 25, "total": 1, "total_pages": 1 }, "links": { "first": "https://push.gtechgroup.it/api/personal-notifications?page=1", "last": "https://push.gtechgroup.it/api/personal-notifications?page=1", "next": null, "prev": null, "self": "https://push.gtechgroup.it/api/personal-notifications?page=1" } }
GET https://push.gtechgroup.it/api/personal-notifications/{personal_notification_id}
curl --request GET \
--url 'https://push.gtechgroup.it/api/personal-notifications/{personal_notification_id}' \
--header 'Authorization: Bearer {api_key}' \
{ "data": { "id": 1, "user_id": 1, "website_id": 1, "subscriber_id": 1, "name": "Example", "title": "Sample message", "description": "This is coming from the API.", "url": "https://example.com", "image_url": null, "settings": { "is_scheduled": 0, "ttl": 2419200, "urgency": "normal", "is_silent": 0, "is_auto_hide": 0, "button_title_1": "", "button_url_1": "", "button_title_2": "", "button_url_2": "" }, "is_sent": 1, "is_displayed": 1, "is_clicked": 0, "is_closed": 0, "status": "sent", "scheduled_datetime": "2024-08-02 17:00:43", "sent_datetime": "2024-08-02 17:00:43", "last_datetime": null, "datetime": "2026-01-26 20:19:21", } }
POST https://push.gtechgroup.it/api/personal-notifications
Parametri Dettagli Descrizione
website_id Richiesto Intero -
subscriber_id Richiesto Intero -
name Richiesto Corda -
title Richiesto Corda -
description Richiesto Corda -
url Opzionale Corda -
image Opzionale File -
button_title_1 Opzionale Corda -
button_url_1 Opzionale Corda -
button_title_2 Opzionale Corda -
button_url_2 Opzionale Corda -
is_scheduled Opzionale Booleano -
scheduled_datetime Opzionale Corda -
is_silent Opzionale Booleano -
is_auto_hide Opzionale Booleano -
ttl Opzionale Corda Valori consentiti: 0 , 900 , 1800 , 3600 , 10800 , 21600 , 43200 , 86400 , 259200 , 432000 , 604800 , 1209600 , 2419200
utm_source Opzionale Corda -
utm_medium Opzionale Corda -
utm_campaign Opzionale Corda -
save Opzionale Booleano Salva bozza
send Opzionale Booleano Invia notifica personale
curl --request POST \
--url 'https://push.gtechgroup.it/api/personal-notifications' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'name=Example name' \
--form 'website_id=1' \
--form 'subscriber_id=1' \
--form 'title=Example title' \
--form 'description=Example description' \
{ "data": { "id": 1 } }
POST https://push.gtechgroup.it/api/personal-notifications/{personal_notification_id}
Parametri Dettagli Descrizione
website_id Opzionale Intero -
subscriber_id Opzionale Intero -
name Opzionale Corda -
title Opzionale Corda -
description Opzionale Corda -
url Opzionale Corda -
image Opzionale File -
button_title_1 Opzionale Corda -
button_url_1 Opzionale Corda -
button_title_2 Opzionale Corda -
button_url_2 Opzionale Corda -
is_scheduled Opzionale Booleano -
scheduled_datetime Opzionale Corda -
is_silent Opzionale Booleano -
is_auto_hide Opzionale Booleano -
ttl Opzionale Corda Valori consentiti: 0 , 900 , 1800 , 3600 , 10800 , 21600 , 43200 , 86400 , 259200 , 432000 , 604800 , 1209600 , 2419200
utm_source Opzionale Corda -
utm_medium Opzionale Corda -
utm_campaign Opzionale Corda -
save Opzionale Booleano Salva bozza
send Opzionale Booleano Invia notifica personale
curl --request POST \
--url 'https://push.gtechgroup.it/api/personal-notifications/{personal_notification_id}' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'name=Example name' \
--form 'website_id=1' \
--form 'subscriber_id=1' \
--form 'title=Example title' \
--form 'description=Example description' \
{ "data": { "id": 1 } }
DELETE https://push.gtechgroup.it/api/personal-notifications/{personal_notification_id}
curl --request DELETE \
--url 'https://push.gtechgroup.it/api/personal-notifications/{personal_notification_id}' \
--header 'Authorization: Bearer {api_key}' \