Jump to content

Can you use the REST api to pull notifications into another service?


pybe

Recommended Posts

Hi I am looking for a way to pull and display live notifications into another application. Specifically, we have an internal dashboard using node-red and would like to add some info from Pulseway on to it.

 

Link to comment
Share on other sites

If I am correct I should be able to:

curl  https://api.pulseway.com/v2/notifications -u myuser:myapitoken

and I should get json output for current notifications

I just get invalid username and or password.

{"data":null,"meta":{"response_code":401,"error_message":"Invalid username and/or password (199)."}}

I quite expect I'm missing something obvious, but don't know what...

Link to comment
Share on other sites

  • Staff

Hi @pybe,

Please tel us which Pulseway subscription are you using? 

Free plan: https://api.pulseway.com/v2/systems/:id/notifications

curl https://https://api.pulseway.com/v2/systems/11111111-2222-3333-4444-555555555555/notifications -u username:password 

Team plan: https://your-server-name/api/v2

curl https://https://your-server-name/api/v2/systems/11111111-2222-3333-4444-555555555555/notifications -u username:password 

the ID is the ID for the system.

Please let me know if you have any further questions regarding this.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...