Start workflow with an API call

Hello everyone,

I just recently discovered n8n (exactly since yesterday) and wanted to start studying it to try and see if I can use it as an alternative to Node-Red.

In Node-Red I have a workflow that receives an API call via GET passing a variable. This variable is then entered into a SQL query and the result is written to a TXT file.

I can’t figure out with n8n how I can get the workflow to start with the API call.

Can this be done or should I start with a webhook?

Thanks

Information on your n8n setup

  • n8n version: 1.45.1
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app): npm
  • Operating system: Ubuntu server 24.04

Hi, welcome to the n8n community!

You were on the right track - this is indeed what the webhook node is for. It’ll listen to incoming requests and pass on the incoming parameters to the next node.

You can find the documentation here. Please read it carefully to understand the difference between testing and production URLs and make sure you select the right HTTP method.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.