Configuring Webhooks
- Log in to your Shiftsheet Dashboard as a Company Admin.
- Navigate to Settings > Integrations & API.
- Under the Webhooks tab, click Add Endpoint.
- Enter the URL where you want to receive payloads (e.g.,
https://your-domain.com/webhooks/shiftsheet). - Upon creation, you will receive a Signing Secret. Copy this secret immediately; it is required to verify the authenticity of the incoming payloads.
Payload Structure
All webhooks share a standard JSON payload format containing the event type, timestamp, and the associated data.Security & Signature Verification
To ensure that the request truly came from Shiftsheet and the payload hasn’t been tampered with, we include an HMAC SHA256 signature in theX-Shiftsheet-Signature header of every request.
We also include the X-Shiftsheet-Event header, making it easy to route the event without parsing the body first.
Example: Verifying the Signature in Node.js
You can verify the signature using the built-incrypto module in Node.js. Compare the computed HMAC against the value in the header.
Node.js