REST API • NODE-RED
Calling REST APIs from Node-RED
A common Node-RED API pattern is an Inject node feeding an HTTP Request node, followed by processing and debugging.
Inject → HTTP Request → Function → Debug
HTTP methods
GET is commonly used to retrieve data. POST and PUT are used when sending data to an API, while DELETE is used to remove a resource when the API supports it.
Authentication
APIs may use bearer tokens, API keys, basic authentication or other mechanisms. Never publish real credentials inside a public flow or article.
Use the REST API Builder to generate a starter flow.