Skip to main content

How it works

  1. BambooHR sends a POST request to your Nango webhook URL when a monitored employee record changes, for example employee.updated.
  2. Nango looks up the connection named by the nangoConnectionId query param on the webhook URL and verifies the delivery’s X-BambooHR-Signature against that connection’s own webhook secret. The signature covers the request body followed by X-BambooHR-Timestamp.
  3. Nango routes the event to that connection, using the payload’s type field as the webhook type.
BambooHR payloads don’t say which company they come from, and every BambooHR webhook has its own private key. So each connection needs its own webhook in BambooHR and its own webhookSecret in Nango. Deliveries without a valid signature, or with an X-BambooHR-Timestamp older than 5 minutes, are rejected. This applies to both the BambooHR (OAuth) and BambooHR (Basic Auth) integrations.

Setup

1. Get your Nango webhook URL

In the Nango dashboard, open your BambooHR integration and copy the Webhook URL. Append ?nangoConnectionId=<CONNECTION-ID> for the connection you are registering the webhook for. URL-encode the connection ID if it contains characters like +, / or spaces.

2. Register the webhook in BambooHR

  1. In BambooHR, go to Account Settings → Webhooks and add a webhook.
  2. Set the URL to the URL from step 1, and pick the events and fields to monitor.
  3. Save. BambooHR shows the webhook’s private key once. Copy it for step 3.

3. Set the webhook secret in Nango

Store the webhook’s private key as webhookSecret in the connection’s metadata:
See Update connection metadata for the full reference.
The webhook secret on the integration’s Settings page is not used for BambooHR. Nango only verifies against the connection’s webhookSecret.

Handle the webhook

Once routed, you have two options:
  • Forward it to your app: Nango forwards the event to your webhook URL with connection attribution. See External webhook forwarding.
  • Process it in a sync: run a sync when the webhook arrives using webhookSubscriptions and onWebhook. Subscribe to event types like employee.updated. Field-based webhooks (BambooHR’s global webhooks) send an employees array with no type, so subscribe to * for those. See Real-time syncs.

Rollback strategy

Delete the webhook in Account Settings → Webhooks, or with the API:
Then clear webhookSecret from the connection’s metadata.
Need help getting started? Join us in the community.