Add-ons
ROOK offers a variety of add-ons to enhance the integration experience. Some add-ons are activated by default, while others must be requested. Clients requiring additional functionality should contact their Account Manager.
Add-on | Additional Feature | Activated by Default |
---|---|---|
Time Zone | Ensures local time delivery | Yes |
Data Cleaning | Improves data accuracy | Yes |
Deactivate Granular Data | Optimizes data delivery | No |
Notification Webhook | Real-time integration notifications | No |
Callback URL Setup | Redirect users post-connection | No |
Connections Page | Simplifies user authorization | Yes (for sandbox) |
Pre-existing Data | Historical data retrieval | No |
Time Zone
The Time Zone add-on ensures that daily summary information is extracted and delivered based on each country’s local time zone. This add-on is activated by default in ROOKConnect. Additional details are available in the Data Extraction section.
Data Cleaning
The Data Cleaning add-on prioritizes and cleans health data from multiple sources for the same user, ensuring the delivery of accurate and comprehensive data structures. This feature is activated by default in ROOKConnect. For more details, visit the Data Processing section.
Deactivate Granular Data
The Deactivate Granular Data add-on omits detailed health metrics such as heart rate and blood pressure to reduce payload sizes. This optimization is particularly beneficial for clients with limited capacity to process large JSON files. The add-on is available upon request, and clients can contact their Account Manager for activation. Further details are provided in the Granular Data Exclusion section.
Notification Webhook
The Notification Webhook add-on delivers real-time updates about integration-specific actions, including user creation, data source connections, and failed notifications. This webhook does not deliver health data but provides essential updates to streamline monitoring and troubleshooting.
User Management Notifications
Notifications are triggered by actions such as:
- New user creation
- Data source connections or disconnections
- Failed data extractions
Example Notification for User Connection
{
"client_uuid": "123456789",
"user_id": "UserTest12345",
"data_source": "garmin",
"action": "user_connected",
"level": "info",
"message": "A new user has been successfully linked",
"action_datetime": "2024-06-03T19:10:43.419390",
"environment": "production"
}
For setup guidance, refer to the Data Delivery section.
Callback URL Setup
The Callback URL Setup add-on enables clients to define a redirect URL for users after completing data source authorization. This feature enhances user flow by guiding users back to the client’s app or another designated view.
Usage Example:
https://api.rook-connect.com/api/v1/client_uuid/123456789/user_id/UserTest12345/data_sources/authorizers?redirect_url=https://www.yourapp.com
For activation, contact the assigned Account Manager.
Connections Page
The Connections Page simplifies the user authorization process by presenting a pre-configured interface with buttons for supported data sources. While this tool is ideal for sandbox testing and rapid development, it is not recommended for production environments.
Key Features
- Pre-Configured Interface: Provides a dynamic view of supported data sources using the
/authorizers
endpoint. - Configuration in ROOK Portal: Allows adjustments to the displayed data sources and testing connectivity.
Production Considerations
For production environments, clients are advised to create a custom authorization interface by directly using the
/authorizers
endpoint. This endpoint returns:
- Data source details, including names, descriptions, and icons.
- Authorization URLs for user connections.
More information is available in the API documentation.
Pre-existing Data
The Pre-existing Data feature retrieves prior health data from users upon their initial connection. This includes up to:
- 7 days of pre-existing data for API-based sources.
- 29 days of pre-existing data for mobile-based sources via SDKs.
Key Benefits
- Immediate Insights: Pre-existing data enables instant analysis of user health metrics upon connection.
- ROOKScore Calculation: A ROOKScore is calculated for each day of extracted pre-existing data, resulting in up to 7 scores for API-based sources and up to 29 scores for SDK-based sources. These scores are delivered within 24 hours, ensuring all prior data is processed accurately.
- Seamless Integration: Pre-existing data is delivered through the Data Webhook, using the same JSON structure as summaries and events, ensuring compatibility with existing systems.
Important Notes
- Source-Specific Variations:
- Polar: Does not provide physical or body summaries in pre-existing data.
- Whoop: Returns the same body summary for the past seven days, reflecting the most recent data available.
- ROOKScore Calculation: Each extracted day of pre-existing data contributes to a separate ROOKScore, ensuring comprehensive scoring and insights.
For additional details about pre-existing data behavior across specific sources, visit the News Page.