Notifications de campagne

GET https://popupke.com/api/notifications/
curl --request GET \
--url 'https://popupke.com/api/notifications/' \
--header 'Authorization: Bearer {api_key}' \
Paramètres Détails Description
page Optional Entier The page number that you want results from. Defaults to 1.
results_per_page Optional Entier How many results you want per page. Allowed values are: 10 , 25 , 50 , 100 , 250 , 500 , 1000. Defaults to 25.
{ "data": [ { "id": 1, "campaign_id": 1, "notification_key": "d4752d29a557a9fdc67b0a9a27cbe3b1", "name": "Email Collector", "type": "EMAIL_COLLECTOR", "settings": { ... }, "is_enabled": false, "last_datetime": null, "datetime": "2025-04-24 23:06:27" } ], "meta": { "page": 1, "results_per_page": 25, "total": 1, "total_pages": 1 }, "links": { "first": "https://popupke.com/api/notifications?&page=1", "last": "https://popupke.com/api/notifications?&page=1", "next": null, "prev": null, "self": "https://popupke.com/api/notifications?&page=1" } }
GET https://popupke.com/api/notifications/{notification_id}
curl --request GET \
--url 'https://popupke.com/api/notifications/{notification_id}' \
--header 'Authorization: Bearer {api_key}' \
{ "data": { "id": 1, "campaign_id": 1, "notification_key": "d4752d29a557a9fdc67b0a9a27cbe3b1", "name": "Email Collector", "type": "EMAIL_COLLECTOR", "settings": { ... }, "is_enabled": false, "last_datetime": null, "datetime": "2025-04-24 23:06:27" } }
POST https://popupke.com/api/notifications
Paramètres Détails Description
campaign_id Requis Entier -
type Requis Chaîne Allowed values: INFORMATIONAL , COUPON , LIVE_COUNTER , EMAIL_COLLECTOR , CONVERSIONS , CONVERSIONS_COUNTER , VIDEO , AUDIO , SOCIAL_SHARE , REVIEWS , EMOJI_FEEDBACK , COOKIE_NOTIFICATION , SCORE_FEEDBACK , REQUEST_COLLECTOR , COUNTDOWN_COLLECTOR , CUSTOM_HTML , INFORMATIONAL_BAR , IMAGE , COLLECTOR_BAR , COUPON_BAR , BUTTON_BAR , COLLECTOR_MODAL , COLLECTOR_TWO_MODAL , BUTTON_MODAL , TEXT_FEEDBACK , ENGAGEMENT_LINKS , WHATSAPP_CHAT , CONTACT_US , INFORMATIONAL_MINI , INFORMATIONAL_BAR_MINI
name Optional Chaîne -
is_enabled Optional Boolean -
curl --request POST \
--url 'https://popupke.com/api/notifications' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'type=INFORMATIONAL' \
--form 'is_enabled=1'
{ "data": { "id": 1 } }
POST https://popupke.com/api/notifications/{notification_id}
Paramètres Détails Description
name Optional Chaîne -
is_enabled Optional Boolean -
trigger_all_pages Optional Boolean -
display_trigger Optional Chaîne Allowed values: delay, time_on_site, pageviews, inactivity, exit_intent, scroll, click, hover
display_value Optional Chaîne -
display_delay_type_after_close Optional Chaîne Allowed values: time_on_site, pageviews
display_delay_value_after_close Optional Entier -
display_frequency Optional Chaîne Allowed values: all_time, once_per_session, once_per_browser
direction Optional Chaîne Allowed values: rtl, ltr
display_continents Optional Tableau Chaîne -
display_countries Optional Tableau Chaîne -
display_languages Optional Tableau Chaîne -
display_operating_systems Optional Tableau Chaîne -
display_browsers Optional Tableau Chaîne -
display_cities Optional Tableau Chaîne -
display_mobile Optional Boolean -
display_desktop Optional Boolean -
schedule Optional Boolean -
start_date Optional Chaîne -
end_date Optional Chaîne -
display_duration Optional Entier -
display_position Optional Chaîne Allowed values: top_left, top_center, top_right, middle_left, middle_center, middle_right, bottom_left, bottom_center, bottom_right, top, bottom, top_floating, bottom_floating
display_close_button Optional Boolean -
display_branding Optional Boolean -
shadow Optional Chaîne Allowed values: , subtle, feather, 3d, layered
border_width Optional Entier Allowed values: 0, 1, 2, 3, 4, 5
internal_padding Optional Entier Allowed values: 5-25
background_blur Optional Entier Allowed values: 0-30
custom_css Optional Chaîne -
hover_animation Optional Chaîne Allowed values: , fast_scale_up, slow_scale_up, fast_scale_down, slow_scale_down
on_animation Optional Chaîne Allowed values: fadeIn, slideInUp, slideInDown, zoomIn, bounceIn
off_animation Optional Chaîne Allowed values: fadeOut, slideOutUp, slideOutDown, zoomOut, bounceOut
animation Optional Chaîne Allowed values: , heartbeat, bounce, flash, pulse
animation_interval Optional Entier -
font Optional Chaîne Allowed values: inherit, Arial, Verdana, Helvetica, Tahoma, Trebuchet MS, Times New Roman, Georgia, Courier New, Monaco, Comic Sans MS, Courier, Impact, Futura, Luminari, Baskerville, Papyrus, Brush Script MT
border_radius Optional Chaîne Allowed values: straight, rounded, highly_rounded, round
notifications Optional Tableau Available when: type = email_collector, collector_bar, collector_modal, collector_two_modal, conversions, conversions_counter, countdown_collector, request_collector, text_feedback Notification handler ids
informational
title Optional Chaîne Available when: type = informational
description Optional Chaîne Available when: type = informational
image Optional Déposer Available when: type = informational
image_alt Optional Chaîne Available when: type = informational
url Optional Chaîne Available when: type = informational
url_new_tab Optional Boolean Available when: type = informational
title_color Optional Chaîne Available when: type = informational
description_color Optional Chaîne Available when: type = informational
background_color Optional Chaîne Available when: type = informational
informational_mini
title Optional Chaîne Available when: type = informational_mini
image Optional Déposer Available when: type = informational_mini
image_alt Optional Chaîne Available when: type = informational_mini
url Optional Chaîne Available when: type = informational_mini
url_new_tab Optional Boolean Available when: type = informational_mini
title_color Optional Chaîne Available when: type = informational_mini
description_color Optional Chaîne Available when: type = informational_mini
background_color Optional Chaîne Available when: type = informational_mini
coupon
title Optional Chaîne Available when: type = coupon
description Optional Chaîne Available when: type = coupon
image Optional Déposer Available when: type = coupon
image_alt Optional Chaîne Available when: type = coupon
coupon_code Optional Chaîne Available when: type = coupon
button_url Optional Chaîne Available when: type = coupon
url_new_tab Optional Boolean Available when: type = coupon
button_text Optional Chaîne Available when: type = coupon
title_color Optional Chaîne Available when: type = coupon
description_color Optional Chaîne Available when: type = coupon
background_color Optional Chaîne Available when: type = coupon
button_background_color Optional Chaîne Available when: type = coupon
button_color Optional Chaîne Available when: type = coupon
live_counter
description Optional Chaîne Available when: type = live_counter
last_activity Optional Chaîne Available when: type = live_counter
url Optional Chaîne Available when: type = live_counter
url_new_tab Optional Boolean Available when: type = live_counter
display_minimum_activity Optional Entier Available when: type = live_counter
description_color Optional Chaîne Available when: type = live_counter
background_color Optional Chaîne Available when: type = live_counter
number_background_color Optional Chaîne Available when: type = live_counter
number_color Optional Chaîne Available when: type = live_counter
pulse_background_color Optional Chaîne Available when: type = live_counter
email_collector
conversions
title Optional Chaîne Available when: type = conversions
description Optional Chaîne Available when: type = conversions
image Optional Déposer Available when: type = conversions
image_alt Optional Chaîne Available when: type = conversions
url Optional Chaîne Available when: type = conversions
url_new_tab Optional Boolean Available when: type = conversions
conversions_count Optional Entier Available when: type = conversions
in_between_delay Optional Entier Available when: type = conversions
order Optional Chaîne Available when: type = conversions
Allowed values: random, descending
data_trigger_auto Optional Boolean Available when: type = conversions
data_trigger_auto_type[index] Optional Tableau Chaîne Available when: type = conversions
Allowed values: exact , contains , starts_with , ends_with
data_trigger_auto_value[index] Optional Tableau Chaîne Available when: type = conversions
title_color Optional Chaîne Available when: type = conversions
description_color Optional Chaîne Available when: type = conversions
date_color Optional Chaîne Available when: type = conversions
background_color Optional Chaîne Available when: type = conversions
conversions counter
title Optional Chaîne Available when: type = conversions counter
last_activity Optional Chaîne Available when: type = conversions counter
url Optional Chaîne Available when: type = conversions counter
url_new_tab Optional Boolean Available when: type = conversions counter
display_minimum_activity Optional Chaîne Available when: type = conversions counter
title_color Optional Chaîne Available when: type = conversions counter
background_color Optional Chaîne Available when: type = conversions counter
number_background_color Optional Chaîne Available when: type = conversions counter
number_color Optional Chaîne Available when: type = conversions counter
data_trigger_auto Optional Boolean Available when: type = conversions counter
data_trigger_auto_type[index] Optional Tableau Chaîne Available when: type = conversions
Allowed values: exact , contains , starts_with , ends_with
data_trigger_auto_value[index] Optional Tableau Chaîne Available when: type = conversions
video
title Optional Chaîne Available when: type = video
video Optional Déposer Available when: type = video
video_is_youtube Optional Boolean Available when: type = video
youtube_video_id Optional Chaîne Available when: type = video
video_autoplay Optional Boolean Available when: type = video
video_controls Optional Boolean Available when: type = video
video_loop Optional Boolean Available when: type = video
video_muted Optional Boolean Available when: type = video
button_url Optional Chaîne Available when: type = video
button_text Optional Chaîne Available when: type = video
url_new_tab Optional Boolean Available when: type = video
title_color Optional Chaîne Available when: type = video
background_color Optional Chaîne Available when: type = video
button_background_color Optional Chaîne Available when: type = video
button_color Optional Chaîne Available when: type = video
audio
title Optional Chaîne Available when: type = audio
audio Optional Déposer Available when: type = audio
audio_autoplay Optional Boolean Available when: type = audio
audio_controls Optional Boolean Available when: type = audio
audio_loop Optional Boolean Available when: type = audio
audio_muted Optional Boolean Available when: type = audio
button_url Optional Chaîne Available when: type = audio
button_text Optional Chaîne Available when: type = audio
url_new_tab Optional Boolean Available when: type = audio
title_color Optional Chaîne Available when: type = audio
background_color Optional Chaîne Available when: type = audio
button_background_color Optional Chaîne Available when: type = audio
button_color Optional Chaîne Available when: type = audio
social_share
reviews
url Optional Chaîne Available when: type = reviews
url_new_tab Optional Boolean Available when: type = reviews
reviews_count Optional missing_translation: api_documentation.integer Available when: type = reviews
in_between_delay Optional missing_translation: api_documentation.integer Available when: type = reviews
order Optional Chaîne Available when: type = reviews
title missing_translation: api_documentation.default Chaîne Available when: type = reviews
description missing_translation: api_documentation.default Chaîne Available when: type = reviews
image missing_translation: api_documentation.default Déposer Available when: type = reviews
stars missing_translation: api_documentation.default missing_translation: api_documentation.integer Available when: type = reviews
title_color Optional Chaîne Available when: type = reviews
description_color Optional Chaîne Available when: type = reviews
background_color Optional Chaîne Available when: type = reviews
emoji_feedback
title Optional Chaîne Available when: type = emoji_feedback
thank_you_url Optional Chaîne Available when: type = emoji_feedback
show_angry Optional Boolean Available when: type = emoji_feedback
show_sad Optional Boolean Available when: type = emoji_feedback
show_neutral Optional Boolean Available when: type = emoji_feedback
show_happy Optional Boolean Available when: type = emoji_feedback
show_excited Optional Boolean Available when: type = emoji_feedback
title_color Optional Chaîne Available when: type = emoji_feedback
background_color Optional Chaîne Available when: type = emoji_feedback
cookie_notification
score_feedback
title Optional Chaîne Available when: type = score_feedback
description Optional Chaîne Available when: type = score_feedback
thank_you_url Optional Chaîne Available when: type = score_feedback
title_color Optional Chaîne Available when: type = score_feedback
description_color Optional Chaîne Available when: type = score_feedback
background_color Optional Chaîne Available when: type = score_feedback
button_background_color Optional Chaîne Available when: type = score_feedback
button_color Optional Chaîne Available when: type = score_feedback
request_collector
title Optional Chaîne Available when: type = request_collector
description Optional Chaîne Available when: type = request_collector
image Optional Déposer Available when: type = request_collector
image_alt Optional Chaîne Available when: type = request_collector
content_title Optional Chaîne Available when: type = request_collector
content_description Optional Chaîne Available when: type = request_collector
input_placeholder Optional Chaîne Available when: type = request_collector
button_text Optional Chaîne Available when: type = request_collector
show_agreement Optional Boolean Available when: type = request_collector
agreement_text Optional Chaîne Available when: type = request_collector
agreement_url Optional Chaîne Available when: type = request_collector
thank_you_url Optional Chaîne Available when: type = request_collector
title_color Optional Chaîne Available when: type = request_collector
description_color Optional Chaîne Available when: type = request_collector
content_title_color Optional Chaîne Available when: type = request_collector
content_description_color Optional Chaîne Available when: type = request_collector
background_color Optional Chaîne Available when: type = request_collector
button_background_color Optional Chaîne Available when: type = request_collector
button_color Optional Chaîne Available when: type = request_collector
countdown_collector
title Optional Chaîne Available when: type = countdown_collector
description Optional Chaîne Available when: type = countdown_collector
content_title Optional Chaîne Available when: type = countdown_collector
input_placeholder Optional Chaîne Available when: type = countdown_collector
button_text Optional Chaîne Available when: type = countdown_collector
countdown_end_date Optional Chaîne Available when: type = countdown_collector
show_agreement Optional Boolean Available when: type = countdown_collector
agreement_text Optional Chaîne Available when: type = countdown_collector
agreement_url Optional Chaîne Available when: type = countdown_collector
thank_you_url Optional Chaîne Available when: type = countdown_collector
title_color Optional Chaîne Available when: type = countdown_collector
description_color Optional Chaîne Available when: type = countdown_collector
content_title_color Optional Chaîne Available when: type = countdown_collector
time_color Optional Chaîne Available when: type = countdown_collector
time_background_color Optional Chaîne Available when: type = countdown_collector
background_color Optional Chaîne Available when: type = countdown_collector
button_background_color Optional Chaîne Available when: type = countdown_collector
button_color Optional Chaîne Available when: type = countdown_collector
custom_html
html Optional Chaîne Available when: type = custom_html
background_color Optional Chaîne Available when: type = custom_html
informational_bar
title Optional Chaîne Available when: type = informational_bar
description Optional Chaîne Available when: type = informational_bar
image Optional Déposer Available when: type = informational_bar
image_alt Optional Flotter Available when: type = informational_bar
url Optional Flotter Available when: type = informational_bar
url_new_tab Optional Boolean Available when: type = informational_bar
title_color Optional Chaîne Available when: type = informational_bar
description_color Optional Chaîne Available when: type = informational_bar
background_color Optional Chaîne Available when: type = informational_bar
informational_bar_mini
title Optional Chaîne Available when: type = informational_bar_mini
image Optional Déposer Available when: type = informational_bar_mini
image_alt Optional Flotter Available when: type = informational_bar_mini
url Optional Flotter Available when: type = informational_bar_mini
url_new_tab Optional Boolean Available when: type = informational_bar_mini
title_color Optional Chaîne Available when: type = informational_bar_mini
description_color Optional Chaîne Available when: type = informational_bar_mini
background_color Optional Chaîne Available when: type = informational_bar_mini
image
title Optional Chaîne Available when: type = image
image Optional Déposer Available when: type = image
image_alt Optional Chaîne Available when: type = image
button_url Optional Chaîne Available when: type = image
button_text Optional Chaîne Available when: type = image
title_color Optional Chaîne Available when: type = image
background_color Optional Chaîne Available when: type = image
button_background_color Optional Chaîne Available when: type = image
button_color Optional Chaîne Available when: type = image
collector_bar
title Optional Chaîne Available when: type = collector_bar
input_placeholder Optional Chaîne Available when: type = collector_bar
button_text Optional Chaîne Available when: type = collector_bar
show_agreement Optional Boolean Available when: type = collector_bar
agreement_text Optional Chaîne Available when: type = collector_bar
agreement_url Optional Chaîne Available when: type = collector_bar
thank_you_url Optional Chaîne Available when: type = collector_bar
title_color Optional Chaîne Available when: type = collector_bar
background_color Optional Chaîne Available when: type = collector_bar
button_background_color Optional Chaîne Available when: type = collector_bar
button_color Optional Chaîne Available when: type = collector_bar
coupon_bar
title Optional Chaîne Available when: type = coupon_bar
coupon_code Optional Chaîne Available when: type = coupon_bar
url Optional Flotter Available when: type = coupon_bar
url_new_tab Optional Boolean Available when: type = coupon_bar
title_color Optional Chaîne Available when: type = coupon_bar
background_color Optional Chaîne Available when: type = coupon_bar
coupon_code_color Optional Chaîne Available when: type = coupon_bar
coupon_code_background_color Optional Chaîne Available when: type = coupon_bar
coupon_code_border_color Optional Chaîne Available when: type = coupon_bar
button_bar
title Optional Chaîne Available when: type = button_bar
button_text Optional Chaîne Available when: type = button_bar
url Optional Chaîne Available when: type = button_bar
url_new_tab Optional Boolean Available when: type = button_bar
title_color Optional Chaîne Available when: type = button_bar
background_color Optional Chaîne Available when: type = button_bar
button_color Optional Chaîne Available when: type = button_bar
button_background_color Optional Chaîne Available when: type = button_bar
collector_modal
title Optional Chaîne Available when: type = collector_modal
description Optional Chaîne Available when: type = collector_modal
image Optional Déposer Available when: type = collector_modal
image_alt Optional Chaîne Available when: type = collector_modal
input_placeholder Optional Chaîne Available when: type = collector_modal
button_text Optional Chaîne Available when: type = collector_modal
show_agreement Optional Boolean Available when: type = collector_modal
agreement_text Optional Chaîne Available when: type = collector_modal
agreement_url Optional Chaîne Available when: type = collector_modal
thank_you_url Optional Chaîne Available when: type = collector_modal
title_color Optional Chaîne Available when: type = collector_modal
description_color Optional Chaîne Available when: type = collector_modal
background_color Optional Chaîne Available when: type = collector_modal
button_background_color Optional Chaîne Available when: type = collector_modal
button_color Optional Chaîne Available when: type = collector_modal
collector_two_modal
title Optional Chaîne Available when: type = collector_two_modal
description Optional Chaîne Available when: type = collector_two_modal
image Optional Déposer Available when: type = collector_two_modal
image_alt Optional Chaîne Available when: type = collector_two_modal
input_placeholder Optional Chaîne Available when: type = collector_two_modal
button_text Optional Chaîne Available when: type = collector_two_modal
show_agreement Optional Boolean Available when: type = collector_two_modal
agreement_text Optional Chaîne Available when: type = collector_two_modal
agreement_url Optional Chaîne Available when: type = collector_two_modal
thank_you_url Optional Chaîne Available when: type = collector_two_modal
title_color Optional Chaîne Available when: type = collector_two_modal
description_color Optional Chaîne Available when: type = collector_two_modal
background_color Optional Chaîne Available when: type = collector_two_modal
button_background_color Optional Chaîne Available when: type = collector_two_modal
button_color Optional Chaîne Available when: type = collector_two_modal
button_modal
title Optional Chaîne Available when: type = button_modal
description Optional Chaîne Available when: type = button_modal
image Optional Déposer Available when: type = button_modal
image_alt Optional Chaîne Available when: type = button_modal
button_text Optional Chaîne Available when: type = button_modal
button_url Optional Chaîne Available when: type = button_modal
url_new_tab Optional Boolean Available when: type = button_modal
title_color Optional Chaîne Available when: type = button_modal
description_color Optional Chaîne Available when: type = button_modal
background_color Optional Chaîne Available when: type = button_modal
button_background_color Optional Chaîne Available when: type = button_modal
button_color Optional Chaîne Available when: type = button_modal
text_feedback
title Optional Chaîne Available when: type = text_feedback
description Optional Chaîne Available when: type = text_feedback
input_placeholder Optional Chaîne Available when: type = text_feedback
button_text Optional Chaîne Available when: type = text_feedback
thank_you_url Optional Chaîne Available when: type = text_feedback
title_color Optional Chaîne Available when: type = text_feedback
description_color Optional Chaîne Available when: type = text_feedback
background_color Optional Chaîne Available when: type = text_feedback
button_background_color Optional Chaîne Available when: type = text_feedback
button_color Optional Chaîne Available when: type = text_feedback
engagement_links
title_color Optional Chaîne Available when: type = text_feedback
categories_title_color Optional Chaîne Available when: type = text_feedback
categories_description_color Optional Chaîne Available when: type = text_feedback
categories_links_title_color Optional Chaîne Available when: type = text_feedback
categories_links_description_color Optional Chaîne Available when: type = text_feedback
categories_links_background_color Optional Chaîne Available when: type = text_feedback
categories_links_border_color Optional Chaîne Available when: type = text_feedback
background_color Optional Chaîne Available when: type = text_feedback
whatsapp_chat
title Optional Chaîne Available when: type = whatsapp_chat
agent_image Optional Déposer Available when: type = whatsapp_chat
agent_image_alt Optional Chaîne Available when: type = whatsapp_chat
agent_name Optional Chaîne Available when: type = whatsapp_chat
agent_description Optional Chaîne Available when: type = whatsapp_chat
agent_message Optional Chaîne Available when: type = whatsapp_chat
agent_phone_number Optional Chaîne Available when: type = whatsapp_chat
button_text Optional Chaîne Available when: type = whatsapp_chat
header_agent_name_color Optional Chaîne Available when: type = whatsapp_chat
header_agent_description_color Optional Chaîne Available when: type = whatsapp_chat
header_background_color Optional Chaîne Available when: type = whatsapp_chat
content_background_color Optional Chaîne Available when: type = whatsapp_chat
content_agent_name_color Optional Chaîne Available when: type = whatsapp_chat
content_agent_message_color Optional Chaîne Available when: type = whatsapp_chat
content_agent_message_background_color Optional Chaîne Available when: type = whatsapp_chat
footer_background_color Optional Chaîne Available when: type = whatsapp_chat
footer_button_background_color Optional Chaîne Available when: type = whatsapp_chat
footer_button_color Optional Chaîne Available when: type = whatsapp_chat
title_color Optional Chaîne Available when: type = whatsapp_chat
background_color Optional Chaîne Available when: type = whatsapp_chat
contact_us
title Optional Chaîne Available when: type = contact_us
description Optional Chaîne Available when: type = contact_us
contact_email Optional Chaîne Available when: type = contact_us
contact_phone_number Optional Chaîne Available when: type = contact_us
contact_whatsapp Optional Chaîne Available when: type = contact_us
contact_telegram Optional Chaîne Available when: type = contact_us
contact_facebook_messenger Optional Chaîne Available when: type = contact_us
title_color Optional Chaîne Available when: type = contact_us
description_color Optional Chaîne Available when: type = contact_us
background_color Optional Chaîne Available when: type = contact_us
curl --request POST \
--url 'https://popupke.com/api/notifications/{notification_id}' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'name=example' \
--form 'is_enabled=1'
{ "data": { "id": 1 } }
DELETE https://popupke.com/api/notifications/{notification_id}
curl --request DELETE \
--url 'https://popupke.com/api/notifications/{notification_id}' \
--header 'Authorization: Bearer {api_key}' \