How it works
- BambooHR sends a POST request to your Nango webhook URL when a monitored employee record changes, for example
employee.updated. - Nango looks up the connection named by the
nangoConnectionIdquery param on the webhook URL and verifies the delivery’sX-BambooHR-Signatureagainst that connection’s own webhook secret. The signature covers the request body followed byX-BambooHR-Timestamp. - Nango routes the event to that connection, using the payload’s
typefield as the webhook type.
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
- BambooHR settings
- BambooHR API
- In BambooHR, go to Account Settings → Webhooks and add a webhook.
- Set the URL to the URL from step 1, and pick the events and fields to monitor.
- 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 aswebhookSecret in the connection’s metadata:
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
webhookSubscriptionsandonWebhook. Subscribe to event types likeemployee.updated. Field-based webhooks (BambooHR’s global webhooks) send anemployeesarray with notype, so subscribe to*for those. See Real-time syncs.
Rollback strategy
Delete the webhook in Account Settings → Webhooks, or with the API:webhookSecret from the connection’s metadata.