Postman Collection for Services developers
The Core Journey Postman Collection is designed to explain how to construct and use queries through the Analysis Query API.
Postman Collection: cxi-query-api-examples.postman_collection.json
- Examples of Core Journey Analysis Query API calls
- The Postman Collection is designed to explain how to construct and use queries through the Analysis Query API.
- API Calls will only show a result if you have created data sets of the type journey visualization with assigned data points as stages of the journey. All query results contain a maximum output of 20 results.
- Get OAuth Token: Gets the bearer token with your connection settings stored in the variables. Needed for the other queries to be executed against Core Journey Analysis Query API.
- Query - Journey Ids: Shows the use of a simple SQL Statement with a Group By clause. Provides a list of Journey Ids as output.
- Query – Journey Stage Details: Shows the use of a simple SQL Statement with multiple columns. Provides a list of journey stages with its assigned journey Id, journey name, stage order number, stage Id, and stage name.
- Query – Journey Stage Count: Shows the use of a simple SQL Statement on a different table. Provides the number of events received at a each stage of journeys.
- Query – Complex Scan – Max: Shows the use of the function Max() in an SQL Statement. Provides the maximum number of events (stagecount) received in a any stage of a journey.
- Query – Complex Scan – Sum: Shows the use of the function Sum() in an SQL Statement. Provides the sum number of all events received in a journey.
- Variables customer needs to set correctly:
- otdsAuthBaseUrl: https://otdsauth.ot2.opentext.com - change for other datacenters
- cxiRestApiBaseUrl: https://experiencecenterapi.ot2.opentext.com - change for other datacenters
- cxiQueryUrl: /api/v1/bd/analyses/query - don't change
- tenantId: use your Core Journey Tenant ID
- clientId: use your generated Client ID
- clientSecret: use the respective secret for your Client ID