Introduce header-based authentication for the n8n webhook request by adding $AuthHeaderName and $AuthHeaderValue, constructing a $Headers hashtable, and passing it to Invoke-RestMethod via the -Headers parameter. Keeps the existing payload (status, service, output) and log retrieval; webhook URL is unchanged.
3.5 KiB
3.5 KiB