> For the complete documentation index, see [llms.txt](https://docs.violetlabs.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.violetlabs.com/features/api/outbound-webhooks/delivery-and-retries.md).

# Delivery and retries

Delivery guarantees, retries, auto-disable and resyncing a linked webhook.

Violet delivers every request **at least once** and in order per webhook; your receiver should answer quickly and tolerate repeats.

* **Endpoint.** HTTPS only. The endpoint doesn't have to be open to everyone: put [Violet's IP addresses](https://docs.violetlabs.com/resources/administrative/connect-self-hosted-software/ip-allow-list.md) on your firewall's allow list and block the rest. Its hostname must still resolve to a public IP address; private and internal addresses are refused.
* **Respond with a 2xx within 10 seconds.** The 10 seconds include the DNS lookup. Redirects are not followed. Acknowledge first and do slow work in the background.
* **At least once.** The same request can arrive more than once, for example when an attempt timed out after you processed it. Deduplicate by `eventId` per event, and by `Violet-Delivery-Id` or `deliveryId` for whole requests.
* **In order.** Requests to one webhook go out one at a time, in the order they were built. A failing request holds every request behind it until it succeeds or the webhook is disabled.

## Retries and auto-disable

| Response                                | What Violet does                                                  |
| --------------------------------------- | ----------------------------------------------------------------- |
| 2xx                                     | Marks the request `Delivered`.                                    |
| Timeout, network error, 5xx, 408 or 429 | Retries after 1, 2, 4, 8, 16, 32 and 60 minutes, then every hour. |
| Any other 4xx, or a 3xx redirect        | Permanent failure. Three in a row disable the webhook at once.    |
| No 2xx for 6 hours                      | The webhook is disabled.                                          |

Nothing is dropped while a webhook is paused or disabled: unsent requests and new changes wait. When an admin re-enables it, they go out in order. If too many changes built up meanwhile, a `subscription.resync_required` event with reason `capture_overflow` goes first.

If an entity's integration is removed, its events are left out of later attempts. A retry can therefore carry fewer events than the first try, never more. A request left with no events is not sent and shows as **Not sent** in the delivery log.

## Resync a linked webhook <a href="#resync-a-linked-webhook" id="resync-a-linked-webhook"></a>

Linking a webhook to an exploration does not send a resync event. After you create one, read the exploration's current results once to load your starting set. Later edits to the exploration's filters send `subscription.resync_required` with reason `exploration_changed`.

With an admin user's API key, page through the entities that match today:

```bash
curl -X POST "https://[YOUR-TENANT-NAME].violetlabs.com/api/explore/<explorationId>/results" \
  -H "x-api-key: <your API key>" \
  -H "Content-Type: application/json" \
  -d '{"size": 500}'
```

The response holds `items` (each with `id`, `entityType` and `integrationIds`) and a `nextCursor`. Send `{"size": 500, "after": "<nextCursor>"}` for the next page until `nextCursor` is `null`. Pages hold up to 1,000 items. VioletGov customers use `violetgov.com`.

These results apply the same saved filters and search the webhook evaluates, without grouping or dashboard settings. They run with the API key user's own visibility, while the webhook evaluates tenant-wide. Use a key from an admin who can see the whole tenant; a user limited to some workspaces or programs sees fewer entities, which would look like removals.


---

# 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.violetlabs.com/features/api/outbound-webhooks/delivery-and-retries.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.
