Fixed syntax issues in webhooks endpoint