Jump to content
pybe

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

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.

 

Share this post


Link to post
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...

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...