def create(self, webhook: WebhookModel) -> WebhookModel:
        """
        Create a webhook

        Args:
            webhook (WebhookModel): Webhook to create

        Returns:
            WebhookModel: Created webhook

        """
        response = self.http_client.post(
            url=self.url_stub,
            json={
                "url": webhook.url,
                "events": webhook.events,
                "description": webhook.description,
            },
        )
        response.raise_for_status()
        response_json = response.json()
        webhook = self._model_from_json(json_data=response_json)
        self._log_message(message=f"Created webhook with id {webhook.id}")
        return webhook

        Create a webhook

        Args:
            webhook (WebhookModel): Webhook to create

        Returns:
            WebhookModel: Created webhook

        
argilla/src/argilla/_api/_webhooks.py