ایجاد اعلان جدید

GET https://notifer.ir/api/notifications/
curl --request GET \
--url 'https://notifer.ir/api/notifications/' \
--header 'Authorization: Bearer {api_key}' \
پارامترها جزئیات توضیحات
page اختیاری Integer شماره صفحه ای که می خواهید از آن نتیجه بگیرید. پیش‌فرض 1 است.
results_per_page اختیاری Integer در هر صفحه چند نتیجه می خواهید. مقادیر مجاز عبارتند از: 10 , 25 , 50 , 100 , 250 , 500 , 1000. پیش‌فرض 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-03-13 00:39:34" } ], "meta": { "page": 1, "results_per_page": 25, "total": 1, "total_pages": 1 }, "links": { "first": "https://notifer.ir/api/notifications?&page=1", "last": "https://notifer.ir/api/notifications?&page=1", "next": null, "prev": null, "self": "https://notifer.ir/api/notifications?&page=1" } }
GET https://notifer.ir/api/notifications/{notification_id}
curl --request GET \
--url 'https://notifer.ir/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-03-13 00:39:34" } }
POST https://notifer.ir/api/notifications
پارامترها جزئیات توضیحات
campaign_id اجباری Integer -
type اجباری String مقادیر مجاز: 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
name اختیاری String -
is_enabled اختیاری Boolean -
curl --request POST \
--url 'https://notifer.ir/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://notifer.ir/api/notifications/{notification_id}
پارامترها جزئیات توضیحات
name اختیاری String -
is_enabled اختیاری Boolean -
trigger_all_pages اختیاری Boolean -
display_trigger اختیاری String مقادیر مجاز: delay, time_on_site, pageviews, inactivity, exit_intent, scroll, click, hover
display_value اختیاری String -
display_delay_type_after_close اختیاری String مقادیر مجاز: time_on_site, pageviews
display_delay_value_after_close اختیاری Integer -
display_frequency اختیاری String مقادیر مجاز: all_time, once_per_session, once_per_browser
direction اختیاری String مقادیر مجاز: rtl, ltr
display_continents اختیاری Array String -
display_countries اختیاری Array String -
display_languages اختیاری Array String -
display_operating_systems اختیاری Array String -
display_browsers اختیاری Array String -
display_cities اختیاری Array String -
display_mobile اختیاری Boolean -
display_desktop اختیاری Boolean -
schedule اختیاری Boolean -
start_date اختیاری String -
end_date اختیاری String -
display_duration اختیاری Integer -
display_position اختیاری String مقادیر مجاز: 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 اختیاری Boolean -
display_branding اختیاری Boolean -
shadow اختیاری String مقادیر مجاز: , subtle, feather, 3d, layered
border_width اختیاری Integer مقادیر مجاز: 0, 1, 2, 3, 4, 5
internal_padding اختیاری Integer مقادیر مجاز: 5-25
background_blur اختیاری Integer مقادیر مجاز: 0-30
custom_css اختیاری String -
hover_animation اختیاری String مقادیر مجاز: , fast_scale_up, slow_scale_up, fast_scale_down, slow_scale_down
on_animation اختیاری String مقادیر مجاز: fadeIn, slideInUp, slideInDown, zoomIn, bounceIn
off_animation اختیاری String مقادیر مجاز: fadeOut, slideOutUp, slideOutDown, zoomOut, bounceOut
animation اختیاری String مقادیر مجاز: , heartbeat, bounce, flash, pulse
animation_interval اختیاری Integer -
font اختیاری String مقادیر مجاز: 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 اختیاری String مقادیر مجاز: straight, rounded, highly_rounded, round
notifications اختیاری Array 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 اختیاری String Available when: type = informational
description اختیاری String Available when: type = informational
image اختیاری File Available when: type = informational
image_alt اختیاری String Available when: type = informational
url اختیاری String Available when: type = informational
url_new_tab اختیاری Boolean Available when: type = informational
title_color اختیاری String Available when: type = informational
description_color اختیاری String Available when: type = informational
background_color اختیاری String Available when: type = informational
informational_mini
title اختیاری String Available when: type = informational_mini
image اختیاری File Available when: type = informational_mini
image_alt اختیاری String Available when: type = informational_mini
url اختیاری String Available when: type = informational_mini
url_new_tab اختیاری Boolean Available when: type = informational_mini
title_color اختیاری String Available when: type = informational_mini
description_color اختیاری String Available when: type = informational_mini
background_color اختیاری String Available when: type = informational_mini
coupon
title اختیاری String Available when: type = coupon
description اختیاری String Available when: type = coupon
image اختیاری File Available when: type = coupon
image_alt اختیاری String Available when: type = coupon
coupon_code اختیاری String Available when: type = coupon
button_url اختیاری String Available when: type = coupon
url_new_tab اختیاری Boolean Available when: type = coupon
button_text اختیاری String Available when: type = coupon
title_color اختیاری String Available when: type = coupon
description_color اختیاری String Available when: type = coupon
background_color اختیاری String Available when: type = coupon
button_background_color اختیاری String Available when: type = coupon
button_color اختیاری String Available when: type = coupon
live_counter
description اختیاری String Available when: type = live_counter
last_activity اختیاری String Available when: type = live_counter
url اختیاری String Available when: type = live_counter
url_new_tab اختیاری Boolean Available when: type = live_counter
display_minimum_activity اختیاری Integer Available when: type = live_counter
description_color اختیاری String Available when: type = live_counter
background_color اختیاری String Available when: type = live_counter
number_background_color اختیاری String Available when: type = live_counter
number_color اختیاری String Available when: type = live_counter
pulse_background_color اختیاری String Available when: type = live_counter
email_collector
conversions
title اختیاری String Available when: type = conversions
description اختیاری String Available when: type = conversions
image اختیاری File Available when: type = conversions
image_alt اختیاری String Available when: type = conversions
url اختیاری String Available when: type = conversions
url_new_tab اختیاری Boolean Available when: type = conversions
conversions_count اختیاری Integer Available when: type = conversions
in_between_delay اختیاری Integer Available when: type = conversions
order اختیاری String Available when: type = conversions
مقادیر مجاز: random, descending
data_trigger_auto اختیاری Boolean Available when: type = conversions
data_trigger_auto_type[index] اختیاری Array String Available when: type = conversions
مقادیر مجاز: exact , contains , starts_with , ends_with
data_trigger_auto_value[index] اختیاری Array String Available when: type = conversions
title_color اختیاری String Available when: type = conversions
description_color اختیاری String Available when: type = conversions
date_color اختیاری String Available when: type = conversions
background_color اختیاری String Available when: type = conversions
conversions counter
title اختیاری String Available when: type = conversions counter
last_activity اختیاری String Available when: type = conversions counter
url اختیاری String Available when: type = conversions counter
url_new_tab اختیاری Boolean Available when: type = conversions counter
display_minimum_activity اختیاری String Available when: type = conversions counter
title_color اختیاری String Available when: type = conversions counter
background_color اختیاری String Available when: type = conversions counter
number_background_color اختیاری String Available when: type = conversions counter
number_color اختیاری String Available when: type = conversions counter
data_trigger_auto اختیاری Boolean Available when: type = conversions counter
data_trigger_auto_type[index] اختیاری Array String Available when: type = conversions
مقادیر مجاز: exact , contains , starts_with , ends_with
data_trigger_auto_value[index] اختیاری Array String Available when: type = conversions
video
title اختیاری String Available when: type = video
video اختیاری File Available when: type = video
video_is_youtube اختیاری Boolean Available when: type = video
youtube_video_id اختیاری String Available when: type = video
video_autoplay اختیاری Boolean Available when: type = video
video_controls اختیاری Boolean Available when: type = video
video_loop اختیاری Boolean Available when: type = video
video_muted اختیاری Boolean Available when: type = video
button_url اختیاری String Available when: type = video
button_text اختیاری String Available when: type = video
url_new_tab اختیاری Boolean Available when: type = video
title_color اختیاری String Available when: type = video
background_color اختیاری String Available when: type = video
button_background_color اختیاری String Available when: type = video
button_color اختیاری String Available when: type = video
audio
title اختیاری String Available when: type = audio
audio اختیاری File Available when: type = audio
audio_autoplay اختیاری Boolean Available when: type = audio
audio_controls اختیاری Boolean Available when: type = audio
audio_loop اختیاری Boolean Available when: type = audio
audio_muted اختیاری Boolean Available when: type = audio
button_url اختیاری String Available when: type = audio
button_text اختیاری String Available when: type = audio
url_new_tab اختیاری Boolean Available when: type = audio
title_color اختیاری String Available when: type = audio
background_color اختیاری String Available when: type = audio
button_background_color اختیاری String Available when: type = audio
button_color اختیاری String Available when: type = audio
social_share
reviews
url اختیاری String Available when: type = reviews
url_new_tab اختیاری Boolean Available when: type = reviews
reviews_count اختیاری missing_translation: api_documentation.integer Available when: type = reviews
in_between_delay اختیاری missing_translation: api_documentation.integer Available when: type = reviews
order اختیاری String Available when: type = reviews
title missing_translation: api_documentation.default String Available when: type = reviews
description missing_translation: api_documentation.default String Available when: type = reviews
image missing_translation: api_documentation.default File Available when: type = reviews
stars missing_translation: api_documentation.default missing_translation: api_documentation.integer Available when: type = reviews
title_color اختیاری String Available when: type = reviews
description_color اختیاری String Available when: type = reviews
background_color اختیاری String Available when: type = reviews
emoji_feedback
title اختیاری String Available when: type = emoji_feedback
thank_you_url اختیاری String Available when: type = emoji_feedback
show_angry اختیاری Boolean Available when: type = emoji_feedback
show_sad اختیاری Boolean Available when: type = emoji_feedback
show_neutral اختیاری Boolean Available when: type = emoji_feedback
show_happy اختیاری Boolean Available when: type = emoji_feedback
show_excited اختیاری Boolean Available when: type = emoji_feedback
title_color اختیاری String Available when: type = emoji_feedback
background_color اختیاری String Available when: type = emoji_feedback
cookie_notification
score_feedback
title اختیاری String Available when: type = score_feedback
description اختیاری String Available when: type = score_feedback
thank_you_url اختیاری String Available when: type = score_feedback
title_color اختیاری String Available when: type = score_feedback
description_color اختیاری String Available when: type = score_feedback
background_color اختیاری String Available when: type = score_feedback
button_background_color اختیاری String Available when: type = score_feedback
button_color اختیاری String Available when: type = score_feedback
request_collector
title اختیاری String Available when: type = request_collector
description اختیاری String Available when: type = request_collector
image اختیاری File Available when: type = request_collector
image_alt اختیاری String Available when: type = request_collector
content_title اختیاری String Available when: type = request_collector
content_description اختیاری String Available when: type = request_collector
input_placeholder اختیاری String Available when: type = request_collector
button_text اختیاری String Available when: type = request_collector
show_agreement اختیاری Boolean Available when: type = request_collector
agreement_text اختیاری String Available when: type = request_collector
agreement_url اختیاری String Available when: type = request_collector
thank_you_url اختیاری String Available when: type = request_collector
title_color اختیاری String Available when: type = request_collector
description_color اختیاری String Available when: type = request_collector
content_title_color اختیاری String Available when: type = request_collector
content_description_color اختیاری String Available when: type = request_collector
background_color اختیاری String Available when: type = request_collector
button_background_color اختیاری String Available when: type = request_collector
button_color اختیاری String Available when: type = request_collector
countdown_collector
title اختیاری String Available when: type = countdown_collector
description اختیاری String Available when: type = countdown_collector
content_title اختیاری String Available when: type = countdown_collector
input_placeholder اختیاری String Available when: type = countdown_collector
button_text اختیاری String Available when: type = countdown_collector
countdown_end_date اختیاری String Available when: type = countdown_collector
show_agreement اختیاری Boolean Available when: type = countdown_collector
agreement_text اختیاری String Available when: type = countdown_collector
agreement_url اختیاری String Available when: type = countdown_collector
thank_you_url اختیاری String Available when: type = countdown_collector
title_color اختیاری String Available when: type = countdown_collector
description_color اختیاری String Available when: type = countdown_collector
content_title_color اختیاری String Available when: type = countdown_collector
time_color اختیاری String Available when: type = countdown_collector
time_background_color اختیاری String Available when: type = countdown_collector
background_color اختیاری String Available when: type = countdown_collector
button_background_color اختیاری String Available when: type = countdown_collector
button_color اختیاری String Available when: type = countdown_collector
custom_html
html اختیاری String Available when: type = custom_html
background_color اختیاری String Available when: type = custom_html
informational_bar
title اختیاری String Available when: type = informational_bar
description اختیاری String Available when: type = informational_bar
image اختیاری File Available when: type = informational_bar
image_alt اختیاری Float Available when: type = informational_bar
url اختیاری Float Available when: type = informational_bar
url_new_tab اختیاری Boolean Available when: type = informational_bar
title_color اختیاری String Available when: type = informational_bar
description_color اختیاری String Available when: type = informational_bar
background_color اختیاری String Available when: type = informational_bar
informational_bar_mini
title اختیاری String Available when: type = informational_bar_mini
image اختیاری File Available when: type = informational_bar_mini
image_alt اختیاری Float Available when: type = informational_bar_mini
url اختیاری Float Available when: type = informational_bar_mini
url_new_tab اختیاری Boolean Available when: type = informational_bar_mini
title_color اختیاری String Available when: type = informational_bar_mini
description_color اختیاری String Available when: type = informational_bar_mini
background_color اختیاری String Available when: type = informational_bar_mini
image
title اختیاری String Available when: type = image
image اختیاری File Available when: type = image
image_alt اختیاری String Available when: type = image
button_url اختیاری String Available when: type = image
button_text اختیاری String Available when: type = image
title_color اختیاری String Available when: type = image
background_color اختیاری String Available when: type = image
button_background_color اختیاری String Available when: type = image
button_color اختیاری String Available when: type = image
collector_bar
title اختیاری String Available when: type = collector_bar
input_placeholder اختیاری String Available when: type = collector_bar
button_text اختیاری String Available when: type = collector_bar
show_agreement اختیاری Boolean Available when: type = collector_bar
agreement_text اختیاری String Available when: type = collector_bar
agreement_url اختیاری String Available when: type = collector_bar
thank_you_url اختیاری String Available when: type = collector_bar
title_color اختیاری String Available when: type = collector_bar
background_color اختیاری String Available when: type = collector_bar
button_background_color اختیاری String Available when: type = collector_bar
button_color اختیاری String Available when: type = collector_bar
coupon_bar
title اختیاری String Available when: type = coupon_bar
coupon_code اختیاری String Available when: type = coupon_bar
url اختیاری Float Available when: type = coupon_bar
url_new_tab اختیاری Boolean Available when: type = coupon_bar
title_color اختیاری String Available when: type = coupon_bar
background_color اختیاری String Available when: type = coupon_bar
coupon_code_color اختیاری String Available when: type = coupon_bar
coupon_code_background_color اختیاری String Available when: type = coupon_bar
coupon_code_border_color اختیاری String Available when: type = coupon_bar
button_bar
title اختیاری String Available when: type = button_bar
button_text اختیاری String Available when: type = button_bar
url اختیاری String Available when: type = button_bar
url_new_tab اختیاری Boolean Available when: type = button_bar
title_color اختیاری String Available when: type = button_bar
background_color اختیاری String Available when: type = button_bar
button_color اختیاری String Available when: type = button_bar
button_background_color اختیاری String Available when: type = button_bar
collector_modal
title اختیاری String Available when: type = collector_modal
description اختیاری String Available when: type = collector_modal
image اختیاری File Available when: type = collector_modal
image_alt اختیاری String Available when: type = collector_modal
input_placeholder اختیاری String Available when: type = collector_modal
button_text اختیاری String Available when: type = collector_modal
show_agreement اختیاری Boolean Available when: type = collector_modal
agreement_text اختیاری String Available when: type = collector_modal
agreement_url اختیاری String Available when: type = collector_modal
thank_you_url اختیاری String Available when: type = collector_modal
title_color اختیاری String Available when: type = collector_modal
description_color اختیاری String Available when: type = collector_modal
background_color اختیاری String Available when: type = collector_modal
button_background_color اختیاری String Available when: type = collector_modal
button_color اختیاری String Available when: type = collector_modal
collector_two_modal
title اختیاری String Available when: type = collector_two_modal
description اختیاری String Available when: type = collector_two_modal
image اختیاری File Available when: type = collector_two_modal
image_alt اختیاری String Available when: type = collector_two_modal
input_placeholder اختیاری String Available when: type = collector_two_modal
button_text اختیاری String Available when: type = collector_two_modal
show_agreement اختیاری Boolean Available when: type = collector_two_modal
agreement_text اختیاری String Available when: type = collector_two_modal
agreement_url اختیاری String Available when: type = collector_two_modal
thank_you_url اختیاری String Available when: type = collector_two_modal
title_color اختیاری String Available when: type = collector_two_modal
description_color اختیاری String Available when: type = collector_two_modal
background_color اختیاری String Available when: type = collector_two_modal
button_background_color اختیاری String Available when: type = collector_two_modal
button_color اختیاری String Available when: type = collector_two_modal
button_modal
title اختیاری String Available when: type = button_modal
description اختیاری String Available when: type = button_modal
image اختیاری File Available when: type = button_modal
image_alt اختیاری String Available when: type = button_modal
button_text اختیاری String Available when: type = button_modal
button_url اختیاری String Available when: type = button_modal
url_new_tab اختیاری Boolean Available when: type = button_modal
title_color اختیاری String Available when: type = button_modal
description_color اختیاری String Available when: type = button_modal
background_color اختیاری String Available when: type = button_modal
button_background_color اختیاری String Available when: type = button_modal
button_color اختیاری String Available when: type = button_modal
text_feedback
title اختیاری String Available when: type = text_feedback
description اختیاری String Available when: type = text_feedback
input_placeholder اختیاری String Available when: type = text_feedback
button_text اختیاری String Available when: type = text_feedback
thank_you_url اختیاری String Available when: type = text_feedback
title_color اختیاری String Available when: type = text_feedback
description_color اختیاری String Available when: type = text_feedback
background_color اختیاری String Available when: type = text_feedback
button_background_color اختیاری String Available when: type = text_feedback
button_color اختیاری String Available when: type = text_feedback
engagement_links
title_color اختیاری String Available when: type = text_feedback
categories_title_color اختیاری String Available when: type = text_feedback
categories_description_color اختیاری String Available when: type = text_feedback
categories_links_title_color اختیاری String Available when: type = text_feedback
categories_links_description_color اختیاری String Available when: type = text_feedback
categories_links_background_color اختیاری String Available when: type = text_feedback
categories_links_border_color اختیاری String Available when: type = text_feedback
background_color اختیاری String Available when: type = text_feedback
whatsapp_chat
title اختیاری String Available when: type = whatsapp_chat
agent_image اختیاری File Available when: type = whatsapp_chat
agent_image_alt اختیاری String Available when: type = whatsapp_chat
agent_name اختیاری String Available when: type = whatsapp_chat
agent_description اختیاری String Available when: type = whatsapp_chat
agent_message اختیاری String Available when: type = whatsapp_chat
agent_phone_number اختیاری String Available when: type = whatsapp_chat
button_text اختیاری String Available when: type = whatsapp_chat
header_agent_name_color اختیاری String Available when: type = whatsapp_chat
header_agent_description_color اختیاری String Available when: type = whatsapp_chat
header_background_color اختیاری String Available when: type = whatsapp_chat
content_background_color اختیاری String Available when: type = whatsapp_chat
content_agent_name_color اختیاری String Available when: type = whatsapp_chat
content_agent_message_color اختیاری String Available when: type = whatsapp_chat
content_agent_message_background_color اختیاری String Available when: type = whatsapp_chat
footer_background_color اختیاری String Available when: type = whatsapp_chat
footer_button_background_color اختیاری String Available when: type = whatsapp_chat
footer_button_color اختیاری String Available when: type = whatsapp_chat
title_color اختیاری String Available when: type = whatsapp_chat
background_color اختیاری String Available when: type = whatsapp_chat
contact_us
title اختیاری String Available when: type = contact_us
description اختیاری String Available when: type = contact_us
contact_email اختیاری String Available when: type = contact_us
contact_phone_number اختیاری String Available when: type = contact_us
contact_whatsapp اختیاری String Available when: type = contact_us
contact_telegram اختیاری String Available when: type = contact_us
contact_facebook_messenger اختیاری String Available when: type = contact_us
title_color اختیاری String Available when: type = contact_us
description_color اختیاری String Available when: type = contact_us
background_color اختیاری String Available when: type = contact_us
curl --request POST \
--url 'https://notifer.ir/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://notifer.ir/api/notifications/{notification_id}
curl --request DELETE \
--url 'https://notifer.ir/api/notifications/{notification_id}' \
--header 'Authorization: Bearer {api_key}' \