Skip to main content

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.

Event

core.document.deleted
This event fires when a document is deleted from Core — either via the API or through the Chamelio web application. Deletion is permanent and the document’s content and metadata are no longer accessible.

Payload Example

{
  "event": "core.document.deleted",
  "event_id": "evt_01HXYZ4455667788",
  "organization_id": "org_abc123",
  "timestamp": "2025-06-03T11:00:00Z",
  "data": {
    "file_id": "file_abc123",
    "file_name": "master_services_agreement.pdf",
    "file_extension": "pdf",
    "deleted_by": "admin@example.com"
  }
}

Payload Fields

Envelope

FieldTypeDescription
eventstringAlways core.document.deleted
event_idstringUnique delivery ID — use to deduplicate retries
organization_idstringID of the organization that owned the document
timestampstringISO 8601 UTC timestamp of the event
dataobjectEvent-specific payload (see below)

Data Object

FieldTypeDescription
file_idstringUnique identifier of the deleted document
file_namestringName of the document at time of deletion
file_extensionstringFile extension of the deleted document
deleted_bystringEmail of the user who performed the deletion

Notes

This event is your last opportunity to sync the deletion to external systems. Once the event fires, the document and all associated data are permanently removed from Chamelio and cannot be recovered.