It would help if there was a node for:
Exposing the incoming HTTP method (GET, POST, PUT, PATCH, DELETE) in the Webhook node output and/or response headers (e.g. request.method and/or x-http-method).
My use case:
I use the Webhook node as an API entry point where a single endpoint handles multiple HTTP methods, similar to REST routing.
Typical pattern:
-
GET→ read data -
POST→ create or confirm a resource -
PUT / PATCH→ update -
DELETE→ remove
In this context, the HTTP method is a first-class routing signal. Currently, implementing method-based logic in n8n requires workarounds and makes workflows harder to read, reason about, and maintain.
If the HTTP method were explicitly available (for example as request.method in the node output, or as a response header like x-http-method), it would enable:
-
Clear and explicit routing logic
-
Cleaner API-style workflows
-
Fewer hacks and assumptions
-
Better maintainability for complex webhook-based APIs
Any resources to support this?
-
REST API best practices rely on HTTP methods as the primary routing mechanism.
-
Most backend frameworks (Express, Fastify, Laravel, Django, etc.) expose the HTTP method by default for routing and middleware.
-
n8n is increasingly used to build API and API-adjacent workflows where this pattern is standard.