Connect to Genesys Cloud Notifications Using Postman
Postman expanded its functionality in May 2021 to include support for WebSocket connections. This advancement allows developers to interact with services that utilize real-time communication protocols. In this tutorial, we will explore how to take advantage of this new feature to connect to Genesys Cloud Notifications. We will cover the necessary steps to establish a WebSocket connection and receive real-time updates from Genesys Cloud directly within Postman.
Below are the steps to connect to Genesys Cloud Notifications using Postman.
POST https://api.{{environment}}/api/v2/notifications/channels — This will return a websocket URI and channelId
Create a new WebSockets Request in Postman — Use the websocket URI from step 1 to connect
POST https://api.{{environment}}/api/v2/notifications/channels/:channelId
/subscriptions — Use the channelId from step 1 and add topics on the request body in the form of a string array e.g. [“topic1”, “topic2”].
For a list of available topics, request GET https://api.{{environment}}/api/v2
/notifications/availabletopics