> ## Documentation Index
> Fetch the complete documentation index at: https://nango.dev/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Hubstaff

> Integrate your application with the Hubstaff API

## 🚀 Quickstart

Connect to Hubstaff with Nango and see data flow in 2 minutes.

**1. Create the integration**

In Nango ([free signup](https://app.nango.dev)), go to [Integrations](https://app.nango.dev/dev/integrations) -> *Configure New Integration* -> *Hubstaff*.

> [!NOTE]
>
> Nango has a [Nango-managed OAuth app](https://nango.dev/docs/guides/auth/auth-guide.md#nango-managed-oauth-apps) you can use in development and production. Select it when you create the integration.

**2. Authorize Hubstaff**

Go to [Connections](https://app.nango.dev/dev/connections) -> *Add Test Connection* -> *Authorize*, then log in to Hubstaff and grant access. Later, you'll let your users do the same directly from your app.

**3. Call the Hubstaff API**

Let's make your first request to the Hubstaff API (get the authenticated user). Replace the placeholders below with your [Environment API key](https://nango.dev/docs/reference/backend/http-api/api-keys.md), [integration ID](https://app.nango.dev/dev/integrations), and [connection ID](https://app.nango.dev/dev/connections):

> [tab] cURL
>
> ```bash theme={null}
> curl "https://api.nango.dev/proxy/v2/users/me" \
>   -H "Authorization: Bearer <NANGO-API-KEY>" \
>   -H "Provider-Config-Key: <INTEGRATION-ID>" \
>   -H "Connection-Id: <CONNECTION-ID>"
> ```

> [tab] Node
>
> Install Nango's backend SDK with `npm i @nangohq/node`. Then run:
>
> ```typescript theme={null}
> import { Nango } from '@nangohq/node';
>
> const nango = new Nango({ apiKey: '<NANGO-API-KEY>' });
>
> const res = await nango.get({
>     endpoint: '/v2/users/me',
>     providerConfigKey: '<INTEGRATION-ID>',
>     connectionId: '<CONNECTION-ID>'
> });
>
> console.log(res.data);
> ```

Or fetch credentials with the [Node SDK](https://nango.dev/docs/reference/backend/backend-sdk/node.md#get-a-connection-with-credentials) or [API](https://nango.dev/docs/reference/backend/http-api/connections/get.md).

✅ You're connected! Check the [Logs](https://app.nango.dev/dev/logs) tab in Nango to inspect requests.

**4. Implement Nango in your app**

Follow our [Auth implementation guide](https://nango.dev/docs/guides/primitives/auth.md) to integrate Nango in your app.

To use your own OAuth app instead of the Nango-managed one, follow the setup guide linked below.

## 📚 Hubstaff integration guides

Nango-maintained guides for common use cases.

* [How to register your own Hubstaff OAuth app](https://nango.dev/docs/api-integrations/hubstaff/how-to-register-your-own-hubstaff-oauth-app)
  Obtain OAuth credentials from Hubstaff and whitelist the Nango callback URL

Official docs: [Hubstaff Developer Portal](https://developer.hubstaff.com/)

## 🧩 Pre-built syncs & tools for Hubstaff

Explore Nango-provided tools in your dashboard. Extend and customize them to fit your needs.

### Others

| Function name | Description | Type |
| - | - | - |
| `create-client` | Create a new client in an organization. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `create-project` | Create a new project in an organization. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `create-task` | Create a new task in a project. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `create-time-entry` | Manually log tracked time for a user against a project | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `delete-task` | Delete (soft-delete) a task | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `get-client` | Get a single client by id. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `get-current-user` | Get the profile of the user this connection authenticates as. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `get-project` | Get a single project by id. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `get-task` | Get a single task by id. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `list-activities` | List tracked-time activity records for an organization within a date range. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `list-clients` | List clients in an organization. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `list-notes` | List notes attached to tracked time, within a date range. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `list-organization-members` | List members of an organization, with their role and membership status. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `list-organizations` | List organizations this account belongs to. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `list-projects` | List projects in an organization. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `list-screenshots` | List screenshots captured during tracked time, within a date range. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `list-tasks` | List tasks in a project. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `list-teams` | List teams within an organization. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `update-client` | Update a client's details, or archive it by setting status. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `update-project` | Update a project's name, or archive it by setting status. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `update-task` | Update a task's summary or other fields. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `activities` | Sync tracked-time activity records (10-minute slots) across all organizations this connection can access. | [Sync](https://nango.dev/docs/guides/functions/syncs/sync-functions.md) |
| `clients` | Sync clients across all organizations. | [Sync](https://nango.dev/docs/guides/functions/syncs/sync-functions.md) |
| `projects` | Sync projects across all organizations this connection can access. | [Sync](https://nango.dev/docs/guides/functions/syncs/sync-functions.md) |
| `tasks` | Sync tasks across all projects | [Sync](https://nango.dev/docs/guides/functions/syncs/sync-functions.md) |

***


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.