| name | bamboohr-hello-world |
| description | Create a minimal working BambooHR example — fetch employee directory and single employee.
Use when starting a new BambooHR integration, testing your setup,
or learning basic BambooHR REST API patterns.
Trigger with phrases like "bamboohr hello world", "bamboohr example",
"bamboohr quick start", "simple bamboohr code", "first bamboohr call".
|
| allowed-tools | Read, Write, Edit, Bash(curl:*) |
| version | 1.4.0 |
| license | MIT |
| author | Jeremy Longshore <jeremy@intentsolutions.io> |
| tags | ["saas","hr","bamboohr","quickstart"] |
| compatibility | Designed for Claude Code |
BambooHR Hello World
Overview
Minimal working examples for the three most common BambooHR API operations: fetch the employee directory, get a single employee by ID, and run a custom report.
Prerequisites
- Completed
bamboohr-install-auth setup
BAMBOOHR_API_KEY and BAMBOOHR_COMPANY_DOMAIN env vars set
Instructions
Step 1: Fetch Employee Directory
import 'dotenv/config';
const COMPANY = process.env.BAMBOOHR_COMPANY_DOMAIN!;
const API_KEY = process.env.BAMBOOHR_API_KEY!;
const BASE = `https://api.bamboohr.com/api/gateway.php/${COMPANY}/v1`;
const AUTH = `Basic ${Buffer.from(`${API_KEY}:x`).toString('base64')}`;
const dirRes = await fetch(`${BASE}/employees/directory`, {
headers: { Authorization: AUTH, Accept: 'application/json' },
});
const directory = await dirRes.json();
console.log(`Company has ${directory.employees.length} employees`);
( emp directory..(, )) {
.();
}