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

# BambooHR (Basic Auth)

> Access the BambooHR API in 2 minutes 💨

> [tab] 🚀 Quickstart
>
> **1. Create an integration**
>
> In Nango ([free signup](https://app.nango.dev)), go to [Integrations](https://app.nango.dev/dev/integrations) -> *Configure New Integration* -> *BambooHR (Basic Auth)*.
>
> **2. Authorize BambooHR**
>
> Go to [Connections](https://app.nango.dev/dev/connections) -> *Add Test Connection* -> *Authorize*, then enter your BambooHR API key and Subdomain. Later, you'll let your users do the same directly from your app.
>
> **3. Call the BambooHR API**
>
> Let's make your first request to the BambooHR API (fetch employees information). 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 -X POST "https://api.nango.dev/proxy/v1/reports/custom?format=JSON" \
> >   -H "Authorization: Bearer <NANGO-API-KEY>" \
> >   -H "Provider-Config-Key: <INTEGRATION-ID>" \
> >   -H "Connection-Id: <CONNECTION-ID>" \
> >   -H "Content-Type: application/json" \
> >   -d '{
> >       "title": "Current Employees",
> >       "fields": [
> >           "id",
> >           "employeeNumber",
> >           "firstName",
> >           "lastName",
> >           "dateOfBirth",
> >           "address1",
> >           "bestEmail"
> >       ]
> >     }'
> > ```
>
> > [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.post({
> >     endpoint: '/v1/reports/custom',
> >     params: {
> >         format: 'JSON'
> >     },
> >     providerConfigKey: '<INTEGRATION-ID>',
> >     connectionId: '<CONNECTION-ID>',
> >     data: {
> >         "title": "Current Employees",
> >         "fields": [
> >             "id",
> >             "employeeNumber",
> >             "firstName",
> >             "lastName",
> >             "dateOfBirth",
> >             "address1",
> >             "bestEmail"
> >         ]
> >     }
> > });
> >
> > console.log(res.data);
> > ```
>
> Or fetch credentials dynamically via 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.
>
> > [!TIP]
> >
> > Next step: [Embed the auth flow](https://nango.dev/docs/guides/primitives/auth.md) in your app to let your users connect their BambooHR accounts.

> [tab] 🔗 Useful links
>
> | Topic | Links |
> | - | - |
> | Authorization | [Guide to connect to BambooHR (Basic Auth) using Connect UI](https://nango.dev/docs/integrations/all/bamboohr-basic/connect) |
> | General | [BambooHR Website](https://www.bamboohr.com/) |
> | | [BambooHR Dashboard](https://app.bamboohr.com/login/) |
> | Developer | [API Authentication](https://documentation.bamboohr.com/docs/getting-started#authentication) |
> | | [API Reference](https://documentation.bamboohr.com/reference/time-tracking-1) |
>
> > [!NOTE]
> >
> > Contribute useful links by [editing this page](https://github.com/nangohq/nango/tree/master/docs/integrations/all/bamboohr-basic.mdx)

> [tab] 🚨 API gotchas
>
> *None yet, add yours!*
>
> > [!NOTE]
> >
> > Contribute API gotchas by [editing this page](https://github.com/nangohq/nango/tree/master/docs/integrations/all/bamboohr-basic.mdx)

> [!NOTE]
>
> Questions? Join us in the [Slack community](https://nango.dev/slack).


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