Connecting Your API
Step-by-step guide to connecting your scheduling or HIMS system to Optimal Workforce.
This guide walks you through connecting your organization's scheduling or Home Health Information Management System (HIMS) to Optimal Workforce.
Why API Integration?
When you connect via API, Optimal Workforce handles all the data organization for you:
- Automatic aggregation - The platform pulls data from your HIMS and summarizes it into the aggregate metrics needed for monitoring and optimization
- No data formatting required - You don't need to prepare or transform any data
- Regular sync - Data updates automatically without manual uploads
- Privacy by design - Individual client and employee details stay in your HIMS; only aggregate counts flow to Optimal Workforce
This is the recommended approach for most organizations.
Before You Begin
To set up an API connection, you'll need:
- Admin access to Optimal Workforce
- API credentials from your HIMS provider (typically provided by your IT team or system administrator)
- 15-20 minutes to complete the setup wizard
If you don't have API credentials, contact your HIMS provider or IT department to request them.
Supported Systems
The platform supports API integration for most scheduling and HIMS systems. Current integrations include:
Systems Like AlayaCare
Full integration with scheduling and client management systems. The integration automatically aggregates:
- Client counts by geographic area
- Worker availability by region
- Visit volumes and service hours
- Geographic distribution data
What you'll need:
- API key from your HIMS provider
- Your organization's subdomain or identifier
Other Systems
Contact Optimal Workforce if your system isn't listed. We're continuously adding new integrations and can work with most APIs.
Setting Up the Connection
Step 1: Start the Connection Wizard
- Navigate to Data Sources from the sidebar
- Click Connect Data Source or Add Integration
- Select your HIMS provider from the list
Step 2: Enter Your Credentials
The wizard will prompt you for your API credentials:
- Enter your API Key or authentication token
- Enter your subdomain or organization identifier if required
- Click Test Connection to verify the credentials work
Tip: Copy and paste credentials directly from your HIMS to avoid typos.
If the connection test fails, double-check:
- The API key is correct and hasn't expired
- You have the right permissions in your HIMS
- Any firewall or network restrictions have been addressed
Step 3: Select Your Regions
After connecting, you'll see the regions (service areas) available in your HIMS:
- Review the list of available regions
- Select the regions you want to include in Optimal Workforce
- You can start with one region and add more later
Why select regions? Focusing on specific regions helps you start small and expand as you become comfortable with the platform.
Step 4: Preview Your Data
Before completing the setup, you can preview the aggregated data:
- Review the summary counts per region
- Verify the geographic areas look correct
- Note any missing or unexpected regions
If something doesn't look right, check your HIMS data or API permissions.
Step 5: Complete the Connection
- Click Complete Setup or Finish
- The initial data sync will begin
- You'll see a progress indicator while data is being aggregated
The initial sync typically takes a few minutes, depending on the size of your organization.
How Data Aggregation Works
When Optimal Workforce syncs with your HIMS, it:
- Pulls raw data - Retrieves scheduling and assignment information from your system
- Groups by geography - Organizes data by postal code or service area
- Calculates metrics - Counts clients, workers, visits, and other relevant totals
- Maps to regions - Associates each geographic area with your defined regions
The result is the aggregate dataset that powers monitoring dashboards and optimization.
What stays in your HIMS:
- Individual client names and records
- Employee personal information
- Clinical notes and care plans
- Billing and financial data
What flows to Optimal Workforce:
- Counts per geographic area (e.g., "M4A has 120 clients, 53 workers")
- Regional totals and distributions
- Aggregate metrics for optimization
After Connection
Once connected, your data will sync automatically:
- Sync frequency - Data is refreshed regularly (typically daily or more frequently)
- What syncs - Updated aggregate counts based on current assignments
- Incremental updates - Only changes since the last sync are processed
Managing Your Connection
Checking Connection Status
View your connection status on the Data Sources page:
- Connected - Data is syncing normally
- Error - There's an issue with the connection (see error message for details)
- Syncing - A data sync is currently in progress
Updating Credentials
If your API credentials change:
- Navigate to Data Sources
- Click on your connected integration
- Select Update Credentials
- Enter the new API key
- Test the connection and save
Adding More Regions
To add additional regions to your sync:
- Navigate to Data Sources
- Click on your connected integration
- Select Manage Regions
- Enable additional regions
- Save your changes
Disconnecting
If you need to disconnect your HIMS:
- Navigate to Data Sources
- Click on your connected integration
- Select Disconnect
- Confirm the disconnection
Note: Disconnecting will stop data syncing. Your existing data in Optimal Workforce will be preserved until you choose to delete it.
Troubleshooting
Connection Test Fails
"Invalid credentials" - Verify your API key is correct and hasn't expired. Request a new key from your HIMS provider if needed.
"Access denied" - Your API key may not have the required permissions. Contact your HIMS administrator.
"Connection timeout" - There may be a network issue. Try again, or check if your organization has firewall rules blocking the connection.
Data Not Appearing
If you've connected but don't see data:
- Check the sync status on the Data Sources page
- Verify you've selected at least one region
- Wait for the initial sync to complete
- Contact support if the issue persists
Metrics Look Incorrect
If the aggregated numbers don't match what you expect:
- Verify your HIMS data is up to date
- Check that your API key has access to all required data
- Review the region selection - you may need to add more regions
- Allow time for the sync to complete fully
Need Help?
If you encounter issues during setup:
- Review the troubleshooting steps above
- Contact Optimal Workforce support at support@optimalworkforce.com
- Include any error messages and screenshots to help us assist you quickly