n8n Integration
You can send PingDock alerts from your n8n workflow using the HTTP Request node.
API request
- Add an HTTP Request node.
- Method:
POST - URL:
https://api.pingdock.io/ping- Enable
Send Bodyswitch - Set
Body Content TypeasJSON - You can
Specify BodyasJSONor asUsing Fields Below.
Use this structure
json
{
"dock_id": "",
"secret_key": "",
"msg": "Hello from n8n!"
}For Using Fields Below set fields manually
Name: dock_id
Value: <your Dock ID>
Name: secret_key
Value: <Dock's secret key>
Name: msg
Value: <message to send>Remember that you can always use variables from previous steps as a message.
Webhook method
- Add an HTTP Request node.
- Method:
POST - URL:
https://api.pingdock.io/webhook- Select
AuthenticationasGeneric Credential Type - Select
Generic Auth TypeasBasic Auth - Create
Basic Authcredentials, where
User: <Dock ID>
Password: <Seceret Key>- Enable
Send Bodyswitch - Set
Body Content TypeasJSON - You can
Specify BodyasJSONor asUsing Fields Below.
Use this structure
json
{
"msg": "Hello from n8n!"
}For Using Fields Below set fields manually
Name: msg
Value: <message to send>Remember that you can always use variables from previous steps as a message.
