API Guide: Activity Data
An overview of accessing the R1 Discover activity data via our API.
Introduction
This guide provides detailed instructions for integration partners on how to effectively access user activity data via our API endpoints. By following this guide, partners can ensure a seamless and efficient integration process, enabling them to create a comprehensive picture of user activity within the R1 Discover platform.
Prerequisites
Before beginning the integration process, ensure an R1 Discover Tech Partner account has been created, and you are able to generate your bearer token for authentication.
Detailed instructions on prerequisites can be found here: R1 API: Getting Started
Workflow Overview
Understanding the workflow of accessing the user activity data API endpoints is crucial for efficient integration. This section outlines the order in which the endpoints should be accessed to successfully gather user activity data.
Workflow Diagram:
Generate Bearer Token
Retrieve Core Company Data
Company List
Company User List
Company Topic List
Company Activity List
Access Activity Data
View Company Taken Activity List
View Company Taken Activity Cards
View Company Taken Questions & Answers
Step-by-Step Instructions
Generate Bearer Token
Instructions:
Log into R1 Discover Tech Partner Account.
Select the My Companies tab.
Click the Key icon to generate a token.
Copy the token to a secure location. Note that the token will no longer be visible once you leave the page.
Link to Documentation: Generate Bearer Token
Retrieve Company List
Instructions:
Use the Company List Endpoint to retrieve the list of companies and their IDs.
Make a GET request to
https://api.r1learning.com/api/v1/company-list/{page}/{limit}
.Include the Bearer token in the request headers.
Link to Documentation: Company List Endpoint
Retrieve Company Topic List
Instructions:
Use the Company Topic List Endpoint to retrieve the list of all topics available to a company.
Make a GET request to
https://api.r1learning.com/api/v1/company-topic-list
.Include the Bearer token in the request headers.
Link to Documentation: Company Topic List Endpoint
Retrieve Company Activity List
Instructions:
Use the Company Activity List Endpoint to retrieve the list of all activities available to a company.
Make a GET request to
https://api.r1learning.com/api/v1/company-activity-list
.Include the Bearer token in the request headers.
Link to Documentation: Company Activity List Endpoint
View Company Taken Activity List
Instructions:
Use the View Company Taken Activity List Endpoint to retrieve the list of all activities taken by users within a company.
Make a GET request to
https://api.r1learning.com/api/v1/view-company-taken-activity-details/{companyId}/{page}/{limit}/{maxDays?}
.Include the Bearer token in the request headers.
Link to Documentation: View Company Taken Activity List Endpoint
View Company Taken Activity Cards
Instructions:
Use the View Company Taken Activity Cards Endpoint to retrieve card results for all activities.
Make a GET request to
https://api.r1learning.com/api/v1/view-company-taken-activity-cards/{companyId}/{page}/{limit}/{maxDays?}
.Include the Bearer token in the request headers.
Link to Documentation: View Company Taken Activity Cards Endpoint
View Company Taken Questions & Answers
Instructions:
Use the View Company Taken Questions & Answers Endpoint to retrieve questions and answers results for all activities.
Make a GET request to
https://api.r1learning.com/api/v1/view-company-taken-activity-questions-answers/{companyId}/{page}/{limit}/{maxDays?}
.Include the Bearer token in the request headers.
Link to Documentation: View Company Taken Questions & Answers Endpoint
Last updated