BambooHR (Apps step)

Updated Nov 23, 2026
DataMagik Automate

BambooHR

Lists and reads BambooHR employees, updates their fields, lists time-off requests and runs custom reports.

Use it to bring people data from BambooHR into the plant: a current crew list for a shift report, who is off tomorrow, or a new hire's details for badge and training setup.

Beta. This step has not yet been checked against a live BambooHR account, so treat its first runs as a test, and tell us if an operation does not answer as described.

Find it in the workflow editor's palette under Apps. See Apps steps for what every Apps step has in common.

Set it up

  1. In BambooHR, click your name in the top right, open API Keys and add a new key. BambooHR shows it once, so copy it then. The key can see and change what your own BambooHR user can.
  2. In DataMagik, open Script Engine › Credentials and add a "Basic Auth (Username/Password)" credential: the API key as the username and any text, such as x, as the password (BambooHR ignores the password).
  3. Add api.bamboohr.com to Allowed Domains in the workflow's Script settings.

Credential: A Basic credential: a BambooHR API key as the username and any text, such as x, as the password.

Hosts it calls: api.bamboohr.com

Connection

FieldRequiredWhat to put
Company domainYesThe part of your BambooHR address before .bamboohr.com: acme for acme.bamboohr.com. For example acme.

Operations

OperationWhat it does
Employee › DirectoryLists the employees in the company directory, with the directory's fields.
Employee › GetReads one employee's fields by their BambooHR id.
Employee › UpdateChanges fields on one employee's record.
Time off › List requestsLists the time-off requests that overlap a date range.
Report › Run custom reportLists every employee with the fields you name, in one request.

Employee › Directory

Lists the employees in the company directory, with the directory's fields.

Calls GET /employees/directory.

What comes out: One item per employee in the directory: {{ $json.id }}, {{ $json.displayName }}, {{ $json.firstName }}, {{ $json.lastName }}, {{ $json.jobTitle }}, {{ $json.department }}, {{ $json.location }}, {{ $json.workEmail }} and the other fields your directory shows.

Example: List the directory each Monday and keep the employees whose {{ $json.location }} is Plant 2 to refresh the badge reader's name list.

Employee › Get

Reads one employee's fields by their BambooHR id.

Calls GET /employees/{employeeId}.

FieldRequiredWhat to put
Employee IDYesThe employee's BambooHR id, the number in their profile's address (employees/employee.php?id=123). 0 is the person who owns the API key. For example 123. Choose from list beside the field fetches the choices from your account.
Fields to returnNoComma-separated BambooHR field names (custom fields by number). The employee's id always comes back.

What comes out: One item: {{ $json.id }} and each field asked for, such as {{ $json.firstName }}, {{ $json.jobTitle }}, {{ $json.hireDate }} (YYYY-MM-DD) and {{ $json.status }} (Active or Inactive).

Example: When a new hire is entered, read {{ $json.employeeId }} with fields firstName,lastName,department,hireDate to set up their training plan.

Employee › Update

Changes fields on one employee's record.

Calls POST /employees/{employeeId}.

FieldRequiredWhat to put
Employee IDYesThe employee's BambooHR id, the number in their profile's address (employees/employee.php?id=123). 0 is the person who owns the API key. For example 123. Choose from list beside the field fetches the choices from your account.
Fields to changeYesA JSON object of BambooHR field names and their new values; fields left out keep their values. For example {"workPhone": "555-0100", "location": "Plant 2"}.

What comes out: BambooHR answers an update with no content, so the step puts out one item holding {{ $json.status }} (200 when it worked) and an empty {{ $json.body }}.

Example: When a person moves to second shift in the plant's roster, update {{ $json.bamboo_id }} with {"location": "Plant 2"} so BambooHR matches.

Time off › List requests

Lists the time-off requests that overlap a date range.

Calls GET /time_off/requests/.

FieldRequiredWhat to put
FromYesThe first day of the range, as YYYY-MM-DD. For example 2026-11-23.
ToYesThe last day of the range, as YYYY-MM-DD. For example 2026-11-29.
StatusNoOnly requests in this state. One of: Approved, Requested (waiting for approval), Denied, Canceled, Superseded.

What comes out: One item per request: {{ $json.id }}, {{ $json.employeeId }}, {{ $json.name }} (the employee's name), {{ $json.start }} and {{ $json.end }} (YYYY-MM-DD), {{ $json.type.name }} (Vacation, Sick…), {{ $json.amount.amount }} with {{ $json.amount.unit }} (days or hours) and {{ $json.status.status }}.

Example: From and To both set to tomorrow, status Approved, lists who is out tomorrow for the shift supervisors' staffing email.

Report › Run custom report

Lists every employee with the fields you name, in one request.

Calls POST /reports/custom.

FieldRequiredWhat to put
FormatNoThe answer's format; the step reads JSON. One of: JSON.
Report titleNoA name for the report; BambooHR returns it with the answer.
FieldsYesA JSON list of BambooHR field names (custom fields by number) to return for each employee. For example ["firstName", "lastName", "department", "jobTitle", "status"].

What comes out: One item per employee: {{ $json.id }} and each field asked for, such as {{ $json.firstName }} and {{ $json.department }}.

Example: Fields ["employeeNumber", "firstName", "lastName", "department", "status"] gives the full roster, active and inactive, to compare with the plant's badge list.

Example

Every afternoon, BambooHR › List time-off requests with start and end set to tomorrow's date and status approved lists who is out, and an Email step sends the list to each shift supervisor.

Tips

  • BambooHR answers in XML unless asked for JSON; the step always asks for JSON, so you do not need to set anything.
  • Field names are BambooHR's API names, not the labels on screen: firstName, jobTitle, workEmail, hireDate, supervisorEId. Custom fields go by their number, such as 4021; BambooHR's field list (GET /meta/fields) gives each one's name and number.
  • The directory only works when the company directory is turned on in BambooHR's settings; if it answers 403, use Run custom report instead, which lists every employee with the fields you ask for.
  • Update changes the real employee record on test runs too, so try it on a test employee first.

Settings every Apps step has

  • More query parameters: any query parameter the fields do not offer, sent as is.
  • More body fields: a JSON object merged into the request body; nested objects merge, other values replace.
  • Most requests per second: spaces the calls out for rate limits. A "too many requests" (429) answer is retried after the wait the API asks for.
  • Most pages: for operations that follow pages, the most pages to fetch (10 unless you change it, up to 100). The run warns when it stops with more to get.
  • Fail on a non-2xx response: on by default. Turn it off to handle errors yourself.

BambooHR's own API documentation: https://documentation.bamboohr.com/reference

Was this page helpful?