Skip to content
Hubstaff logo

Connectors / Human resources · HTTP Connector

Hubstaff integration and API

Create a project, create a task and create a client in Hubstaff, and start a workflow when Hubstaff sends “Timer started”.

What can you do with Hubstaff on Tray.ai?

Hubstaff is a time tracking and workforce management tool that records hours, activity, schedules and time off for remote and field teams. Tray.ai connects to Hubstaff through the HTTP Connector, so your workflows can call the Hubstaff API alongside the rest of your stack.

  • When Hubstaff sends “Shift missed”, alert the team lead in your team chat.
  • Create a project when a new engagement starts in your project tracker so hours are tracked from day one.
  • Create a client when a deal closes in your CRM.
Connects through
HTTP Connector
Authentication
OAuth 2.0 or a bearer token
Base URL
https://api.hubstaff.com

Set it up

Connect Hubstaff to Tray.ai

Each step uses Hubstaff's own API details, from its documentation.

Sign in to Hubstaff with OAuth 2.0

Set up an OAuth 2.0 authentication with the client ID and secret of an OAuth app you register with Hubstaff. Sign in once and every step reads the token from there.

Point the HTTP Client at the API

Add an HTTP Client step and use https://api.hubstaff.com as the base URL. Or paste a cURL example from Hubstaff's API docs, and Tray.ai fills in the method, URL, and headers.

Start with “List projects”

It's one of 20 documented actions, under Projects. The response comes back as data the next step can map into your other apps.

Start workflows from Hubstaff events

Give Hubstaff the URL of a Tray.ai webhook trigger. “Timer started” can then start a workflow, and so can 7 other events.

Workflows to build with Hubstaff

Connect Hubstaff with Salesforce, Jira and Slack

Each one uses actions and events from Hubstaff's own API documentation.

Create Hubstaff projects from won Salesforce deals

When

A deal closes in Salesforce

Then

  1. Create a client for the account
  2. Create a project with the deal name

With Salesforce

Create Hubstaff tasks from Jira issues

When

An issue is assigned in Jira

Then

  1. List projects to find the matching project
  2. Create a task with the issue title and assignee

With Jira

Alert managers in Slack when a Hubstaff shift is missed

When

Shift missed

Then

  1. List organization members to find the member's details
  2. Post the member and shift time to the managers channel in Slack

With Slack

Apps you can build on Hubstaff data

Internal tools your team can build with an AI assistant, each one using Hubstaff calls from its API documentation.

Time off approval board

Lists time off requests by member and lets a manager approve or change each request.

Client hours report

Shows timesheets by project and client so account leads can check billable hours.

Missed shift log

Records missed shifts as they happen with the member involved so supervisors can follow up.

Give your AI agents Hubstaff tools

Build an MCP server on Hubstaff in Agent Gateway and choose which actions your agents can call. Every call runs with access control and an audit trail. How Agent Gateway works

  • List projects
  • List tasks
  • List organization members
  • List clients
  • List time off requests
  • Create a time entry
  • Create a project
  • Get a project

What the Hubstaff API covers

6 resources and 20 documented actions, each one a call the HTTP Connector can make from a Tray.ai workflow. Connecting it takes a few clicks: here's how.

Projects

  • List projects
  • Create a project
  • Get a project
  • Update a project

Tasks

  • List tasks
  • Create a task
  • Update a task
  • Delete a task

Members

  • List organization members
  • Add members
  • Update organization members

Clients

  • List clients
  • Create a client
  • Update a client

Time off requests

  • List time off requests
  • Create a time off request
  • Update a time off request
  • Delete a time off request

Time entries

  • Create a time entry
  • List timesheets

Events Hubstaff can send to a Tray.ai webhook trigger

  • Timer started
  • Timer stopped
  • Project created
  • Client created
  • Task created
  • Task assigned
  • Schedule created
  • Shift missed

Checked against Hubstaff's own documentation on 2026-10-22

developer.hubstaff.com

Frequently asked questions

What can a Tray.ai workflow do in Hubstaff?

The Hubstaff API documents 20 actions across 6 resources (Projects, Tasks, Members, Clients, Time off requests, Time entries). For example: List projects; List tasks; List organization members. A workflow can make any documented call through the HTTP Connector.

How does Tray.ai authenticate with Hubstaff?

The Hubstaff API uses OAuth 2.0 and a bearer token. You save it once as a Tray.ai authentication, and the HTTP Connector adds it to every request.

Which Hubstaff events can start a Tray.ai workflow?

Hubstaff sends 8 events to a webhook URL, for example: Timer started; Timer stopped; Project created; Client created; Task created; Task assigned; Schedule created; Shift missed. A Tray.ai webhook trigger receives them and starts a workflow.

See Hubstaff working against your stack.

We'll walk through a tailored demo with your systems plugged in.

Great, a couple more details

This helps us connect you with the right person. Optional, and you can skip it.