> ## Documentation Index
> Fetch the complete documentation index at: https://docs.chamelio.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Webhooks Overview

> Receive real-time event notifications from Chamelio when documents change or workflow tasks progress, so external systems can stay in sync with your operations.

Chamelio webhooks let you subscribe to platform events and receive HTTP POST notifications to your endpoint as they happen - no polling required.

## How Webhooks Work

1. You register a webhook endpoint URL in the Chamelio web application
2. When a subscribed event occurs, Chamelio sends an HTTP `POST` request to your URL with the event payload
3. Your server processes the payload and responds with a `2xx` status code to acknowledge receipt

## Registering a Webhook

Admins configure webhook endpoints in **Settings > Developer > Webhooks** in the Chamelio web application. You can:

* Register multiple endpoint URLs
* Subscribe each endpoint to specific event types
* Edit, pause (or reactivate), or delete an endpoint from the **⋮** menu on its row

## Authentication & Verification

> [!NOTE]
>
> Chamelio doesn't sign webhook requests today. Requests don't include a signature header, and registering a webhook doesn't give you a secret, so there's nothing to verify a request against.

Until signing is available, protect your endpoint:

* Use an HTTPS endpoint URL that's hard to guess, and don't share it.
* Treat a webhook as a notification. Before you act on it, fetch the current record from the Chamelio API using the IDs in the payload.

## Retry Policy

If your endpoint times out, returns `408`, `429`, or a `5xx` status, or can't be reached, Chamelio retries the delivery with a short backoff, up to 3 attempts in total. Other responses, such as other `4xx` or `3xx` statuses, aren't retried. A delivery that still fails is recorded as failed.

## Common Payload Fields

All webhook events share a common envelope:

```json theme={null}
{
  "event": "core.document.uploaded",
  "event_id": "3f7c1a8e-5b2d-4e9a-9c31-8a6f0d4b7e12",
  "organization_id": 42,
  "user_id": 1337,
  "payload_version": 1,
  "timestamp": "2026-09-02T14:32:00Z",
  "data": { ... }
}
```

| Field | Type | Description |
| - | - | - |
| `event` | string | Event type identifier (for example `core.document.uploaded`) |
| `event_id` | string | UUID for this event delivery. Use it to deduplicate retries |
| `organization_id` | integer | ID of the organization in which the event occurred |
| `user_id` | integer or null | Chamelio user associated with the event; see each event's documentation. For `clickwrap.accepted`, this is the clickwrap creator. `null` when the sender has no associated user |
| `payload_version` | integer | Envelope schema version. Currently `1` for every event |
| `timestamp` | string | ISO 8601 UTC timestamp of when the event was generated |
| `data` | object | Event-specific payload. See individual event pages for the schema |

> [!NOTE]
>
> `organization_id` and `user_id` are integers, not prefixed strings. IDs inside `data` follow the same
> rule: document, task, and attachment identifiers are integers, while workflow identifiers are strings.

## Available Events

### Knowledge Center - Documents

| Event | Description |
| - | - |
| [`core.document.uploaded`](https://docs.chamelio.ai/api-reference/webhooks/core/document-uploaded) | A new document was uploaded to Knowledge Center |
| [`core.document.upload_with_issues`](https://docs.chamelio.ai/api-reference/webhooks/core/document-upload-with-issues) | A document was uploaded but processing encountered issues |
| [`core.document.upload_completed`](https://docs.chamelio.ai/api-reference/webhooks/core/document-upload-completed) | A document upload finished processing successfully |
| [`core.document.updated`](https://docs.chamelio.ai/api-reference/webhooks/core/document-updated) | A document's attributes or metadata were updated |
| [`core.document.deleted`](https://docs.chamelio.ai/api-reference/webhooks/core/document-deleted) | A document was deleted from Knowledge Center |

### Flows - Workflows

| Event | Description |
| - | - |
| [`flows.workflow.new_version`](https://docs.chamelio.ai/api-reference/webhooks/flows/workflow-new-version) | A new version of a workflow was published |
| [`flows.workflow.deleted`](https://docs.chamelio.ai/api-reference/webhooks/flows/workflow-deleted) | A workflow was deleted |

### Flows - Tasks

| Event | Description |
| - | - |
| [`flows.tasks.created`](https://docs.chamelio.ai/api-reference/webhooks/flows/task-created) | A new workflow task was created |
| [`flows.tasks.step_change`](https://docs.chamelio.ai/api-reference/webhooks/flows/task-step-change) | A task moved to a different step |
| [`flows.tasks.completed`](https://docs.chamelio.ai/api-reference/webhooks/flows/task-completed) | A task was completed |
| [`flows.tasks.canceled`](https://docs.chamelio.ai/api-reference/webhooks/flows/task-canceled) | A task was canceled |
| [`flows.tasks.commented`](https://docs.chamelio.ai/api-reference/webhooks/flows/task-commented) | A comment was added to a task |
| [`flows.tasks.new_negotiate_version`](https://docs.chamelio.ai/api-reference/webhooks/flows/task-new-negotiate-version) | A new negotiation version of a document was added to a task |
| [`flows.tasks.new_attached_document`](https://docs.chamelio.ai/api-reference/webhooks/flows/task-new-attached-document) | One or more attachments were added to a task |

### Clickwrap

| Event | Description |
| - | - |
| [`clickwrap.accepted`](https://docs.chamelio.ai/api-reference/webhooks/clickwrap/accepted) | An end user accepted the active version of a clickwrap |

### Documents Vault

| Event | Description |
| - | - |
| [`vault.document.created`](https://docs.chamelio.ai/api-reference/webhooks/vault/document-created) | A file was added to Documents Vault |
| [`vault.document.updated`](https://docs.chamelio.ai/api-reference/webhooks/vault/document-updated) | A file was renamed, moved, or had its content replaced |
| [`vault.document.deleted`](https://docs.chamelio.ai/api-reference/webhooks/vault/document-deleted) | A file was deleted |
| [`vault.folder.created`](https://docs.chamelio.ai/api-reference/webhooks/vault/folder-created) | A folder was created |
| [`vault.folder.updated`](https://docs.chamelio.ai/api-reference/webhooks/vault/folder-updated) | A folder was renamed or moved |
| [`vault.folder.deleted`](https://docs.chamelio.ai/api-reference/webhooks/vault/folder-deleted) | A folder and everything in it was deleted |
