{"info":{"_postman_id":"f15fa789-dd88-4c55-8d11-2c6862957e42","name":"Web Push Notifications Server APIs","description":"<html><head></head><body><p>🔔 Simple public server which provides Web Push Notifications service to frontend applications.</p>\n<p>RapidAPI link - <a href=\"https://rapidapi.com/dhyeythumar/api/web-push-notifications-server/\">https://rapidapi.com/dhyeythumar/api/web-push-notifications-server/</a></p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"8974666","collectionId":"f15fa789-dd88-4c55-8d11-2c6862957e42","publishedId":"UVRHi3PB","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2022-05-06T10:23:01.000Z"},"item":[{"name":"Index","id":"a2d67e24-60dd-4498-878f-9614f9933e71","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"x-rapidapi-host","value":"web-push-notifications-server.p.rapidapi.com","type":"text"},{"key":"x-rapidapi-key","value":"-your-rapidapi-key-here-","type":"text"}],"url":"https://web-push-notifications-server.p.rapidapi.com/","description":"<p>Fetch server information.</p>\n","urlObject":{"path":[""],"host":["https://web-push-notifications-server.p.rapidapi.com"],"query":[],"variable":[]}},"response":[{"id":"accd8581-0f88-4de1-aa54-5baf7d5207c0","name":"Successfully fetched server info","originalRequest":{"method":"GET","header":[{"key":"x-rapidapi-host","value":"web-push-notifications-server.p.rapidapi.com","type":"text"},{"key":"x-rapidapi-key","value":"-your-rapidapi-key-here-","type":"text"}],"url":"https://web-push-notifications-server.p.rapidapi.com/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"access-control-allow-credentials","value":"true"},{"key":"access-control-allow-headers","value":"X-WPN-Secret, X-CSRF-Token, X-Requested-With, Accept, Accept-Version, Content-Length, Content-MD5, Content-Type, Date, X-Api-Version"},{"key":"access-control-allow-methods","value":"GET,OPTIONS,PATCH,DELETE,POST,PUT"},{"key":"access-control-allow-origin","value":"*"},{"key":"age","value":"1486"},{"key":"cache-control","value":"public, max-age=86400"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Thu, 20 Jan 2022 05:46:46 GMT"},{"key":"etag","value":"W/\"193-5itGVS98wZHF9U5FjzfY2YHClI8\""},{"key":"Server","value":"RapidAPI-1.2.8"},{"key":"strict-transport-security","value":"max-age=63072000; includeSubDomains; preload"},{"key":"X-RapidAPI-Region","value":"AWS - ap-southeast-1"},{"key":"X-RapidAPI-Version","value":"1.2.8"},{"key":"X-RateLimit-All-endpoints-Reset","value":"79706"},{"key":"Content-Length","value":"412"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"apiDocumentation\": \"https://documenter.getpostman.com/view/8974666/UVRHi3PB\",\n    \"uptime\": \"0.0588 sec\",\n    \"message\": \"Welcome to Dhyey's Web Push Notification (WPN) server. Now you can send push notifications to any web client/browser without handling the servers on your own with these simple APIs. Check out our github repo (https://git.io/JDkXq) on 'How to configure the WPN service for the React.js app?'\"\n}"}],"_postman_id":"a2d67e24-60dd-4498-878f-9614f9933e71"},{"name":"Create owner","id":"6fe2dd36-a43c-4e0b-85ad-490d0303b68c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"x-rapidapi-host","value":"web-push-notifications-server.p.rapidapi.com","type":"text"},{"key":"x-rapidapi-key","value":"-your-rapidapi-key-here-","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"origin\": \"https://test.com\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://web-push-notifications-server.p.rapidapi.com/owner/","description":"<p>Register the owner for the origin you own.</p>\n","urlObject":{"path":["owner",""],"host":["https://web-push-notifications-server.p.rapidapi.com"],"query":[],"variable":[]}},"response":[{"id":"57414571-297b-4800-a940-47b1d5f992dd","name":"Successfully registered an Owner","originalRequest":{"method":"POST","header":[{"key":"x-rapidapi-host","value":"web-push-notifications-server.p.rapidapi.com","type":"text"},{"key":"x-rapidapi-key","value":"-your-rapidapi-key-here-","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"origin\": \"https://test.com\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://web-push-notifications-server.p.rapidapi.com/owner/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Connection","value":"keep-alive"},{"key":"access-control-allow-credentials","value":"true"},{"key":"access-control-allow-headers","value":"X-WPN-Secret, X-CSRF-Token, X-Requested-With, Accept, Accept-Version, Content-Length, Content-MD5, Content-Type, Date, X-Api-Version"},{"key":"access-control-allow-methods","value":"GET,OPTIONS,PATCH,DELETE,POST,PUT"},{"key":"access-control-allow-origin","value":"*"},{"key":"content-length","value":"401"},{"key":"date","value":"Wed, 29 Dec 2021 04:18:02 GMT"},{"key":"etag","value":"W/\"191-Otu7Gsgf1BYDEaiIskTRDRJfsMI\""},{"key":"strict-transport-security","value":"max-age=63072000; includeSubDomains; preload"},{"key":"cache-control","value":"public, max-age=0, must-revalidate"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"The owner is registered to the given origin on a temporary basis! To verify your ownership of the origin you must send a push subscription request from the given origin as per instructions.\",\n    \"owner\": {\n        \"ownerId\": \"-your-owner-id-here-\",\n        \"secret\": \"-your-secret-here-\",\n        \"origin\": \"https://test.com\"\n    },\n    \"uptime\": \"2.54 sec\"\n}"},{"id":"e522a2e7-b5de-4193-93c8-584fdeb0a510","name":"Failure when Origin is already taken","originalRequest":{"method":"POST","header":[{"key":"x-rapidapi-host","value":"web-push-notifications-server.p.rapidapi.com","type":"text"},{"key":"x-rapidapi-key","value":"-your-rapidapi-key-here-","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"origin\": \"https://dhyeythumar.github.io\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://web-push-notifications-server.p.rapidapi.com/owner/"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Connection","value":"keep-alive"},{"key":"access-control-allow-credentials","value":"true"},{"key":"access-control-allow-headers","value":"X-WPN-Secret, X-CSRF-Token, X-Requested-With, Accept, Accept-Version, Content-Length, Content-MD5, Content-Type, Date, X-Api-Version"},{"key":"access-control-allow-methods","value":"GET,OPTIONS,PATCH,DELETE,POST,PUT"},{"key":"access-control-allow-origin","value":"*"},{"key":"content-length","value":"169"},{"key":"date","value":"Wed, 29 Dec 2021 04:14:17 GMT"},{"key":"etag","value":"W/\"a9-Z1/qZkPYSDa54acFGW6ZZhZpRoA\""},{"key":"strict-transport-security","value":"max-age=63072000; includeSubDomains; preload"},{"key":"cache-control","value":"public, max-age=0, must-revalidate"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Origin already exists in the system\",\n    \"message\": \"If you think there's some mistake, please feel free to contact here https://git.io/JM9TR\",\n    \"uptime\": \"1.338 sec\"\n}"}],"_postman_id":"6fe2dd36-a43c-4e0b-85ad-490d0303b68c"},{"name":"Owner info","id":"e81c6edf-3b6c-4047-95ff-ad8e2273c684","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"x-wpn-secret","value":"-your-secret-here-","type":"text"},{"key":"x-rapidapi-host","value":"web-push-notifications-server.p.rapidapi.com","type":"text"},{"key":"x-rapidapi-key","value":"-your-rapidapi-key-here-","type":"text"}],"url":"https://web-push-notifications-server.p.rapidapi.com/owner/-your-owner-id-here-","description":"<p>Fetch owner's details.</p>\n","urlObject":{"path":["owner","-your-owner-id-here-"],"host":["https://web-push-notifications-server.p.rapidapi.com"],"query":[],"variable":[]}},"response":[{"id":"1649e376-39f7-4d00-8440-c2f4dd21f2ac","name":"Successfully fetched Owner's details","originalRequest":{"method":"GET","header":[{"key":"x-wpn-secret","value":"-your-secret-here-","type":"text"},{"key":"x-rapidapi-host","value":"web-push-notifications-server.p.rapidapi.com","type":"text"},{"key":"x-rapidapi-key","value":"-your-rapidapi-key-here-","type":"text"}],"url":"https://web-push-notifications-server.p.rapidapi.com/owner/-your-owner-id-here-"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Connection","value":"keep-alive"},{"key":"access-control-allow-credentials","value":"true"},{"key":"access-control-allow-headers","value":"X-WPN-Secret, X-CSRF-Token, X-Requested-With, Accept, Accept-Version, Content-Length, Content-MD5, Content-Type, Date, X-Api-Version"},{"key":"access-control-allow-methods","value":"GET,OPTIONS,PATCH,DELETE,POST,PUT"},{"key":"access-control-allow-origin","value":"*"},{"key":"cache-control","value":"public, max-age=0, must-revalidate"},{"key":"content-length","value":"168"},{"key":"date","value":"Wed, 29 Dec 2021 04:22:12 GMT"},{"key":"etag","value":"W/\"a8-hgiEbm5aIWxhTWIYRhcB4dxop7w\""},{"key":"age","value":"0"},{"key":"strict-transport-security","value":"max-age=63072000; includeSubDomains; preload"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Fetched Owner's details successfully\",\n    \"owner\": {\n        \"ownerId\": \"-your-owner-id-here-\",\n        \"origin\": \"https://test.com\",\n        \"subscriberCount\": 10\n    },\n    \"uptime\": \"0.815 sec\"\n}"},{"id":"5de286bd-96d3-4fe5-ab8a-5b4894155d9d","name":"Failure due to incorrect Owner ID","originalRequest":{"method":"GET","header":[{"key":"x-wpn-secret","value":"-your-secret-here-","type":"text"},{"key":"x-rapidapi-host","value":"web-push-notifications-server.p.rapidapi.com","type":"text"},{"key":"x-rapidapi-key","value":"-your-rapidapi-key-here-","type":"text"}],"url":"https://web-push-notifications-server.p.rapidapi.com/owner/-wrong-owner-id-"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Connection","value":"keep-alive"},{"key":"access-control-allow-credentials","value":"true"},{"key":"access-control-allow-headers","value":"X-WPN-Secret, X-CSRF-Token, X-Requested-With, Accept, Accept-Version, Content-Length, Content-MD5, Content-Type, Date, X-Api-Version"},{"key":"access-control-allow-methods","value":"GET,OPTIONS,PATCH,DELETE,POST,PUT"},{"key":"access-control-allow-origin","value":"*"},{"key":"cache-control","value":"public, max-age=0, must-revalidate"},{"key":"content-length","value":"107"},{"key":"date","value":"Wed, 29 Dec 2021 04:25:57 GMT"},{"key":"etag","value":"W/\"6b-iz64Qlw0uS+BGTaQSVFlH1iaHQg\""},{"key":"age","value":"0"},{"key":"strict-transport-security","value":"max-age=63072000; includeSubDomains; preload"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Owner with this -wrong-owner-id- ID not found\",\n    \"message\": \"Please provide valid Owner ID\"\n}"},{"id":"373056b9-4ef5-4016-b5eb-d0b9f74cbe09","name":"Failure due to incorrect Owner's Secret","originalRequest":{"method":"GET","header":[{"key":"x-wpn-secret","value":"-wrong-secret-","type":"text"},{"key":"x-rapidapi-host","value":"web-push-notifications-server.p.rapidapi.com","type":"text"},{"key":"x-rapidapi-key","value":"-your-rapidapi-key-here-","type":"text"}],"url":"https://web-push-notifications-server.p.rapidapi.com/owner/-your-owner-id-here-"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Connection","value":"keep-alive"},{"key":"access-control-allow-credentials","value":"true"},{"key":"access-control-allow-headers","value":"X-WPN-Secret, X-CSRF-Token, X-Requested-With, Accept, Accept-Version, Content-Length, Content-MD5, Content-Type, Date, X-Api-Version"},{"key":"access-control-allow-methods","value":"GET,OPTIONS,PATCH,DELETE,POST,PUT"},{"key":"access-control-allow-origin","value":"*"},{"key":"cache-control","value":"public, max-age=0, must-revalidate"},{"key":"content-length","value":"105"},{"key":"date","value":"Wed, 29 Dec 2021 04:24:18 GMT"},{"key":"etag","value":"W/\"69-+AValxPgJ9AkFIbZ0cRYTPNV4tc\""},{"key":"age","value":"0"},{"key":"strict-transport-security","value":"max-age=63072000; includeSubDomains; preload"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Provided secret is incorrect\",\n    \"message\": \"To access this endpoint provide valid Owner's secret\"\n}"}],"_postman_id":"e81c6edf-3b6c-4047-95ff-ad8e2273c684"},{"name":"Remove owner","id":"92046fbc-1051-4b32-bb12-3f0cce4d25dd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"x-wpn-secret","value":"-your-secret-here-","type":"text"},{"key":"x-rapidapi-host","value":"web-push-notifications-server.p.rapidapi.com","type":"text"},{"key":"x-rapidapi-key","value":"-your-rapidapi-key-here-","type":"text"}],"url":"https://web-push-notifications-server.p.rapidapi.com/owner/-your-owner-id-here-","description":"<p>Remove the owner &amp; delete all the subscribers.</p>\n","urlObject":{"path":["owner","-your-owner-id-here-"],"host":["https://web-push-notifications-server.p.rapidapi.com"],"query":[],"variable":[]}},"response":[{"id":"943f672d-c07e-44b7-aa39-8f5e0032e09e","name":"Successfully removed an Owner","originalRequest":{"method":"DELETE","header":[{"key":"x-wpn-secret","value":"-your-secret-here-","type":"text"},{"key":"x-rapidapi-host","value":"web-push-notifications-server.p.rapidapi.com","type":"text"},{"key":"x-rapidapi-key","value":"-your-rapidapi-key-here-","type":"text"}],"url":"https://web-push-notifications-server.p.rapidapi.com/owner/-your-owner-id-here-"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Connection","value":"keep-alive"},{"key":"access-control-allow-credentials","value":"true"},{"key":"access-control-allow-headers","value":"X-WPN-Secret, X-CSRF-Token, X-Requested-With, Accept, Accept-Version, Content-Length, Content-MD5, Content-Type, Date, X-Api-Version"},{"key":"access-control-allow-methods","value":"GET,OPTIONS,PATCH,DELETE,POST,PUT"},{"key":"access-control-allow-origin","value":"*"},{"key":"content-length","value":"259"},{"key":"date","value":"Wed, 29 Dec 2021 04:36:41 GMT"},{"key":"etag","value":"W/\"103-6BBfr3X4K5MjRv/2Bnkkyo8aEnM\""},{"key":"strict-transport-security","value":"max-age=63072000; includeSubDomains; preload"},{"key":"cache-control","value":"public, max-age=0, must-revalidate"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Owner successfully deleted\",\n    \"owner\": {\n        \"ownerId\": \"-your-owner-id-here-\",\n        \"origin\": \"https://test.com\",\n        \"secret\": \"-your-secret-here-\",\n        \"subscriberCount\": 10,\n        \"uptime\": \"0.999 sec\"\n    }\n}"},{"id":"2b2e8584-9914-4725-ac0e-5bef2ac42c30","name":"Failure due to incorrect Owner's Secret","originalRequest":{"method":"DELETE","header":[{"key":"x-wpn-secret","value":"-wrong-secret-","type":"text"},{"key":"x-rapidapi-host","value":"web-push-notifications-server.p.rapidapi.com","type":"text"},{"key":"x-rapidapi-key","value":"-your-rapidapi-key-here-","type":"text"}],"url":"https://web-push-notifications-server.p.rapidapi.com/owner/-your-owner-id-here-"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Connection","value":"keep-alive"},{"key":"access-control-allow-credentials","value":"true"},{"key":"access-control-allow-headers","value":"X-WPN-Secret, X-CSRF-Token, X-Requested-With, Accept, Accept-Version, Content-Length, Content-MD5, Content-Type, Date, X-Api-Version"},{"key":"access-control-allow-methods","value":"GET,OPTIONS,PATCH,DELETE,POST,PUT"},{"key":"access-control-allow-origin","value":"*"},{"key":"content-length","value":"105"},{"key":"date","value":"Wed, 29 Dec 2021 04:35:41 GMT"},{"key":"etag","value":"W/\"69-+AValxPgJ9AkFIbZ0cRYTPNV4tc\""},{"key":"strict-transport-security","value":"max-age=63072000; includeSubDomains; preload"},{"key":"cache-control","value":"public, max-age=0, must-revalidate"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Provided secret is incorrect\",\n    \"message\": \"To access this endpoint provide valid Owner's secret\"\n}"},{"id":"5924c838-0390-4ff7-b81e-06b031d83c49","name":"Failure due to incorrect Owner ID","originalRequest":{"method":"DELETE","header":[{"key":"x-wpn-secret","value":"-your-secret-here-","type":"text"},{"key":"x-rapidapi-host","value":"web-push-notifications-server.p.rapidapi.com","type":"text"},{"key":"x-rapidapi-key","value":"-your-rapidapi-key-here-","type":"text"}],"url":"https://web-push-notifications-server.p.rapidapi.com/owner/-wrong-owner-id-"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Connection","value":"keep-alive"},{"key":"access-control-allow-credentials","value":"true"},{"key":"access-control-allow-headers","value":"X-WPN-Secret, X-CSRF-Token, X-Requested-With, Accept, Accept-Version, Content-Length, Content-MD5, Content-Type, Date, X-Api-Version"},{"key":"access-control-allow-methods","value":"GET,OPTIONS,PATCH,DELETE,POST,PUT"},{"key":"access-control-allow-origin","value":"*"},{"key":"content-length","value":"107"},{"key":"date","value":"Wed, 29 Dec 2021 04:36:20 GMT"},{"key":"etag","value":"W/\"6b-teVZh23pUwABoyc+GFCMtvIhtGk\""},{"key":"strict-transport-security","value":"max-age=63072000; includeSubDomains; preload"},{"key":"cache-control","value":"public, max-age=0, must-revalidate"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Owner with this -wrong-owner-id- ID not found\",\n    \"message\": \"Please provide valid Owner ID\"\n}"}],"_postman_id":"92046fbc-1051-4b32-bb12-3f0cce4d25dd"},{"name":"Send push notifications","id":"18d49ecb-a19a-4581-a3c6-19c8d1881f00","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"x-wpn-secret","value":"-your-secret-here-","type":"text"},{"key":"x-rapidapi-host","value":"web-push-notifications-server.p.rapidapi.com","type":"text"},{"key":"x-rapidapi-key","value":"-your-rapidapi-key-here-","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"title\": \"Test 1\",\r\n    \"description\": \"Test Desc\",\r\n    \"icon\": \"https://dhyeythumar.github.io/web-push-notifications/logo512.png\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://web-push-notifications-server.p.rapidapi.com/owner/sendNotification/-your-owner-id-here-","description":"<p>Send push notifications to your website visitors.</p>\n","urlObject":{"path":["owner","sendNotification","-your-owner-id-here-"],"host":["https://web-push-notifications-server.p.rapidapi.com"],"query":[],"variable":[]}},"response":[{"id":"01b97e87-c23e-4fe9-b227-634a4a5786ed","name":"Successfully sent push notifications","originalRequest":{"method":"POST","header":[{"key":"x-wpn-secret","value":"-your-secret-here-","type":"text"},{"key":"x-rapidapi-host","value":"web-push-notifications-server.p.rapidapi.com","type":"text"},{"key":"x-rapidapi-key","value":"-your-rapidapi-key-here-","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"title\": \"Test 1\",\r\n    \"description\": \"Test Desc\",\r\n    \"icon\": \"https://dhyeythumar.github.io/web-push-notifications/logo512.png\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://web-push-notifications-server.p.rapidapi.com/owner/sendNotification/-your-owner-id-here-"},"status":"Accepted","code":202,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Connection","value":"keep-alive"},{"key":"access-control-allow-credentials","value":"true"},{"key":"access-control-allow-headers","value":"X-WPN-Secret, X-CSRF-Token, X-Requested-With, Accept, Accept-Version, Content-Length, Content-MD5, Content-Type, Date, X-Api-Version"},{"key":"access-control-allow-methods","value":"GET,OPTIONS,PATCH,DELETE,POST,PUT"},{"key":"access-control-allow-origin","value":"*"},{"key":"content-length","value":"254"},{"key":"date","value":"Wed, 29 Dec 2021 04:29:25 GMT"},{"key":"etag","value":"W/\"fe-T+POH+iwmbHmsFbdLDJgfa5H8ho\""},{"key":"strict-transport-security","value":"max-age=63072000; includeSubDomains; preload"},{"key":"cache-control","value":"public, max-age=0, must-revalidate"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Successfully queued your request of sending push notification to all your 10 subscribers. Note: All the client's browser giving status code other then 200 will be removed from your subscribers list!\",\n    \"uptime\": \"0.693 sec\"\n}"},{"id":"89f815cf-964f-4d0c-bf56-1a58e5280ead","name":"Warning for 0 subscribers","originalRequest":{"method":"POST","header":[{"key":"x-wpn-secret","value":"-your-secret-here-","type":"text"},{"key":"x-rapidapi-host","value":"web-push-notifications-server.p.rapidapi.com","type":"text"},{"key":"x-rapidapi-key","value":"-your-rapidapi-key-here-","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"title\": \"Test 1\",\r\n    \"description\": \"Test Desc\",\r\n    \"icon\": \"https://dhyeythumar.github.io/web-push-notifications/logo512.png\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://web-push-notifications-server.p.rapidapi.com/owner/sendNotification/-your-owner-id-here-"},"status":"Accepted","code":202,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Connection","value":"keep-alive"},{"key":"access-control-allow-credentials","value":"true"},{"key":"access-control-allow-headers","value":"X-WPN-Secret, X-CSRF-Token, X-Requested-With, Accept, Accept-Version, Content-Length, Content-MD5, Content-Type, Date, X-Api-Version"},{"key":"access-control-allow-methods","value":"GET,OPTIONS,PATCH,DELETE,POST,PUT"},{"key":"access-control-allow-origin","value":"*"},{"key":"content-length","value":"254"},{"key":"date","value":"Wed, 29 Dec 2021 04:29:25 GMT"},{"key":"etag","value":"W/\"fe-T+POH+iwmbHmsFbdLDJgfa5H8ho\""},{"key":"strict-transport-security","value":"max-age=63072000; includeSubDomains; preload"},{"key":"cache-control","value":"public, max-age=0, must-revalidate"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Zero subscribers!\",\n    \"message\": \"Executed successfully, but you don't have any subscribers & hence your ownership of origin is still temporary. Send subscription request from the your registered origin to verify ownership.\",\n    \"uptime\": \"0.693 sec\"\n}"},{"id":"0f53164c-2580-4414-a439-952ab7e45cee","name":"Failure due to incorrect Owner's Secret","originalRequest":{"method":"POST","header":[{"key":"x-wpn-secret","value":"-wrong-secret-","type":"text"},{"key":"x-rapidapi-host","value":"web-push-notifications-server.p.rapidapi.com","type":"text"},{"key":"x-rapidapi-key","value":"-your-rapidapi-key-here-","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"title\": \"Test 1\",\r\n    \"description\": \"Test Desc\",\r\n    \"icon\": \"https://dhyeythumar.github.io/web-push-notifications/logo512.png\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://web-push-notifications-server.p.rapidapi.com/owner/sendNotification/-your-owner-id-here-"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Connection","value":"keep-alive"},{"key":"access-control-allow-credentials","value":"true"},{"key":"access-control-allow-headers","value":"X-WPN-Secret, X-CSRF-Token, X-Requested-With, Accept, Accept-Version, Content-Length, Content-MD5, Content-Type, Date, X-Api-Version"},{"key":"access-control-allow-methods","value":"GET,OPTIONS,PATCH,DELETE,POST,PUT"},{"key":"access-control-allow-origin","value":"*"},{"key":"content-length","value":"105"},{"key":"date","value":"Wed, 29 Dec 2021 04:33:49 GMT"},{"key":"etag","value":"W/\"69-+AValxPgJ9AkFIbZ0cRYTPNV4tc\""},{"key":"strict-transport-security","value":"max-age=63072000; includeSubDomains; preload"},{"key":"cache-control","value":"public, max-age=0, must-revalidate"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Provided secret is incorrect\",\n    \"message\": \"To access this endpoint provide valid Owner's secret\"\n}"},{"id":"00c652c6-644f-4482-aea4-09be1c2b22ed","name":"Failure due to incorrect Owner ID","originalRequest":{"method":"POST","header":[{"key":"x-wpn-secret","value":"-your-secret-here-","type":"text"},{"key":"x-rapidapi-host","value":"web-push-notifications-server.p.rapidapi.com","type":"text"},{"key":"x-rapidapi-key","value":"-your-rapidapi-key-here-","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"title\": \"Test 1\",\r\n    \"description\": \"Test Desc\",\r\n    \"icon\": \"https://dhyeythumar.github.io/web-push-notifications/logo512.png\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://web-push-notifications-server.p.rapidapi.com/owner/sendNotification/-wrong-owner-id-"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Connection","value":"keep-alive"},{"key":"access-control-allow-credentials","value":"true"},{"key":"access-control-allow-headers","value":"X-WPN-Secret, X-CSRF-Token, X-Requested-With, Accept, Accept-Version, Content-Length, Content-MD5, Content-Type, Date, X-Api-Version"},{"key":"access-control-allow-methods","value":"GET,OPTIONS,PATCH,DELETE,POST,PUT"},{"key":"access-control-allow-origin","value":"*"},{"key":"content-length","value":"107"},{"key":"date","value":"Wed, 29 Dec 2021 04:34:21 GMT"},{"key":"strict-transport-security","value":"max-age=63072000; includeSubDomains; preload"},{"key":"cache-control","value":"public, max-age=0, must-revalidate"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Owner with this -wrong-owner-id- ID not found\",\n    \"message\": \"Please provide valid Owner ID\"\n}"},{"id":"9a745312-0ed6-4afc-aac3-68e0f9b04f9b","name":"Failure due to incorrect body","originalRequest":{"method":"POST","header":[{"key":"x-wpn-secret","value":"-your-secret-here-","type":"text"},{"key":"x-rapidapi-host","value":"web-push-notifications-server.p.rapidapi.com","type":"text"},{"key":"x-rapidapi-key","value":"-your-rapidapi-key-here-","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"title\": \"Test 1\",\r\n    \"description\": \"Test Desc\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://web-push-notifications-server.p.rapidapi.com/owner/sendNotification/-your-owner-id-here-"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Connection","value":"keep-alive"},{"key":"access-control-allow-credentials","value":"true"},{"key":"access-control-allow-headers","value":"X-WPN-Secret, X-CSRF-Token, X-Requested-With, Accept, Accept-Version, Content-Length, Content-MD5, Content-Type, Date, X-Api-Version"},{"key":"access-control-allow-methods","value":"GET,OPTIONS,PATCH,DELETE,POST,PUT"},{"key":"access-control-allow-origin","value":"*"},{"key":"content-length","value":"141"},{"key":"date","value":"Wed, 29 Dec 2021 05:12:23 GMT"},{"key":"etag","value":"W/\"8d-hNxMq+VBaZDdRCCRo9YJ1qAXEFM\""},{"key":"strict-transport-security","value":"max-age=63072000; includeSubDomains; preload"},{"key":"cache-control","value":"public, max-age=0, must-revalidate"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Body is missing some of the mandatory fields\",\n    \"message\": \"Please provide correct data to process the request\",\n    \"uptime\": \"2.365 sec\"\n}"}],"_postman_id":"18d49ecb-a19a-4581-a3c6-19c8d1881f00"},{"name":"Subscribe to push notifications","id":"b881bfd2-809b-4b58-8128-2b08ff22a25f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"subscription\": {\r\n        \"endpoint\": \"dummy endpoint\",\r\n        \"keys\": {\r\n            \"p256dh\": \"dummy data\",\r\n            \"auth\": \"dummy data\"\r\n        }\r\n    },\r\n    \"ownerId\": \"-your-owner-id-here-\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://web-push-notifications-server.vercel.app/api/subscribe","description":"<p>Register your web-based frontend application for push notifications.</p>\n","urlObject":{"path":["subscribe"],"host":["https://web-push-notifications-server.vercel.app/api"],"query":[],"variable":[]}},"response":[{"id":"091378ec-e9a3-4b13-a70c-c82336081f41","name":"Successfully subscribed to push notification","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"subscription\": {\r\n        \"endpoint\": \"dummy endpoint\",\r\n        \"keys\": {\r\n            \"p256dh\": \"dummy data\",\r\n            \"auth\": \"dummy data\"\r\n        }\r\n    },\r\n    \"ownerId\": \"-your-owner-id-here-\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://web-push-notifications-server.vercel.app/api/subscribe"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Connection","value":"keep-alive"},{"key":"access-control-allow-credentials","value":"true"},{"key":"access-control-allow-headers","value":"X-WPN-Secret, X-CSRF-Token, X-Requested-With, Accept, Accept-Version, Content-Length, Content-MD5, Content-Type, Date, X-Api-Version"},{"key":"access-control-allow-methods","value":"GET,OPTIONS,PATCH,DELETE,POST,PUT"},{"key":"access-control-allow-origin","value":"*"},{"key":"content-length","value":"59"},{"key":"date","value":"Wed, 29 Dec 2021 04:41:37 GMT"},{"key":"etag","value":"W/\"3b-fFh2dDj8c6+YJtV0dti5kSqON3c\""},{"key":"strict-transport-security","value":"max-age=63072000; includeSubDomains; preload"},{"key":"cache-control","value":"public, max-age=0, must-revalidate"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Successfully subscribed\",\n    \"uptime\": \"0.980 sec\"\n}"},{"id":"df885e02-07a8-4f1f-94d9-7deb7f1560c7","name":"Failure due to incorrect Owner ID","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"subscription\": {\r\n        \"endpoint\": \"dummy endpoint\",\r\n        \"keys\": {\r\n            \"p256dh\": \"dummy data\",\r\n            \"auth\": \"dummy data\"\r\n        }\r\n    },\r\n    \"ownerId\": \"-wrong-owner-id-\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://web-push-notifications-server.vercel.app/api/subscribe"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Connection","value":"keep-alive"},{"key":"access-control-allow-credentials","value":"true"},{"key":"access-control-allow-headers","value":"X-WPN-Secret, X-CSRF-Token, X-Requested-With, Accept, Accept-Version, Content-Length, Content-MD5, Content-Type, Date, X-Api-Version"},{"key":"access-control-allow-methods","value":"GET,OPTIONS,PATCH,DELETE,POST,PUT"},{"key":"access-control-allow-origin","value":"*"},{"key":"content-length","value":"128"},{"key":"date","value":"Wed, 29 Dec 2021 04:40:18 GMT"},{"key":"etag","value":"W/\"80-ioe2GnBHHb0mWj9R1VgtCKWbInU\""},{"key":"strict-transport-security","value":"max-age=63072000; includeSubDomains; preload"},{"key":"cache-control","value":"public, max-age=0, must-revalidate"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Owner with this -wrong-owner-id- ID not found\",\n    \"message\": \"Please provide valid Owner ID\",\n    \"uptime\": \"1.066 sec\"\n}"},{"id":"f4ee3928-7acf-4cfe-9b39-a7f9da232cfe","name":"Failure due to incorrect body","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"subscription\": {\r\n        \"endpoint\": \"dummy endpoint\"\r\n    },\r\n    \"ownerId\": \"-your-owner-id-here-\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://web-push-notifications-server.vercel.app/api/subscribe"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Connection","value":"keep-alive"},{"key":"access-control-allow-credentials","value":"true"},{"key":"access-control-allow-headers","value":"X-WPN-Secret, X-CSRF-Token, X-Requested-With, Accept, Accept-Version, Content-Length, Content-MD5, Content-Type, Date, X-Api-Version"},{"key":"access-control-allow-methods","value":"GET,OPTIONS,PATCH,DELETE,POST,PUT"},{"key":"access-control-allow-origin","value":"*"},{"key":"content-length","value":"142"},{"key":"date","value":"Wed, 29 Dec 2021 04:44:13 GMT"},{"key":"etag","value":"W/\"8e-otdxhqotwzYO1c/esAsbKYe+BwU\""},{"key":"strict-transport-security","value":"max-age=63072000; includeSubDomains; preload"},{"key":"cache-control","value":"public, max-age=0, must-revalidate"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Body is missing some of the mandatory fields\",\n    \"message\": \"Please provide correct data to process the request\",\n    \"uptime\": \"1.391 sec\"\n}"}],"_postman_id":"b881bfd2-809b-4b58-8128-2b08ff22a25f"}],"event":[{"listen":"prerequest","script":{"id":"5ebe4c32-de59-4c72-bfb6-d881f87af7f5","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"09b5bbae-d78f-4c9d-9433-413c4ea5b3d8","type":"text/javascript","exec":[""]}}],"variable":[{"key":"url","value":"https://web-push-notifications-server.p.rapidapi.com"},{"key":"vercel-url","value":"https://web-push-notifications-server.vercel.app/api"},{"key":"x-wpn-secret","value":"-your-secret-here-"},{"key":"wrong-x-wpn-secret","value":"-wrong-secret-"},{"key":"owner-id","value":"-your-owner-id-here-"},{"key":"wrong-owner-id","value":"-wrong-owner-id-"},{"key":"x-rapidapi-host","value":"web-push-notifications-server.p.rapidapi.com"},{"key":"x-rapidapi-key","value":"-your-rapidapi-key-here-"}]}