> ## 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.

<Steps>
  <Step id="create-integration" title="Create the integration">
    In Nango ([free signup](https://app.nango.dev)), go to [Integrations](https://app.nango.dev/dev/integrations) -> *Configure New Integration* -> *Hubstaff*.
  </Step>

  <Step id="authorize" title="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.
  </Step>

  <Step id="call-api" title="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](/docs/reference/backend/http-api/api-keys), [integration ID](https://app.nango.dev/dev/integrations), and [connection ID](https://app.nango.dev/dev/connections):

    <Tabs>
      <Tab title="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>

      <Tab title="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);
        ```
      </Tab>
    </Tabs>

    Or fetch credentials with the [Node SDK](/docs/reference/sdks/node#get-a-connection-with-credentials) or [API](/docs/reference/api/connection/get).

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

  <Step id="implement-in-app" title="Implement Nango in your app">
    Follow our [Auth implementation guide](/docs/guides/primitives/auth) to integrate Nango in your app.

    To obtain your own production credentials, follow the setup guide linked below.
  </Step>
</Steps>

## 📚 Hubstaff integration guides

Nango-maintained guides for common use cases.

* [How to register your own Hubstaff OAuth app](/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 & actions for Hubstaff

Enable them in your dashboard. Extend and customize to fit your needs.

### Others

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

***
