Complete reference for all webhook event payloads
{ "event": "event.name", "timestamp": "2024-01-10T12:00:00Z", "data": { /* event-specific data */ } }
{ "event": "document.uploaded", "timestamp": "2024-01-10T12:00:00Z", "data": { "document_id": "doc_abc123", "dataset_id": "ds_xyz789", "filename": "product-docs.pdf", "size_bytes": 1048576, "status": "processing", "metadata": { "title": "Product Documentation", "category": "docs" } } }
{ "event": "document.processed", "timestamp": "2024-01-10T12:01:30Z", "data": { "document_id": "doc_abc123", "dataset_id": "ds_xyz789", "chunks_created": 47, "processing_time_ms": 8450, "status": "ready", "embedding_model": "text-embedding-3-small" } }
{ "event": "document.processing_failed", "timestamp": "2024-01-10T12:02:00Z", "data": { "document_id": "doc_abc123", "dataset_id": "ds_xyz789", "error": { "code": "invalid_pdf", "message": "PDF file is corrupted or encrypted", "details": "Unable to extract text from PDF" } } }
{ "event": "document.deleted", "timestamp": "2024-01-10T12:05:00Z", "data": { "document_id": "doc_abc123", "dataset_id": "ds_xyz789", "deleted_by": "user_xyz123" } }
{ "event": "dataset.created", "timestamp": "2024-01-10T11:00:00Z", "data": { "dataset_id": "ds_xyz789", "name": "Product Knowledge Base", "description": "All product docs", "is_public": false, "created_by": "user_xyz123" } }
{ "event": "dataset.updated", "timestamp": "2024-01-10T12:10:00Z", "data": { "dataset_id": "ds_xyz789", "changes": { "name": "Updated Product KB", "description": "All product documentation" }, "updated_by": "user_xyz123" } }
{ "event": "dataset.deleted", "timestamp": "2024-01-10T13:00:00Z", "data": { "dataset_id": "ds_xyz789", "document_count": 42, "deleted_by": "user_xyz123" } }