Query parsing for webhooks