REST API Notifications

Hello all,

I hope someone can help me understand the notification option in the REST API a bit more.
I am trying to create a small web page that displays the current media playing. I would like to integrate this into my domoticz/ dashticz dashboard.
I currently use an iframe to display the full volumio interface but ideally I would like to use the API to only display what I need.
So far, getting data through curl and decoding the json works perfectly.
Reading through the manual I came across the notification option. What I’m reading, I have to tell volumio to notify my webserver on state changes with the command volumio.local/api/v1/pushNotificationUrls?url= . I don’t understand what the endpoint is. Do I have to put the URL to my php page here? Do I need to put code in my page to pick up the POST that volumio put out?
When I issue the command to add the command above all I get is the message there are no URL’s defined for push notifications.

Help would be very much appreciated

I found the answer if anybody is interested. You have to make a curl POST request and I issued it from the commandline like this:

curl -d "url=" -H "Content-Type: application/x-www-form-urlencoded" -X POST http://localhost:3000/api/v1/pushNotificationUrls

This gave me the correct response of {“success”:true} and volumio.local/api/v1/pushNotificationUrls also showed the URL I sent.