We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ac94241 commit fdf6c4aCopy full SHA for fdf6c4a
apps/sim/app/api/webhooks/trigger/[path]/route.ts
@@ -123,6 +123,15 @@ export async function POST(
123
return authError
124
}
125
126
+ const isGrainVerificationRequest =
127
+ foundWebhook.provider === 'grain' && (!body || Object.keys(body).length === 0 || !body.type)
128
+ if (isGrainVerificationRequest) {
129
+ logger.info(
130
+ `[${requestId}] Grain verification request detected - returning 200 for reachability test`
131
+ )
132
+ return NextResponse.json({ status: 'ok', message: 'Webhook endpoint verified' })
133
+ }
134
+
135
let preprocessError: NextResponse | null = null
136
try {
137
preprocessError = await checkWebhookPreprocessing(foundWorkflow, foundWebhook, requestId)
0 commit comments