> For the complete documentation index, see [llms.txt](https://docs.hypertracker.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.hypertracker.io/webhooks.md). Agents can also search and read this documentation through its [MCP server](https://docs.hypertracker.io/~gitbook/mcp).

# Webhooks

Stay in sync with effortless, automated data updates.

Webhooks are the most efficient way to keep your application up-to-date with the latest state changes. Instead of manually polling for updates, our webhooks notify your system the moment new data is processed and ready for use.

If you want a direct freshness check between webhook events, use [HyperTracker State](https://docs.hypertracker.io/endpoints/hypertracker-state-check.md).

### Setting up your webhook

1. In your API dashboard, find the **Webhook States** card.
2. Click **Add Webhook URL**.
3. Enter your server endpoint in **Webhook URL**. It must be a valid `https://` address. We POST each payload to this endpoint.
4. Optional: select **Use Authorisation Header** and enter your token. We send it in the `Authorization` header as a Bearer token.
5. Click **Save**. A green checkmark beside **Webhook** confirms that it is active.

<div align="center"><figure><img src="https://797705725-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKkv2IiibnImsf0K43fna%2Fuploads%2FFOglBzY84CrAvobCWM3L%2Fwebhook.png?alt=media&amp;token=32c3c643-1bef-4e0a-af66-d8eb514e52b8" alt=""><figcaption></figcaption></figure></div>

**How it works**

Our system follows a consistent cycle to ensure you are always working with the most accurate information:

1. Node Updates: Approximately every 15–20 minutes, our nodes refresh with the latest state.
2. Aggregation: Immediately after the refresh, we perform complex data aggregations to prepare your results.
3. The Ping: As soon as the new state is ready, we send an automated "ping" (a POST request) to your designated webhook URL.
4. Automatic Retrieval: Once your system receives this notification, it can automatically trigger a query to fetch the fresh results and update your local data.

### Payload

Each webhook is a POST request with a JSON body (`Content-Type: application/json`). If you enabled the authorization header, it is sent as `Authorization: Bearer <your value>`.

```json
{
  "event": "export.done",
  "timestamp": "2026-11-09T11:51:00.806Z",
  "data": {
    "timestamp": 1794225055701,
    "exportId": 949556,
    "lastUpdate": "2026-11-09T11:50:55.701Z",
    "nextUpdate": "2026-11-09T12:18:14.593Z",
    "nextUpdateThreshold": "2026-11-09T12:20:16.697Z"
  }
}
```

| Field                      | Type              | Description                                                                                                                                                                                                                |
| -------------------------- | ----------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `event`                    | string            | Always `export.done`. This is currently the only webhook event.                                                                                                                                                            |
| `timestamp`                | string (ISO 8601) | When this delivery attempt was sent. A retry gets a new value.                                                                                                                                                             |
| `data.timestamp`           | number (Unix ms)  | When the export finished. Same moment as `data.lastUpdate`.                                                                                                                                                                |
| `data.exportId`            | number            | ID of the export run. Always increases. Use it to order events and to deduplicate deliveries.                                                                                                                              |
| `data.lastUpdate`          | string (ISO 8601) | When the export finished.                                                                                                                                                                                                  |
| `data.nextUpdate`          | string (ISO 8601) | Expected time of the next update. Estimate based on the median interval between exports over the last 24 hours.                                                                                                            |
| `data.nextUpdateThreshold` | string (ISO 8601) | Latest normal time for the next update. Estimate based on the 95th-percentile interval over the last 24 hours. If no webhook has arrived by then, treat the update as delayed and fall back to polling HyperTracker State. |

Both `nextUpdate` values are estimates, not guarantees.

### Retries and deduplication

Each webhook is attempted up to 5 times, with exponential backoff and a 5-second timeout. A slow endpoint can therefore receive the same `exportId` more than once. Treat repeated `exportId` values as no-ops.

`exportId` values can skip numbers: a failed or abandoned export run uses an ID without sending a webhook, so a gap does not mean a webhook was lost. To detect missed updates, use `nextUpdateThreshold` or poll HyperTracker State.

***

Need a hand? If you’re new to setting up webhooks or run into any trouble getting your endpoint to listen reach out to our support team. We’re here to help you get synced up!


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.hypertracker.io/webhooks.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
