Journeys API
Introduction to Journeys API
Journeys API is currently in beta. Expect changes, an experience that improves (and sometimes breaks!), and a team dedicated to taking your feedback to build the best API for personalization.
Overview
Journeys helps you retrieve your end user’s search and social journeys (collections of user interactions - read more here[ADD LINK] from Fabric’s supported integrations on an ongoing basis.
Currently, you can call the Journeys Endpoint to refresh user journeys being used in your application. Over time, we will add support for you to keep Journeys up-to-date with webhooks.
Journeys data includes a textual description of user interactions, the topics associated with the journey, and the timestamp of the journey. Journeys can be filtered by textual context (e.g. “fashion”) or time horizon. You can also specify the number of journeys that you would like to fetch by passing in the top_K parameter. Journeys is accessible in the playground.
For more details, see the Journeys API reference.
Integration
-
Use Fabric Link to create a linked user: On the client-side, you need to use Fabric Link to seek user consent to access their data. You can do this by creating a special URL for each user in the playground or integrate Fabric Link in your application. Refer to the Fabric Link section of these docs for more information on using Fabric Link.
-
Create a method to call the Journeys Endpoint: create a method to call the Journeys Endpoint, specifying parameters such as the user id, number of records to return (topK), context query, and date range.
-
Create a method to periodically update Journeys: Over time, we will add support for you to keep Journeys up-to-date with webhooks. For now, you will have to create a method that periodically fetches journeys beginning at the end of the last date range you used to previously fetch journeys.
For more details, refer to Journeys API reference.