Skip to main content

Open API, Automation & Calendars

Customer API & webhooks

Customer API & Webhooks & Tenant Office

Property operators shouldn’t have to upgrade to a top-tier enterprise plan just to read their own portfolio data or react to events. Tenant Office provides a bounded, administrator-governed Customer API and signed webhook delivery system with property scoping, replay protection, automatic retry backoff, and dead-letter tracking.

Estimated setup time
15–20 minutes
Required role
Organization administrator & developer
Connection method
Customer API & webhooks

Setup path: Organization administrators issue property-scoped API credentials and manage HTTPS webhook subscriptions directly—no enterprise tier gate required.

What connects

What flows between Customer API & Webhooks and Tenant Office.

  • Paginated, property-scoped reads of properties and units authorized to the issued credential
  • HMAC-signed HTTPS webhook event deliveries with stable event IDs and timestamp verification
  • Automatic retry scheduling with backoff and dead-letter visibility for failed endpoints
  • Test-event triggers and instant credential or subscription revocation by administrators

Before you start

Prerequisites for setting up Customer API & Webhooks.

Confirm these items before starting so your setup completes cleanly in 15–20 minutes.

  • Organization administrator access in Tenant Office to issue a property-scoped API credential.
  • A publicly routable HTTPS endpoint on the default port (443) for receiving webhook POSTs (no private IP literals or localhost).
  • A secure secrets store (such as your server environment variables or secrets manager) for the one-time bearer credential and webhook signing secret.

Step-by-step tutorial

4 steps to set up Customer API & Webhooks.

Follow these steps as an organization administrator & developer to configure and test your Customer API & Webhooks workflow.

  1. Issue a property-scoped API credential

    An organization administrator creates an API credential and binds it to the exact properties the integration is permitted to read.

  2. Register a public HTTPS webhook endpoint

    Create a webhook subscription pointing to a publicly routable HTTPS URL. Private network addresses and unsafe targets are automatically blocked.

  3. Verify HMAC webhook signatures

    Use your subscription signing secret to validate the request signature and timestamp on every inbound event before processing.

  4. Monitor retries and revoke anytime

    Trigger test events during setup, monitor delivery attempts, and revoke credentials or subscriptions immediately when rotating systems.

End-to-end example workflow

How property teams run Customer API & Webhooks day to day

An operations engineer builds an internal portfolio vacancy dashboard. An organization administrator issues a read-only Customer API credential scoped to twelve apartment buildings and saves the one-time bearer credential in the server’s secrets vault. The engineer registers an HTTPS webhook endpoint, validates HMAC-SHA256 signatures with `webhook.test`, paginates `GET /api/v1/customer/properties` into the internal BI store, and monitors delivery history for dead-letter alerts.

Field mapping & reference

Exact fields, endpoints, and data mapping.

Reference how Tenant Office records, headers, or API endpoints align with Customer API & Webhooks before running your first live workflow.

Tenant Office field / endpointCustomer API & Webhooks field / targetMapping notes
GET /api/v1/customer/propertiesPaginated JSON ({ data, nextCursor }) + Customer-Api-Version: v1Returns properties and nested units scoped strictly to the credential’s authorized property IDs.
POST /api/v1/customer/webhook-subscriptionsActive subscription + one-time signing secretSupports up to 5 active HTTPS subscriptions per credential with SSRF host validation.
POST .../webhook-subscriptions/{id}/test-eventsSigned webhook.test deliveryTriggers an on-demand sandbox delivery to verify HMAC signature and replay-window handling.
GET & POST .../webhook-subscriptions/{id}/deliveriesDelivery audit log & controlled replay (max 3/event)Inspects 6-attempt backoff history (30s, 2m, 10m, 30m, 1h) and replays dead-lettered events under their original event ID.
Rate-limit & auth headersAuthorization: Bearer <credential> (60 req / 60s window)Returns HTTP 429 with Retry-After when exceeded; revoking a credential immediately invalidates reads and deliveries.

Verification & troubleshooting

How to verify Customer API & Webhooks is working.

Run through these checks after completing setup to confirm clean delivery, scoping, and audit trails.

  • Call `GET /api/v1/customer/properties` and verify `Customer-Api-Version: v1` and only the credential’s authorized properties return.
  • Create a webhook subscription and trigger `POST .../test-events` to confirm your endpoint validates the HMAC-SHA256 signature.
  • Confirm your endpoint rejects a tampered payload or stale timestamp (> 5 minutes old) with HTTP 401/400.
  • Query `GET .../deliveries` and verify the test event shows state `delivered` with HTTP 2xx.

Common issues & fixes

Quick symptom, cause, and resolution guidance for the edge cases property teams encounter most often with Customer API & Webhooks.

  • Subscription creation fails with an unsafe destination error.

    Likely cause
    The target URL uses HTTP, a non-default port, an IP literal, redirects, or resolves to a private/loopback IP range.
    How to fix
    Point the subscription to a publicly routable HTTPS hostname on port 443 that responds directly without 3xx redirects.
  • HMAC signature verification fails even with the right secret.

    Likely cause
    Your web framework parsed and re-serialized JSON before computing the HMAC, altering whitespace or key ordering.
    How to fix
    Compute the HMAC-SHA256 digest over the exact raw request body bytes before JSON parsing and compare in constant time.
  • API requests return HTTP 429 rate-limit errors.

    Likely cause
    The credential exceeded 60 requests within its fixed 60-second window.
    How to fix
    Respect the `Retry-After` response header, cache property lists between polls, or use `@tenantoffice/sdk` which handles `429` retries automatically.

Questions (6)

Customer API & Webhooks FAQ

Detailed answers covering workflow scope, role permissions, pricing, edge cases, and data ownership.

Is the Customer API locked behind an enterprise pricing tier?

No. Tenant Office uses one operations package across plans rather than gating core operational tools or API access behind separate enterprise tiers.

How are webhook payloads secured in transit?

Webhook subscriptions require publicly routable HTTPS URLs validated against private IP ranges, and every delivery carries an HMAC signature with a timestamp and stable event ID so your receiver can verify authenticity and prevent replay.

What happens if our receiving server is temporarily offline?

Tenant Office retries failed deliveries up to 6 attempts on an exponential backoff schedule (30s, 2m, 10m, 30m, 1h), marks exhausted deliveries as dead-lettered, and lets your team trigger controlled replays (up to 3 per event).

Which objects are readable through the v1 Customer API, and are writes allowed?

v1 exposes strictly read-only, property-scoped property and unit inventory (`GET /api/v1/customer/properties`), plus MITS 4.1 XML listings and webhook subscription administration. Resident PII, leases, ledgers, and writes to customer data are explicitly excluded.

What rate limits apply to Customer API credentials?

Each administrator-issued credential has a 60-request per fixed 60-second window rate limit and returns HTTP 429 with `Retry-After` when exceeded, alongside up to 5 active webhook subscriptions per credential.

How quickly does revoking an API credential take effect?

Revocation is immediate: the very next API read fails with HTTP 401 and any queued webhook deliveries for that credential stop and dead-letter as `credential_inactive`.