5 minutes
Hubstaff Deep Link Support
Hubstaff supports deep links, making it easy to add hyperlinks to your website that trigger specific actions directly in the Hubstaff timer app.
This capability allows for seamless integration between your web platform and Hubstaff, enhancing user efficiency by automating timer-related tasks through customized link triggers.
Starting the timer via deep links
You can start the timer using deep links with the following variations:
Starting the timer for a project
Below is a sample URL that starts the timer for a project via a link on your website:
hubstaff://start-timer?projectId=1496878
Where hubstaff://start-timer is the command and projectID=1496878 is the project the user will be tracking time to.
How to get the project ID
To get the project ID for a specific project, follow these steps:
Step 1
Navigate to Project management > Projects.
Step 2
Click on a project to open the project details.
Alternatively, you can hover over the project name and check the project ID shown at the bottom left hand side of the webpage. In this case, the Admin project is assigned to the project ID 1496878.
Step 3
When the project page is open, the URL will display the project ID as the numerical value. In this instance, the Admin project has a project ID of 1496878.
Starting the timer for a specific task
Use the URL below to start the timer for a task via a link on your website:
hubstaff://start-timer?taskId=647832
Where hubstaff://start-timer is the command, and taskID=647832 is the task the user will be tracking time to.
How to get the taskId
To get the taskId, follow these steps:
Step 1
Navigate to Project management > Tasks.
Step 2
Make sure you are on the List view, hover over the task name, then check the URL at the bottom-left hand side of the page. The numerical value will be your taskId.
In this example, 149829249 is the taskId.
Stopping the timer via deep links
To stop the timer, use the code below:
hubstaff://stop-timer
FAQs
Does this work on mobile and browser applications?
No. This feature is only available via the desktop applications.
Does the app need to be open for the links to work?
No. The app will automatically open when you click on a deep link. If you haven’t logged in/authenticated, the sign in page will appear.