When no native integration fits, Hubstaff offers four ways to reach your data: the REST API (v2), webhooks, a command-line tool and a read-only MCP server for AI assistants. This page collects the limits, the fields and what the developer docs leave out.
For the other Hubstaff connections, see the Hubstaff integrations overview.
What you need
- An organization on an active plan. API endpoints answer "API access is only for organizations on an active plan" otherwise.
- A personal access token or an OAuth app from the Hubstaff developer portal
- For the MCP server, an owner or manager to enable it, and an AI client such as Claude, ChatGPT or Codex CLI
How to start
- Create a personal access token in the developer portal, or register an OAuth app.
- Exchange the refresh token for an access token, which lasts 24 hours, and refresh it before it expires.
- Call the v2 endpoints. Hubstaff's API guide says v1 is deprecated, and every reference endpoint is under /v2/.
- For events, create a webhook instead of polling, and save the ID it returns.
API v2 can read and write users, activities, reports, tasks, integrations, job sites and more, according to Hubstaff's API guide.
Rate limits
| Limit | Value | Source |
|---|---|---|
| API requests | 120 per minute per access token across most endpoints; activities and screenshots are lower. Over the limit returns HTTP 429 with a Retry-After header | Developer portal, pagination and rate limits |
| Token refresh | 5 attempts per hour per refresh token; going over returns HTTP 400 with a rate_limit error | Developer portal, authentication |
| Access token life | 24 hours | Developer portal, authentication |
| Personal access token (refresh token) life | 90 days, reset to 90 days on every successful refresh; the old refresh token stops working | Developer portal, authentication |
| OAuth app refresh token life | 30 days, sliding | Developer portal, authentication |
| Organization access tokens | Never, 30, 60 or 90 days, chosen at creation | Developer portal, authentication |
| Request timeout | 30 seconds | API Evangelist profile, third party, July 2026 |
| Higher rate limit | Email support@hubstaff.com with your use case. The help center says increases are generally reserved for Enterprise organizations with a demonstrated need | Developer portal; API FAQ |
Each response carries X-Rate-Limit-Limit, X-Rate-Limit-Remaining and X-Rate-Limit-Reset headers. Hubstaff's advice for staying under the limit is to use page_limit 500, cache members and projects, use the daily activities endpoints instead of raw activities, use webhooks instead of polling, and wait for the Retry-After header before retrying.
1,000 an hour or 120 a minute?
Hubstaff's API FAQ says the default limit is 1,000 requests per hour, per app, and to email api@hubstaff.com for more. The developer portal's rate-limit page says 120 requests per minute per access token, lower on heavy endpoints, and to email support@hubstaff.com. We follow the developer portal, because it is the API's own reference, but read the X-Rate-Limit headers on your first calls to see which applies to you.
What happens in Hubstaff: time entries and activities
The API reference documents one time entry endpoint, Create time entry, and it lists request fields only. It shows no full time entry object, so there is no documented field that links a time entry to an external item. Tracked time is otherwise read from activity records, and external IDs live on tasks. Hubstaff's FAQ adds that there is no endpoint that returns tracked time as start and stop sessions; use daily activities for totals. All timestamps are in UTC.
Data that moves
Time entry request fields, POST /v2/users/{user_id}/time_entries:
| Field | Type | Required | Meaning |
|---|---|---|---|
project_id | integer | Yes | Project the time belongs to |
start_time | string | Yes | Start time in ISO 8601 |
tracked | integer | Yes | Seconds tracked |
task_id | integer | No | Task the time belongs to |
billable | boolean | No | Defaults to the project setting |
note | string | Required by default | Reason for the entry. The Require Reason setting can make it optional |
- Not synced: manual entries that need approval cannot be added through the API. Tasks in a project connected to Hubstaff Tasks or a third-party tool such as Asana, Trello or Jira cannot be created, updated or deleted through the API (error 11000, "Can not create a task for a project with a task integration"); they can still be read.
- Direction: read and write through the API; read-only through MCP; outbound events through webhooks.
- Edits: only simple to-dos can be updated or deleted through the API. Activity records carry immutable and timesheet_locked flags; what they block through the API is not documented.
- Timing: organization activity data may be delayed up to 20 minutes. Activity queries cover up to 7 days per request and go back 6 months; daily activities cover up to 31 days per request and go back 3 years.
- Who is matched: everything is keyed by Hubstaff IDs (user_id, project_id, task_id).
- Role and plan: an active plan for the API. Higher rate limits are generally reserved for Enterprise.
- Duplicates: not documented for time entries; test before you backfill.
API fields
Activity records
| Field | Meaning |
|---|---|
id, date, created_at, updated_at | Record ID, organization date and timestamps |
time_slot, starts_at | The 10-minute slot and when tracking started inside it |
user_id, project_id, task_id | Who, which project and which task |
tracked | Total seconds worked |
keyboard, mouse, overall | Seconds of keyboard, mouse and either input |
input_tracked, tracks_input | Seconds worked with input tracking, and whether the source tracked input |
location_type | Remote, on-site or unknown |
billable, paid | Billable and paid flags |
client_invoiced, team_invoiced | Invoiced to the client, invoiced for the team member |
immutable | Locked against changes |
timesheet_id, timesheet_locked | Timesheet link and whether a timesheet locks the record |
time_type, client | Type of activity and the client it came from |
Task fields that link to another tool
| Field | Meaning |
|---|---|
integration_id | ID of the integration the task belongs to |
remote_id | ID of the task in the external system |
remote_alternate_id | Secondary ID in the external system |
lock_version | Concurrency control value, used when updating a task or its metadata |
global_todo_id | Related Global To-Do |
metadata | Custom key-value data on the task. Set it with the update_metadata endpoint |
Tasks in projects connected to a third-party tool must be created in that tool. The reference does not say which external field each integration puts in remote_id or remote_alternate_id.
Webhooks
Webhooks let Hubstaff notify your app when supported events happen. The Webhooks page lists 21 events. You can subscribe to chosen events or to all of them with an asterisk.
| Event | Meaning |
|---|---|
timer.start, timer.stop | Tracking started or stopped |
project.create, client.create | Project or client created |
task.create, task.assign, task.unassign | Task created, assigned or unassigned |
schedule.create, schedule.update, schedule.delete | Schedule changes |
shift.ontime, shift.early, shift.late, shift.missed, shift.abandoned | Shift start outcome |
work_break.create | Break started |
activity.create, activity.update, activity.delete | Activity changes, available on request |
idle_time.start | Idle time started, beta |
billing.occupied_seats | Occupied seats snapshot, up to the previous UTC day |
- Payload: every delivery has id, event, created_at and payload. Only timer.start has documented payload fields: organization_id, project_id, project_name, task_id, user_id, user_name and tracking_started_at.
- Scope: the organization, one project or the current user. No event-level filters are documented. Creating, activating and deleting needs the hubstaff:write scope; reading needs hubstaff:read.
- Setup: create the webhook with events and target_url. Within about 15 seconds Hubstaff sends a verification ping with an X-Hook-Secret header; return 200 and echo it, then activate the webhook with that secret. Check each delivery with the X-Hook-Signature header, an HMAC-SHA256 of the raw body.
- Failures: 5xx responses, timeouts and connection errors are retried. A persistent 404 or 410, or a failed verification ping, disables the webhook, and a disabled webhook has to be deleted and recreated.
Save the webhook ID
Hubstaff has no endpoint to list existing webhooks. The reference offers create (per scope), get, delete and activate only, so keep the ID returned when you create one. You need it to update or delete the webhook later.
Hubstaff CLI
Hubstaff announced its command-line tool on July 24, 2026. It wraps the public API and builds its command list from the API's own schema each time it runs. Hubstaff's CLI help article says it supports both read and write requests, depending on the endpoint and your permissions. You need a Hubstaff account and a personal access token from the developer portal. Install it with Homebrew, a shell installer or a PowerShell command, then run the set-pat config command to store your token.
Hubstaff MCP server
The Hubstaff MCP server lets an AI assistant read your organization, members, projects, tasks, daily activity summaries and detailed time and activity data. It is read-only: connected apps cannot create, change or delete anything, and they can only see what your Hubstaff account can access. For writes, use the API.
- An owner or manager opens Settings, then Integrations, finds Hubstaff MCP and clicks Set up.
- In the Claude app, open Customize, then Connectors, click +, search for Hubstaff and click Connect. On Claude Team and Enterprise, a Claude owner has to add Hubstaff under Organization settings, then Connectors, first.
- In Claude Code, run
claude mcp add --transport http hubstaff https://mcp.hubstaff.com/. In Codex CLI, runcodex mcp add hubstaff --url https://mcp.hubstaff.com/. - In ChatGPT, install the Hubstaff plugin; on Enterprise and Edu workspaces an admin approves it first. Other MCP clients use the remote server URL
https://mcp.hubstaff.com/. - Each member signs in with their own Hubstaff account.
Who can use the MCP server
When we first researched this page, a search snippet of Hubstaff's MCP article said owners and managers, while the page text said any member. On November 28, 2026 the article said owners and managers enable it, and "any organization member" can use it once the connector is available in their AI workspace. We follow the live article. Hubstaff's MCP page also names Gemini, which the help article does not cover. Neither page lists the server's tools or a plan requirement. Several unofficial Hubstaff MCP servers also exist on community directories; they ask for a personal access token, and we have not reviewed them.
Importing projects and members
Hubstaff documents two importers, both run from the web app. You get an email when processing ends, which usually takes about a minute. The pages mention CSV, XLS and XLSX files, but the steps describe CSV.
Project import
| Column | Maps to | Values |
|---|---|---|
| Name | Project name | Free text |
| Billable? (Yes/No) | Whether the project is billable | Yes or No |
| Record activity? (Yes/No) | Whether activity is recorded | Yes or No |
Member import
| Column | Maps to | Values |
|---|---|---|
| Name | Member name | Text |
| Where the invitation goes | Email address | |
| Role | Member role | User or Manager |
| Teams | Existing teams | Comma-separated names. New teams are not created |
| Projects | Existing projects | Comma-separated names. New projects are not created |
| Require timesheet approval | Approval setting | Yes or No |
| Hourly Pay rate | Pay rate | Number, currency not specified |
| Pay period | Pay period | None, Weekly, Twice per month, Bi-weekly or Monthly |
Imported members get an invitation and must accept it. Creating accounts without an invitation needs the Account Provisioning feature on the Enterprise plan. We found no Hubstaff importer for time entries, tasks or another tracker's export.
Which source we used
Rate limits, tokens, webhooks and fields come from the Hubstaff developer portal, which shows no page dates, re-checked on November 28, 2026. The API FAQ, MCP article and member import article were re-read the same day. The API guide, the CLI help article and the project import article were read on November 2, 2026; they rate-limited our re-check, so the v1 deprecation, CLI install steps and project columns are from that first reading. We did not call the API or connect the MCP server ourselves.
What Hubstaff's developer docs do not say
| Area | Not documented | How to check it |
|---|---|---|
| Time entry | The full time entry object; the reference shows only the create request | Create an entry on a test account and read it back through the activity endpoints. |
| Tasks | Which external field each integration stores in remote_id and remote_alternate_id | Read a synced task through the tasks endpoint and compare it with the source item. |
| Tasks | Allowed values of project_type and status in the task object | List tasks with each filter value and note the results. |
| Tasks | What lock_version means in practice | Update a simple to-do twice and observe the value. |
| Rate limits | The exact lower limits for activities and screenshots | Read the X-Rate-Limit-Limit header on those endpoints. |
| Webhooks | Payload fields for every event except timer.start | Create a test webhook for each event you need and log the first delivery. |
| Webhooks | Event-level filters, such as one project inside an organization | Create a project-scoped webhook and compare it with an organization one. |
| Webhooks | The full webhook object returned by get | Call get on a test webhook and record the response. |
| Webhooks | Whether the activity events are available on your account | Ask Hubstaff support before you build on them. |
| MCP | The number and names of the tools the server exposes | Connect it in a test workspace and list its tools. |
| Importers | Required columns, who can import, and which plan the project import needs | Import a file with one column blank, as a manager. |
| Importers | Row and file limits, failed-row and duplicate handling | Import a file with a duplicate and an invalid row. |
| Importers | Any importer for time entries, tasks or another tracker’s export | Search the help center again; we found none on November 28, 2026. |
Sources
- Hubstaff developer portal: pagination and rate limits, read November 28, 2026
- Hubstaff developer portal: authentication, read November 28, 2026
- Hubstaff API reference: time entries, activities, tasks, webhooks, re-checked November 28, 2026
- Hubstaff developer portal: Webhooks, re-checked November 28, 2026
- Hubstaff help: API FAQ, re-checked November 28, 2026
- Hubstaff help: time tracking API, read November 2, 2026
- Hubstaff help: Hubstaff MCP Server, re-checked November 28, 2026
- Hubstaff: MCP, read November 28, 2026
- Hubstaff blog: Hubstaff CLI and AI-ready API, July 24, 2026
- Hubstaff help: using the Hubstaff CLI, read November 2, 2026
- Hubstaff help: import projects, read November 2, 2026
- Hubstaff help: import members, re-checked November 28, 2026
- API Evangelist: Hubstaff rate limits, third party, July 2026
