# WebhookRuleSchema

## metadata

### Webhook rule metadata.

- **id**: string (Required, format: uuid)  
  The ID of the webhook.

- **name**: string (Required)  
  The name of the webhook. Unique within a project.

## spec

### Webhook rule spec.

- **authentication**: object (Optional)  
  Authentication details.  
  - **headers**: map from strings to string (Optional)  
    Authentication headers.  
    - [any key]: string  
  
  - **queryParams**: map from strings to string (Optional)  
    Authentication query parameters.  
    - [any key]: string

- **enabled**: boolean (Required)  
  Indicates whether the webhook is enabled.

- **events**: list of enums (Required)  
  List of events that trigger the webhook.

- **headers**: map from strings to string (Optional)  
  Headers to include in the webhook request.  
  - [any key]: string

- **queryParams**: map from strings to string (Optional)  
  Query parameters to include in the webhook request.  
  - [any key]: string

- **url**: string (Required)  
  The URL the webhook should call.
