Skip to main content

WebhookLog

Webhook delivery audit log.

Records each webhook delivery attempt with status, response,
and error information for debugging and auditing.

Attributes:
webhook: Reference to the Webhook DocType name
event: The event that triggered the webhook
status: Delivery status ('success' or 'failed')
response_code: HTTP response status code
response_body: HTTP response body (truncated)
error: Error message if delivery failed
timestamp: When the delivery was attempted

Source: webhook_log.py

Fields

FieldTypeRequiredDescriptionValidators
webhookstrReference to Webhook nameminLen: 1
eventstrEvent that triggered the webhook (e.g., 'doc.created')minLen: 1
statusstrDelivery status: 'success' or 'failed-
response_codeintHTTP response status code-
response_bodystrNoneHTTP response body (may be truncated)
errorstrNoneError message if delivery failed
timestampdatetimeWhen the delivery was attempted-

Permissions

RoleCreateDeleteReadWrite
Admin
Manager

Configuration

SettingValue
SubmittableFalse
Track ChangesTrue

Controller

Controller hooks are implemented in *_controller.py files. Available lifecycle hooks:

  • validate() - Called before save, raise exceptions for validation errors
  • before_insert() - Called before inserting a new document
  • after_insert() - Called after successfully inserting
  • before_save() - Called before saving (insert or update)
  • after_save() - Called after saving
  • before_delete() - Called before deleting
  • after_delete() - Called after deleting