Open API, Automation & Calendars
Customer API & webhooksn8n & Tenant Office
Engineering-minded operators and property management teams running self-hosted or cloud n8n can build auditable, code-capable workflows directly against Tenant Office. Verify HMAC-SHA256 webhook signatures inside an n8n Crypto or Code node, fetch paginated property and unit records over HTTPS, and pipe structured data into internal databases, BI warehouses, or alert channels.
- Estimated setup time
- 15–25 minutes
- Required role
- Developer, DevOps engineer, or technical operations lead
- Connection method
- Customer API & webhooks
Setup path: Connect n8n Cloud or self-hosted n8n instances using standard HTTPS Webhook triggers, Crypto HMAC signature checks, and HTTP Request nodes.
What connects
What flows between n8n and Tenant Office.
- Signed JSON webhook deliveries received by n8n Webhook trigger nodes over public HTTPS
- HMAC signature and timestamp headers verified inside n8n before running downstream nodes
- Paginated property-scoped Customer API responses parsed by n8n HTTP Request nodes
- Custom JavaScript/Python transforms, warehouse inserts, and internal alert pipelines
Before you start
Prerequisites for setting up n8n.
Confirm these items before starting so your setup completes cleanly in 15–25 minutes.
- An n8n Cloud workspace or self-hosted n8n instance exposed behind a publicly routable HTTPS domain on port 443.
- An administrator-issued Tenant Office Customer API credential and webhook signing secret stored in n8n Credentials.
- Confirmation that your reverse proxy passes the raw request body and custom headers intact to n8n.
Step-by-step tutorial
4 steps to set up n8n.
Follow these steps as an developer, devops engineer, or technical operations lead to configure and test your n8n workflow.
Expose an n8n Webhook node over public HTTPS
Create a POST Webhook trigger in n8n Cloud or behind your self-hosted public HTTPS reverse proxy.
Subscribe the URL and store the signing secret
Register the n8n webhook URL in Tenant Office and store both the webhook signing secret and your property-scoped API credential in n8n Credentials.
Verify HMAC signatures before processing
Validate the raw body HMAC signature and timestamp window in n8n so only authentic Tenant Office events trigger downstream actions.
Confirm 2xx acknowledgements and dead-letter handling
Return a prompt 2xx status from n8n after queuing work, and use Tenant Office’s delivery logs to monitor retries if your host restarts.
End-to-end example workflow
How property teams run n8n day to day
A technical property operator running self-hosted n8n behind Caddy registers an HTTPS production webhook with Tenant Office. Every delivery hits the Webhook node with Raw Body enabled, passes through a Code node that verifies the HMAC-SHA256 signature and timestamp window, responds immediately with HTTP 200, deduplicates on `event_id` in Postgres, and triggers downstream internal reporting updates.
Field mapping & reference
Exact fields, endpoints, and data mapping.
Reference how Tenant Office records, headers, or API endpoints align with n8n before running your first live workflow.
| Tenant Office field / endpoint | n8n field / target | Mapping notes |
|---|---|---|
| Tenant Office Webhook Subscription URL | n8n Webhook Trigger node (POST, production URL) | Must use n8n’s public HTTPS production URL (never a local private IP or localhost address). |
| X-TenantOffice-Signature & X-TenantOffice-Timestamp | n8n Crypto / Code node HMAC-SHA256 verification | Computes HMAC-SHA256 on the raw body and checks timestamp skew before allowing downstream nodes to run. |
| GET /api/v1/customer/properties | n8n HTTP Request node (Header Auth + pagination) | Uses n8n’s built-in Pagination option to follow `nextCursor` automatically across large portfolios. |
| Stable event_id | Postgres / Redis / SQLite idempotency table key | Ensures replays and retry attempts execute idempotently across your internal warehouse or alert pipelines. |
Verification & troubleshooting
How to verify n8n is working.
Run through these checks after completing setup to confirm clean delivery, scoping, and audit trails.
- Activate the n8n workflow (using the production webhook URL, not the temporary test URL) and send a `webhook.test` delivery from Tenant Office.
- Confirm the Crypto/Code verification node outputs `verified: true` on authentic deliveries and stops execution on tampered headers.
- Run the HTTP Request pagination node and confirm total unit count matches Tenant Office.
- Check Tenant Office’s webhook deliveries history endpoint to verify `200` responses within the 10-second window.
Common issues & fixes
Quick symptom, cause, and resolution guidance for the edge cases property teams encounter most often with n8n.
Tenant Office refuses to register a self-hosted n8n webhook URL.
- Likely cause
- The hostname resolves to a private RFC 1918 IP, uses HTTP instead of HTTPS, or runs on a non-standard port like `:5678`.
- How to fix
- Put n8n behind a public HTTPS reverse proxy (Caddy, Nginx, or Cloudflare Tunnel) serving on default port 443 with a valid TLS certificate.
Webhook deliveries succeed in test mode but fail with 404 later.
- Likely cause
- The subscription pointed to n8n’s temporary test webhook path (`webhook-test`) instead of the active production webhook URL.
- How to fix
- Activate the workflow in n8n, copy the production webhook URL from the n8n Webhook node, and update your Tenant Office webhook subscription.
HMAC verification fails inside the n8n Code node.
- Likely cause
- The Webhook node did not capture the raw unparsed body buffer.
- How to fix
- Enable "Raw Body" in the n8n Webhook node options and compute the HMAC over the raw bytes rather than `JSON.stringify($json)`.
Questions (5)
n8n FAQ
Detailed answers covering workflow scope, role permissions, pricing, edge cases, and data ownership.
Can I verify Tenant Office webhook signatures inside n8n?
Yes. Enable "Raw Body" on your n8n Webhook node so a Crypto or Code node can compute HMAC-SHA256 over the exact transmitted payload and check the timestamp window before running downstream nodes.
Can a local-only n8n server receive Tenant Office webhooks directly?
No. To prevent SSRF against internal networks, Tenant Office only delivers webhooks to publicly routable HTTPS hosts on port 443. Expose self-hosted n8n through a public HTTPS reverse proxy or tunnel.
Who should store and rotate the Tenant Office API credential in n8n?
An organization administrator issues a property-scoped credential in Tenant Office and stores it in n8n’s encrypted Credentials store; rotating it requires creating a new credential, updating n8n, and revoking the old one.
Does connecting self-hosted n8n cost extra in Tenant Office?
No. Customer API credentials and signed webhooks are included in Tenant Office’s standard operations package with no per-webhook or enterprise surcharge.
What if our self-hosted n8n server restarts during a webhook delivery?
Tenant Office retries failed deliveries automatically across 6 backoff attempts (30s to 1h) and retains dead-lettered events for controlled replay once your n8n host is back online.