id | string, UUID, 🔒 system | ✅ Yes | Unique identifier (read-only) | – | Unique identifier of the webhook | ”webhook-uuid-123” |
workspace | Workspace (UUID) | ✅ Yes | Foreign key reference | – | Reference to the workspace | ”workspace-uuid-456” |
url | string | ✅ Yes | valid URL format | – | Webhook endpoint URL | ”https://api.example.com/webhooks/well” |
secret | string | ⚪ No | nullable | – | Webhook secret for signature verification | ”your-webhook-secret” |
events | string[] | ✅ Yes | array of event types | document., company., person., workspace., collection.* | Array of subscribed event types | [“document.created”, “document.updated”] |
is_active | boolean | ⚪ No | default: true | true, false | Webhook active status | true |
retry_count | number | ⚪ No | default: 3, max: 10 | 0-10 | Number of delivery retries | 3 |
timeout_ms | number | ⚪ No | default: 5000, max: 30000 | 1000-30000 | Request timeout in milliseconds | 5000 |
last_delivery_at | string (ISO 8601) 🔒 system | ⚪ No | nullable timestamp | – | Last successful delivery timestamp | ”2024-01-15T10:30:00Z” |
last_failure_at | string (ISO 8601) 🔒 system | ⚪ No | nullable timestamp | – | Last failure timestamp | ”2024-01-15T11:00:00Z” |
failure_count | number 🔒 system | ⚪ No | default: 0 | 0+ | Consecutive failure count | 0 |
created_at | string (ISO 8601) 🔒 system | – | auto timestamp | – | Creation timestamp | ”2023-01-01T12:00:00Z” |
updated_at | string (ISO 8601) 🔒 system | – | auto timestamp | – | Last updated timestamp | ”2024-01-01T12:00:00Z” |
deleted_at | string | null 🔒 system | ⚪ No | nullable ISO 8601 | – | Deletion timestamp (soft delete) | “2024-01-01T12:00:00Z” |