> 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/events-and-payloads.md).

# Events and payloads

The headers, body and event types of every outbound webhook request.

Violet sends POST requests with a JSON body (`Content-Type: application/json`). One request includes up to 500 events. Changes that land close together are batched into one request: Violet waits for about a minute of quiet, and at most five minutes, before sending.

## Request headers

| Header               | Value                                                                                                                                             |
| -------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- |
| `Content-Type`       | `application/json`                                                                                                                                |
| `User-Agent`         | `Violet-Webhooks/1.0`                                                                                                                             |
| `Violet-Signature`   | `t=<unix seconds>,v1=<hex>[,v1=<hex>]`. See [Verify signatures](https://docs.violetlabs.com/features/api/outbound-webhooks/verify-signatures.md). |
| `Violet-Delivery-Id` | The delivery's id. The same on every retry of that request.                                                                                       |
| Your custom headers  | Up to 10 headers you configure, for example your endpoint's own `X-API-Key`.                                                                      |

## Request body

```json
{
  "deliveryId": "0199e3c6-4f2a-7b1c-8d3e-5f6a7b8c9d0e",
  "timestamp": "2026-10-20T18:05:14.020Z",
  "source": "teamcenter",
  "subscriptionId": "0199e3c4-1d2e-7f3a-8b4c-5d6e7f8a9b0c",
  "events": [
    {
      "eventId": "0199e3c5-8a1b-7c2d-9e3f-0a1b2c3d4e5f",
      "type": "entity.updated",
      "occurredAt": "2026-10-20T18:04:12.511Z",
      "entityId": "0198aa10-3c4d-7e5f-8a6b-7c8d9e0f1a2b",
      "integrationId": "0197ff02-5e6f-7a8b-9c0d-1e2f3a4b5c6d",
      "entityType": "Part Revision",
      "explorationId": "0199d001-7a8b-7c9d-8e0f-1a2b3c4d5e6f"
    }
  ]
}
```

| Field                               | Description                                                                                                                                                                                                                                                                                    |
| ----------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `deliveryId`                        | Identifies the request. Matches the `Violet-Delivery-Id` header and stays the same on retries. Safe to use as an idempotency key.                                                                                                                                                              |
| `timestamp`                         | When the batch was formed. Unchanged on retries.                                                                                                                                                                                                                                               |
| `source`                            | The system every event in the request comes from, as a lowercase slug. Connectors of one product share one slug: `teamcenter`, `altium` (Altium 365 and Altium Designer), `solidworks-pdm`. Other apps use the slug of their name, for example `duro-hub`. Pings and resync events use `none`. |
| `subscriptionId`                    | The webhook's id.                                                                                                                                                                                                                                                                              |
| `events[].eventId`                  | Unique per event. Use it to deduplicate.                                                                                                                                                                                                                                                       |
| `events[].type`                     | One of the [event types](#event-types) below.                                                                                                                                                                                                                                                  |
| `events[].occurredAt`               | When the change happened in Violet.                                                                                                                                                                                                                                                            |
| `events[].entityId`                 | The changed entity. Read it with the [Entities endpoint](https://docs.violetlabs.com/features/api/endpoints/entities.md).                                                                                                                                                                      |
| `events[].integrationId`            | The integration the entity belongs to.                                                                                                                                                                                                                                                         |
| `events[].entityType`               | The entity type name, for example `Part Revision`.                                                                                                                                                                                                                                             |
| `events[].explorationId`            | Only on webhooks linked to an exploration.                                                                                                                                                                                                                                                     |
| `events[].reason`, `events[].since` | Only on `subscription.resync_required`.                                                                                                                                                                                                                                                        |

Payloads don't carry property names or values, just the ids. You can use the Violet API to fetch more details about the entities as needed. Changes from different source systems always go out in separate requests.

## Event types <a href="#event-types" id="event-types"></a>

You pick which entity events a webhook sends. Resync and ping events are always sent.

| Type                           | Sent when                                                                                                                                                      |
| ------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `entity.created`               | A new entity of a watched type appears.                                                                                                                        |
| `entity.updated`               | A watched property of the entity changed.                                                                                                                      |
| `entity.deleted`               | The entity was deleted. Linked webhooks send it only for entities they already told you about.                                                                 |
| `entity.bom.changed`           | A line was added to or removed from the entity's own BOM, or a line's quantity changed.                                                                        |
| `entity.where_used.changed`    | The entity was added to or removed from a parent's BOM.                                                                                                        |
| `entity.filter_entered`        | Linked only. The entity's own change made it match the exploration, and no other event was sent for it.                                                        |
| `entity.filter_exited`         | Linked only. The entity's own change made it stop matching. A delete is never an exit.                                                                         |
| `subscription.resync_required` | Re-read everything. See [Resync a linked webhook](https://docs.violetlabs.com/features/api/outbound-webhooks/delivery-and-retries.md#resync-a-linked-webhook). |
| `subscription.ping`            | A test sent from the app or the API.                                                                                                                           |

BOM events cover assembly relationships. A child's own property change is only `entity.updated` for that child; it never produces a BOM event for its parents.

## Resync events

A `subscription.resync_required` event carries a `reason` and, when known, `since`:

```json
{
  "eventId": "0199e3d0-1a2b-7c3d-8e4f-5a6b7c8d9e0f",
  "type": "subscription.resync_required",
  "occurredAt": "2026-10-21T09:12:03.000Z",
  "explorationId": "0199d001-7a8b-7c9d-8e0f-1a2b3c4d5e6f",
  "reason": "exploration_changed"
}
```

| `reason`              | Meaning                                                                                                                                                                |
| --------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `exploration_changed` | Someone edited the linked exploration's filters.                                                                                                                       |
| `capture_overflow`    | Too many changes built up while the webhook was paused or disabled.                                                                                                    |
| `pending_purged`      | Captured changes that had not been sent were cleared.                                                                                                                  |
| `full_refetch`        | Violet re-read a source system in full, so individual changes were not tracked. This can happen for example when an integration is updated to add/remove entity types. |


---

# 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/events-and-payloads.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.
