{"Status":true,"Message":"","Response":{"post":{"postuid":"96d32c21-8b25-4107-8911-009c5b9855f3","tenantuid":"d8b744fc-2e70-4089-bb80-dd1d08f6c7b2","projectuid":"542e5f51-33cf-401f-aebe-4324ebe36fe4","title":"Get Web Push Opt-in","slug":"article/get-web-push-opt-in","html":"\u003Cp\u003EReturns the tenant\u0027s web push opt-in prompt configuration. The opt-in prompt is the UI shown to browser visitors asking them to subscribe to push notifications. A tenant has at most one opt-in configuration.\u003C/p\u003E\u003Cp\u003EUse \u003Ca href=\u0022/reference/create-or-update-web-push-opt-in\u0022\u003ECreate or Update Web Push Opt-in\u003C/a\u003E to create or change the configuration.\u003C/p\u003E\u003Cdiv class=\u0022api_header\u0022\u003EHTTP Response Examples\u003C/div\u003E\u003Cdiv class=\u0022code_wrapper\u0022\u003E\u003Cdiv class=\u0022d-flex header\u0022\u003E\u003Cspan class=\u0022httpstatus\u0022\u003E\u003Cspan class=\u0022solid-circle success\u0022\u003E\u003C/span\u003E200\u003C/span\u003E\u003C/div\u003E\u003Cdiv class=\u0022code\u0022 data-language=\u0022json\u0022\u003E{\n  \u0026quot;Status\u0026quot;: true,\n  \u0026quot;Message\u0026quot;: \u0026quot;\u0026quot;,\n  \u0026quot;Response\u0026quot;: {\n    \u0026quot;optin\u0026quot;: {\n      \u0026quot;title\u0026quot;: \u0026quot;Get updates from Example\u0026quot;,\n      \u0026quot;body\u0026quot;: \u0026quot;We\u0026#39;ll send you notifications for new posts and offers.\u0026quot;,\n      \u0026quot;logo\u0026quot;: \u0026quot;https://cdn.example.com/logo.png\u0026quot;,\n      \u0026quot;serviceworker_url\u0026quot;: \u0026quot;https://www.example.com/sw.js\u0026quot;,\n      \u0026quot;placement\u0026quot;: 0,\n      \u0026quot;date_last_modified\u0026quot;: \u0026quot;2026-04-20T14:30:00\u0026quot;\n    }\n  }\n}\u003C/div\u003E\u003C/div\u003E\u003Cdiv class=\u0022api_header\u0022\u003EHTTP Response Parameters\u003C/div\u003E\u003Csection class=\u0022api_parameters\u0022\u003E\u003Csection class=\u0022api_param\u0022\u003E\u003Cdiv class=\u0022api_param_header\u0022\u003E\u003Cspan class=\u0022p_name\u0022\u003Eoptin\u003C/span\u003E\u003Cspan class=\u0022p_type\u0022\u003Eobject\u003C/span\u003E\u003Cspan class=\u0022p_isrequired\u0022\u003Erequired\u003C/span\u003E\u003C/div\u003E\u003Cdiv\u003EThe tenant\u0027s opt-in configuration, or null if none has been saved.\u003C/div\u003E\u003C/section\u003E\u003Csection class=\u0022api_param\u0022\u003E\u003Cdiv class=\u0022api_param_header\u0022\u003E\u003Cspan class=\u0022p_name\u0022\u003Eoptin.title\u003C/span\u003E\u003Cspan class=\u0022p_type\u0022\u003Estring\u003C/span\u003E\u003Cspan class=\u0022p_isrequired\u0022\u003Erequired\u003C/span\u003E\u003C/div\u003E\u003Cdiv\u003ETitle displayed on the opt-in prompt.\u003C/div\u003E\u003C/section\u003E\u003Csection class=\u0022api_param\u0022\u003E\u003Cdiv class=\u0022api_param_header\u0022\u003E\u003Cspan class=\u0022p_name\u0022\u003Eoptin.body\u003C/span\u003E\u003Cspan class=\u0022p_type\u0022\u003Estring\u003C/span\u003E\u003Cspan class=\u0022p_isrequired\u0022\u003Erequired\u003C/span\u003E\u003C/div\u003E\u003Cdiv\u003EBody text displayed on the opt-in prompt.\u003C/div\u003E\u003C/section\u003E\u003Csection class=\u0022api_param\u0022\u003E\u003Cdiv class=\u0022api_param_header\u0022\u003E\u003Cspan class=\u0022p_name\u0022\u003Eoptin.logo\u003C/span\u003E\u003Cspan class=\u0022p_type\u0022\u003Estring\u003C/span\u003E\u003C/div\u003E\u003Cdiv\u003EURL of the logo shown on the opt-in prompt.\u003C/div\u003E\u003C/section\u003E\u003Csection class=\u0022api_param\u0022\u003E\u003Cdiv class=\u0022api_param_header\u0022\u003E\u003Cspan class=\u0022p_name\u0022\u003Eoptin.serviceworker_url\u003C/span\u003E\u003Cspan class=\u0022p_type\u0022\u003Estring\u003C/span\u003E\u003C/div\u003E\u003Cdiv\u003EURL of the service worker script used to register the subscription.\u003C/div\u003E\u003C/section\u003E\u003Csection class=\u0022api_param\u0022\u003E\u003Cdiv class=\u0022api_param_header\u0022\u003E\u003Cspan class=\u0022p_name\u0022\u003Eoptin.placement\u003C/span\u003E\u003Cspan class=\u0022p_type\u0022\u003Enumber\u003C/span\u003E\u003Cspan class=\u0022p_isrequired\u0022\u003Erequired\u003C/span\u003E\u003C/div\u003E\u003Cdiv\u003EPlacement of the prompt. 0 = TopRight, 10 = TopLeft, 20 = TopCenter.\u003C/div\u003E\u003C/section\u003E\u003Csection class=\u0022api_param\u0022\u003E\u003Cdiv class=\u0022api_param_header\u0022\u003E\u003Cspan class=\u0022p_name\u0022\u003Eoptin.date_last_modified\u003C/span\u003E\u003Cspan class=\u0022p_type\u0022\u003Estring\u003C/span\u003E\u003Cspan class=\u0022p_isrequired\u0022\u003Erequired\u003C/span\u003E\u003C/div\u003E\u003Cdiv\u003EISO timestamp when the configuration was last updated.\u003C/div\u003E\u003C/section\u003E\u003C/section\u003E","json_meta":{"api_verb":"GET","api_path":"https://us-1.dailystory.com/api/v1/webpush/optin"},"publish_status":0,"post_type":"API","authoruid":"3dde8c16-763a-4a2b-ae0b-1d8c50c62e3d","author":{"authoruid":"3dde8c16-763a-4a2b-ae0b-1d8c50c62e3d"},"featured_image_updating":false,"meta_description":"Get the tenant\u0027s web push opt-in prompt configuration, including title, body, logo, placement, and last modified date. Update with create or update API.","display_toc":true,"has_workingcopy":false,"allow_indexing":true,"sort_order":0,"total_views":0,"date_published":"2026-04-20T21:13:50.363","date_updated":"2026-04-20T21:13:51.393","date_created":"2026-04-20T21:02:10.84"}}}