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.uploaded
This event fires immediately after a document is received via the Upload Document API or through the Chamelio web application. It signals that the document has been stored and is queued for processing.

Payload Example

{
  "event": "core.document.uploaded",
  "event_id": "evt_01HXYZ1234567890",
  "organization_id": "org_abc123",
  "timestamp": "2025-06-01T14:32:00Z",
  "data": {
    "document_processing_id": 12345,
    "file_id": "file_abc123",
    "file_name": "master_services_agreement.pdf",
    "file_extension": "pdf",
    "uploaded_by": "john.doe@example.com",
    "attributes": [
      {
        "name": "contract_type",
        "data_type": "text",
        "value": "Master Services Agreement"
      }
    ]
  }
}

Payload Fields

Envelope

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

Data Object

FieldTypeDescription
document_processing_idintegerID of the async processing job
file_idstringPermanent unique identifier for the document
file_namestringOriginal file name
file_extensionstringFile extension (e.g., pdf, docx)
uploaded_bystringEmail of the user who triggered the upload
attributesarrayMetadata attributes attached at upload time

Notes

This event fires before processing completes. Listen for core.document.upload_completed or core.document.upload_with_issues to know the final processing outcome.