#!/bin/bash BASE_URL="https://api.backoffice.biz.id" echo "🔍 Testing different webhook path variations..." echo "" # Test different paths paths=( "/webhook-test/create-meet" "/webhook/create-meet" "/webhook-test/" "/webhook/" "/test/create-meet" "/create-meet" "/webhook-test" ) for path in "${paths[@]}"; do url="${BASE_URL}${path}" echo -n "Testing $url: " response=$(curl -s -o /dev/null -w "%{http_code}" -X POST "$url" \ -H "Content-Type: application/json" \ -d '{"test": true}' \ --max-time 5) if [ "$response" = "200" ] || [ "$response" = "201" ] || [ "$response" = "202" ]; then echo "✅ SUCCESS (HTTP $response)" elif [ "$response" = "404" ]; then echo "❌ Not Found (404)" elif [ "$response" = "000" ]; then echo "⏱️ Timeout/Connection Error" else echo "⚠️ HTTP $response" fi done echo "" echo "💡 Tips:" echo "- If all paths return 404, check if n8n is running at $BASE_URL" echo "- Make sure the webhook workflow is active in n8n" echo "- Check the webhook node path in your n8n workflow"