Skip to main content
Webhook exports allow you to automatically receive your Weave data at a URL you specify. Team and raw exports are sent daily via HTTP POST requests; router spend alerts are sent as they happen.

Setting up webhooks

You can manage webhook exports through the Webhooks API. To get started:
  1. Create an API key with the write scope in your organization settings. Listing webhooks only needs read; creating, updating and deleting them needs write.
  2. Use the API to create a webhook export with your endpoint URL
  3. Weave will POST data to your URL daily, or on each alert for router_spend_alert webhooks

Export types

There are three types of webhook exports:

Team export

Aggregated team metrics including:
  • output - Total code output for the team
  • output_per_engineer - Average code output per engineer
  • Additional team-level metrics

Raw export

Individual PR-level data including:
  • pull_request_id - Unique identifier for the PR
  • author - The PR author
  • merged_at - When the PR was merged
  • output - Code output for the PR

Router spend alerts

Type router_spend_alert sends one POST per Weave Router spend alert instead of a daily batch. event is router_spend_limit.approaching when spend crosses the alert threshold set under Billing & spend → Spend limits (80% of the limit by default), or router_spend_limit.reached when the limit is reached and further paid requests are blocked. Each payload includes:
  • id - Stable alert ID; use it as an idempotency key
  • organization_id - The Weave organization the alert belongs to
  • scope - org for the organization limit, user for one engineer’s limit
  • router_user_id, user_email, user_display_name - The engineer, or null for org alerts. With reporting anonymization on, user alerts also send null for router_user_id and user_email, and user_display_name is a shared pseudonym
  • spent_usd_micros and limit_usd_micros - Month-to-date spend and the limit it is measured against, in USD micros
  • threshold_percent and spend_tier - The configured threshold and, for approaching alerts, which multiple of it was crossed
  • month - First day of the UTC month the spend belongs to
Weave sends each alert once per month for a given scope, engineer, event and tier. For approaching alerts the threshold is part of that key, so changing the threshold mid-month can send another approaching alert for the same tier. Delivery is best-effort and isn’t retried, and in rare cases the same alert can be sent twice, so deduplicate on id. Alerts cover only the org limit and per-engineer limits; per-key caps don’t send alerts. To approve more headroom from an alert, see raise an engineer’s limit from Slack.

Authentication

You can optionally configure a secret header for your webhook. When set, Weave will include this header in every request, allowing your endpoint to verify the request is from Weave.

URL requirements

Webhook URLs must:
  • Use https:// or http:// scheme
  • Include a valid host
  • Point to a publicly accessible endpoint (internal IPs and localhost are not allowed)

API reference

See the Webhooks API reference for complete documentation on managing webhooks programmatically.
Last modified on November 26, 2026