I'm trying to setup a Notification trigger for http action to post to our status page using API.
I keep getting an HTTP 401 unauthorised error. I want to use an API key to connect. So far I have this working from postman.
my headers in postman are Content-Type:application/x-www-form-urlencoded X-Cachet-Token: <token removed for privacy>
body in postman is
-d {: name:Test1 message:Created via API status:2 visible:1 component_id:1 component_status:2 }:
Has anyone done this or if someone could provide some thoughts that would be great!
Hi there,
If you send this API call via a script from a PowerShell, does it work from there? I'm afraid that Cachet is not our product and therefore we cannot guide you through the API documentation which is required to authenticate. If you need any assistance from the PRTG side, I'll be happy to assist you.
Kind regards,
Felix Saure, Tech Support Team
May, 2019 - Permalink