Title: [BUG] Generic webhook does not accept the methods, headers, or query parameters its Setup Instructions promise · Issue #6888 · simstudioai/sim · GitHub
Open Graph Title: [BUG] Generic webhook does not accept the methods, headers, or query parameters its Setup Instructions promise · Issue #6888 · simstudioai/sim
X Title: [BUG] Generic webhook does not accept the methods, headers, or query parameters its Setup Instructions promise · Issue #6888 · simstudioai/sim
Description: Describe the bug The generic webhook trigger's Setup Instructions promise three things the endpoint does not do: Setup Instructions say Actual behavior "The webhook accepts any HTTP method (GET, POST, PUT, DELETE)" apps/sim/app/api/webho...
Open Graph Description: Describe the bug The generic webhook trigger's Setup Instructions promise three things the endpoint does not do: Setup Instructions say Actual behavior "The webhook accepts any HTTP method (GET, PO...
X Description: Describe the bug The generic webhook trigger's Setup Instructions promise three things the endpoint does not do: Setup Instructions say Actual behavior "The webhook accepts any HTTP method...
Opengraph URL: https://github.com/simstudioai/sim/issues/6888
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[BUG] Generic webhook does not accept the methods, headers, or query parameters its Setup Instructions promise","articleBody":"**Describe the bug**\n\nThe generic webhook trigger's Setup Instructions promise three things the endpoint does not do:\n\n| Setup Instructions say | Actual behavior |\n|---|---|\n| \"The webhook accepts any HTTP method (GET, POST, PUT, DELETE)\" | `apps/sim/app/api/webhooks/trigger/[path]/route.ts` only exports `POST` (and a `GET` challenge/delivery path), so `PUT`/`PATCH`/`DELETE` get `405` |\n| \"headers, body, and query parameters are available in your workflow\" | the generic provider's `formatInput` (`apps/sim/lib/webhooks/providers/generic.ts`) returns only the body — request headers are used solely for the idempotency key and signature checks |\n| the HTTP method used for the delivery | not carried into the execution payload at all, so a workflow behind one URL cannot tell a create from a delete |\n\nThe trigger also declares `outputs: {}`, so the reference dropdown in the editor offers no completions for the request metadata and users have to type paths by hand.\n\nA concrete consequence: a webhook URL sent in an email cannot be triggered by clicking the link, because a plain browser `GET` used to answer `405`. (GET delivery is the one part that has since been addressed.)\n\n**To Reproduce**\n\n1. Create a workflow with a Webhook trigger, provider \"Generic\".\n2. Read the Setup Instructions shown in the trigger's config panel.\n3. `curl -X PUT \"$WEBHOOK_URL?id=42\" -H 'X-Custom: hello' -d '{}'` → `405 Method Not Allowed`.\n4. `curl -X POST \"$WEBHOOK_URL?id=42\" -H 'X-Custom: hello' -d '{\"a\":1}'` → `200`, but the workflow input contains only `{\"a\":1}`: no `headers`, no `query`, no `method`.\n\n**Expected behavior**\n\nThe endpoint should behave the way the Setup Instructions describe: accept the documented HTTP methods for the generic provider, and expose the request method, query parameters, and request headers to the workflow — with credential-bearing headers withheld so they don't end up in execution logs. Providers other than `generic` should keep answering `405` for non-POST deliveries.\n\n**Additional context**\n\nThe Setup Instructions text was introduced in #903; the route at that commit already accepted only GET and POST, so this is not a regression — the documentation was ahead of the implementation from the start. Happy to open a PR against `staging`; I have the change implemented and tested locally.\n","author":{"url":"https://github.com/minijeong-log","@type":"Person","name":"minijeong-log"},"datePublished":"2026-08-20T09:56:11Z","url":"https://github.com/simstudioai/sim/issues/6888"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:83090a5d-6db4-281f-7c59-78b3764e754a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E868:2E7BAB:F5D9CE:15211D2:6AFB6547 |
| html-safe-nonce | 59b7c0e667b4ca4c7ebc1695a70d2e19ce098d4c4d2142dde04f584f3153de1e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFODY4OjJFN0JBQjpGNUQ5Q0U6MTUyMTFEMjo2QUZCNjU0NyIsInZpc2l0b3JfaWQiOiI1NzgzMjg0NjQ1MzgyMjg0NjE1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | dc1b025d995fa1557b270d408837aab5d6d3edb5d4aad88227e140dc8e848f64 |
| hovercard-subject-tag | issue:5202123726 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/simstudioai/sim/6888/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a24cfcdcfe7f1e27356f72330b30adb61cb50bd4ec318efde7218d81377d7045/simstudioai/sim/issues/6888 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a24cfcdcfe7f1e27356f72330b30adb61cb50bd4ec318efde7218d81377d7045/simstudioai/sim/issues/6888 |
| og:image:alt | Describe the bug The generic webhook trigger's Setup Instructions promise three things the endpoint does not do: Setup Instructions say Actual behavior "The webhook accepts any HTTP method (GET, PO... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | minijeong-log |
| hostname | github.com |
| expected-hostname | github.com |
| None | ea33d13c96d0ff66bd8fa906b193d2213536b78cb06b0c50a4632c58b1418f94 |
| turbo-cache-control | no-preview |
| go-import | github.com/simstudioai/sim git https://github.com/simstudioai/sim.git |
| octolytics-dimension-user_id | 199344406 |
| octolytics-dimension-user_login | simstudioai |
| octolytics-dimension-repository_id | 912559512 |
| octolytics-dimension-repository_nwo | simstudioai/sim |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 912559512 |
| octolytics-dimension-repository_network_root_nwo | simstudioai/sim |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 59ef97164c52cf59bd10558ddec9c4f482763988 |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width