Skip to main content
Browse the docs

DocsIntegrations

Sync meeting costs to your data warehouse

Push monthly meeting cost totals by team to Snowflake, BigQuery or any warehouse through your own HTTPS collector, as signed NDJSON that replaces whole months.

Overview

Hourari can push your workspace's meeting spend to your own data warehouse on a schedule: one row per team per month, with its cost centre and GL codes. Your data team can then join it to headcount, budgets or anything else you keep there, and the totals match the ERP export your finance team downloads.

Warehouse sync is part of the Business and Enterprise plans, and only the workspace owner can set it up. Owners need to have entered their two-factor code, and to be on an allowed network if your workspace has an IP allowlist.

The figures are full costs, whatever your cost visibility settings, because only the owner can set a destination up.

What you need

A destination is an HTTPS address that accepts a POST of NDJSON (one JSON object per line). Snowflake and BigQuery do not accept such a request directly, so most teams point it at a small collector they already run: a cloud function, a pipeline tool's HTTP source, or a service that writes the body to a stage or bucket and loads it from there.

Private and internal addresses are refused, and redirects are not followed.

Add a destination

  1. Open Settings → Integrations and choose Data warehouse, under Developer.
  2. Choose Add destination, and enter a name and the collector's address.
  3. Pick Daily or Weekly.
  4. If your collector expects a token, enter the header name (such as Authorization) and its value. The value can't be viewed or edited after saving: to change it, remove the destination and add it again.
  5. Choose Add destination. Hourari shows your signing secret once. Copy it into your collector now, so it can check that each push came from Hourari.

The first push arrives within the hour and carries about 13 months of history. After that, pushes follow the schedule you picked.

To check the address and secret without waiting, choose Send test on the destination's row. It sends one line, {"test": true, …}, with the header X-Hourari-Test: 1. A test push carries no figures and must not change what you store. It does not move the destination's schedule or count as a failure, and you can send five every ten minutes.

What a push looks like

Each push is a POST with Content-Type: application/x-ndjson. Here is one line, spread over several lines so it is easier to read:

{
  "company_id": "0f9d…",
  "period_start": "2026-11-01",
  "period_label": "2026-11",
  "team_id": "8e3a…",
  "team_name": "Engineering",
  "cost_center_code": "CC-4100",
  "gl_account_code": "6400",
  "meeting_count": 212,
  "meeting_minutes": 9840,
  "total_cost": 18432.5,
  "currency": "USD",
  "replaces_from": "2026-10-01",
  "replaces_to": "2026-12-01",
  "extracted_at": "2026-11-22T03:18:04.112Z"
}
Field Meaning
period_start, period_label The month, starting at midnight in your workspace's time zone.
team_id, team_name The team. Both are null for meetings not tagged to a team.
cost_center_code, gl_account_code The team's codes from Cost centres, else your workspace-wide codes, else null.
meeting_count, meeting_minutes, total_cost That team's meetings in that month so far.
currency The currency of total_cost. null if it could not be read on that push.
replaces_from, replaces_to The months this push replaces (see below). The same on every line.
extracted_at When the push was made.

A month's totals leave out declined meetings, meetings inside a series' pause, meetings after a series' end date, and meetings not yet priced, the same as the ERP export and the read API's spend summary. The current month runs up to the moment of the push, so its total grows until the month ends.

The request carries these headers:

Header Value
X-Hourari-Delivery A new id for each push.
X-Hourari-Timestamp When the push was signed, in Unix seconds.
X-Hourari-Signature sha256= followed by the signature in hex.
X-Hourari-Replaces-From, X-Hourari-Replaces-To The same as replaces_from and replaces_to, for a collector that reads headers.

Store it: replace whole months

Every push replaces a range of months. When one arrives, delete every row you hold for this company_id with period_start from replaces_from (included) up to replaces_to (not included), then insert the new lines. Every month in that range is sent whole, so this is always safe.

Do not merge rows by month and team instead. When a team is deleted, or every meeting in a month moves to another team, its row is simply absent from the next push. A store that only updates the rows it receives keeps the old one, and that month counts the same money twice.

A push can have no lines at all. It still names its range, and that means those months now hold nothing: delete what you held for them.

A push re-sends older months when they change:

  • A meeting in an older month changes (synced late, re-priced, declined, moved to another team), or leaves it (moved to another date, or deleted): the push starts from that month.
  • Your workspace's time zone changes: the next push re-sends all 13 months, cut at the new midnight.
  • A cost centre or GL code changes, or a team is renamed or deleted: the next push re-sends all 13 months with the current codes and names, as the ERP export shows them.

Verify the signature

The signature is an HMAC-SHA256 of the timestamp, a full stop, and the raw request body, keyed with your signing secret, the same scheme as webhooks. To check a push:

  1. Read the raw body exactly as received.
  2. Compute the HMAC-SHA256 of <X-Hourari-Timestamp>.<raw body> with your signing secret, in hex.
  3. Compare it with the part of X-Hourari-Signature after sha256=, using a constant-time comparison.
  4. Reject it if the timestamp is more than five minutes from your clock.

A destination added before pushes were signed has no signing secret, and its pushes carry no X-Hourari-Signature. Remove it and add it again to get one.

Respond, retries and failures

Answer with any 2xx status within 20 seconds.

  • Anything else is a failure, including a timeout or a redirect. The next push covers the same months again, so nothing is skipped. The destination's row shows the last error.
  • A destination that keeps failing is turned off. After 20 failed pushes in a row, it stops, the workspace owner gets one email saying so, and an entry is written to the activity log. Fix the collector, then switch it back on. It picks up where it stopped.
  • Pausing works the same way. Switching a destination off and on again resumes from the last push it accepted.

If your workspace moves to a plan without warehouse sync, nothing is sent. The destinations stay listed, where the owner can remove them, and pushes resume if you upgrade again.

Last checked against the product on .