Node-RED Integration
Using HTTP Request Node
You can send alerts directly from Node-RED using the built-in HTTP Request node.
REST API Flow
- Add an
Injectnode. - Set
msg.payload. Select typeJSONand press... - Enter the following payload:
json
{
"dock_id": "<Dock ID>",
"secret_key": "<Secret Key>",
"msg": "Hello from Node-RED!"
}- Add an
http requestnode. - Select
MethodasPOST - Enter URL:
https://api.pingdock.io/ping- Optionally connect to a
Debugnode to see the response.
