Postman Collection for SaaS extension developers

The Core Journey Postman Collection for SaaS extension developers "cxi-query-api-examples-ocp-gcp.postman_collection.json" is designed to explain how to construct and use queries through the Analysis Query API.

Prerequisite: In Admin Center, the Organization or Tenant Administrator has created an Extension Application for "Core Journey" and received the confidential credentials: client_id, client_secret, which will be needed for authentication against the API.

  • 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: Authenticates and gets the access token using your connection settings stored in the variables.
      Needed for the other queries to be executed against 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 for the Journey Service Environment, customers need to set correctly:
    • api_host: ca.api.opentext.com - change for other regions
    • journey_url: https://{{api_host}}/journey - don't change
    • auth_url: https://{{api_host}} - don't change
    • tenant_id: use your Core Journey Tenant ID
    • ext_journey_app_confclient_id: use the value of confidential credentials - client_id from the Extending App Details Form in Admin Center
    • ext_journey_app_confclient_secret: use the value of confidential credentials - client_secret from the Extending App Details Form in Admin Center
    • journey_id: use one of the results from Query - Journey Ids to show journey details in further queries.