# Attendance to Zapier, Make, and n8n

> Connect Hadirly attendance to Zapier, Make, or n8n with a webhook trigger. Learn the flat format, the default events, and how to check the signature.

Diperbarui: 2026-11-21
Penulis: Hadirly team
URL: https://hadirly.app/en/guides/integrations/zapier-make-n8n/

Zapier, Make, and n8n receive Hadirly webhooks in flat format. Each one starts with a webhook trigger that gives you a URL, and you paste that URL into Hadirly. By default none of the three checks the signature. To check it, add a code step that uses the verification code from the Hadirly guide.

## Flat format

The flat format puts the envelope fields and the data fields directly at the top level of the JSON. Values that are objects or arrays are turned into JSON text, so each value fits in one column in an automation tool. Example of an attendance recorded message:

```json
{
  "event_type": "attendance.recorded",
  "event_id": "contoh-id-kejadian",
  "event_created_at": "2026-11-20T07:01:02.123Z",
  "user_id": "contoh-id-pengguna",
  "direction": "in",
  "occurred_at": "2026-11-20T07:01:01.900Z",
  "status": "accepted",
  "local_day": "2026-11-20",
  "location": "{\"lat\":-6.2,\"lng\":106.8,\"accuracy_m\":12,\"is_mock\":false}"
}
```

The example values only show the shape. Real values come from your attendance records.

## Steps for each tool

| Tool | Trigger in the tool | What to paste into Hadirly | Signature check |
|---|---|---|---|
| Zapier | Webhooks by Zapier, then Catch Hook | Custom Webhook URL | Code step with the code from the guide |
| Make | Webhooks, then Custom webhook | The webhook URL you just created | HTTP or Code module with the code from the guide |
| n8n | Webhook node with the POST method | Production URL, after the workflow is activated | Code node with the code from the guide |

On each tool, choose the flat format in the Hadirly endpoint settings. No extra headers need to be set in these tools.

## Checking the signature in a code step

Each message carries `webhook-id`, `webhook-timestamp`, and `webhook-signature`. The check works like this:

1. Take those three headers. In automation tools, the headers are usually available on the request object.
2. Reject the message if its timestamp differs from server time by more than 5 minutes.
3. Build the signed content as the id, a dot, the timestamp, a dot, then the raw body. Do not parse the JSON and rebuild it, because spacing and key order will change.
4. Compute HMAC-SHA256 with the key made from the base64 bytes of the secret after the `whsec_` prefix, then compare the result with the `v1` value in the header.

The verification code in the Hadirly guide uses the `node:crypto` module built into Node.js. Before you rely on it, check that the code step in your tool supports that module. If it does not, perform the check on your own server.

## Limits

- Without a verification step, anyone who has the trigger URL can send fake data into your workflow.
- A redelivered message carries the same `webhook-id`. Your workflow needs to discard duplicates based on that ID.
- The flat format and the raw body have different shapes. Verification always runs on the body that arrives, not on the output of a JSON parser.
- Automation tools can change the shape of data before you use it. Test the workflow with a test attendance record before you use it on real data.

## Checklist

- [ ] The flat format is selected in the Hadirly endpoint.
- [ ] The webhook trigger in the tool receives a test message from Hadirly.
- [ ] The verification step uses the raw body and a 5-minute window.
- [ ] The workflow discards duplicates by webhook-id.
- [ ] The trigger URL is kept secret, and replaced if it leaks.

## When to choose these tools

Use Zapier, Make, or n8n when attendance needs to reach several applications at once, for example to create a task, send an email, or update another system. If the goal is only to fill one spreadsheet, the Google Sheets preset is simpler. If the goal is only team messages, the Slack or Telegram preset is more direct.

## Testing the workflow before use

1. Create an endpoint with the flat format, then copy the trigger URL into Hadirly.
2. Turn on the workflow in your tool, then run a test from Hadirly.
3. Check the data the tool received. Confirm that the key fields are readable and that the location column is JSON text you can parse.
4. Record one test attendance and confirm that the workflow runs only once.
5. After the workflow is correct, turn on signature checking, then test with a message that you have deliberately changed to confirm that it is rejected.

## Limits of automation tools

Each extra step adds a point that needs to be looked after. Make sure the workflow does not keep attendance data longer than the retention period you set in Hadirly.

## Sources

- Standard Webhooks, specification (GitHub, standard-webhooks).
