Jump to content
Pulseway 9.14 🔥

REST API

REST API development

  1. 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.

    • 2 replies
    • 4.7k views
  2. Started by mitch,

    Hello, It is maybe a silly question but I can't figure it out. I want to publish an online webconsole in my dashboard. But I don't know how to publish a system. where do i put the code? pulseway manager? pulseway webapp? I have no idea.. could somebody tell me how this works this is the code: curl https://my.pulseway.com/api/v2/notifications \ -u username:password \ -X POST \ -H "Content-Type: application/json" \ -d '{"instance_id":"my_cloud_agent","title":"Runtime error","message":"Cannot connect to the database.","priority":"critical"}'

  3. Started by bazzacad,

    I've been using the API for a few days now & it's working pretty good. I received an error that said "Too many requests for your account. Try again later" Just curious to know what the limits are?

  4. HI, I'm really struggling to authenticate to API - we have a dedicated hosted solution - therefore our web app base URL is https://[thename].pulseway.com. So, following the API documentation - am i correct in therefore assuming that the API base URL is https://[thename].pulseway.com/api/v2/ ? Every time i login, i get: "invalid username and\or password (199)" I've search forums, and tuned my code accordingly - some things i have tried: Using an account with or without MFA. Using Postman, with API Key as Authorisation - using Username (in plain text) as key, and API Key as Value Using Postman with Basic Auth as Authorisation - u…

  5. Hello, We want to send a post notification via the API, but we always get the message "Unknown system identifier". What are we doing wrong? Below is the script that is used. # Set your Pulseway API credentials $tokenID = "*********" $tokenSecret = "*************" # Pulseway API Endpoint $apiEndpoint = "https://************.pulseway.com/api/v3/notifications" # Notification details $instanceId = "Test" $title = "Testing" $message = "Test succeed" $priority = "Critical" # Create the JSON payload $jsonPayload = @{ InstanceId = $instanceId Title = $title Message = $message Priority = $priority } | Con…

    • 1 reply
    • 1.2k views
  6. Started by Trilliant-JP,

    Hi folks, We were notified earlier this year that V3 of the Pulseway API was in active development. What's the status of that API release, and where can I go check on that announcement or updates? Thanks!

    • 1 reply
    • 1.1k views
  7. Impossible to authenticate on the rest api i copied the curl example replacing username and password i tried with the php example. i tried with my custom library, etc.

  8. Started by JpBIT,

    I am creating a C# program to fetch the "Last Boot Uptime" for all devices under a particular group with /v3/assets But the time format is inconsistent for some devices. Some are in 24hr format others in 12hr format, some has the weekday on it etc.. Eg: 15 February 2024 21:58 22 February 2024 08:57 12 March 2024 08:24 18 March 2024 01:33 17 February 2024 02:11 15 February 2024 21:50 11 March 2024 15:08 17 February 2024 02:44 29 February 2024 00:36 16 March 2024 00:33 16 March 2024 01:29 06 February 2024 15:24 13 March 2024 08:46 Saturday, 2 March 2024 10:12 a.m. Thursday, 14 March 2024 1:36 AM Saturday, February 24, 2024 20:02…

  9. Hi All, I realize there is no agent software for the ARM64 (other than the Pi), and we can't install it on Ubuntu running on the Nvidia Tegra based Jetson TX1 family. I am considering writing an agent based on the REST API and I was wondering if this was the best way to go about doing it. Basically I want to capture the remote system name, IP, and other info, and have it display on the Pulseway Dashboard. We might also consider outsourcing this project, so I might be looking for experienced Pulseway developers who could do this. Thanks for any advice. Jason

    • 1 reply
    • 3.7k views
  10. Started by Cyrion,

    Hi! I try to authenticate and send my first request, but I get the 403 error. Here is my code, whose ENDPOINT is: "https://api.pulseway.com/v3/" var ENDPOINT = _configuration["PulsewayService:ENDPOINT"]; var TOKEN_ID = _configuration["PulsewayService:TOKEN_ID"]; var TOKEN_SECRET = _configuration["PulsewayService:TOKEN_SECRET"]; using (var client = new HttpClient()) { client.BaseAddress = new Uri(ENDPOINT); var auth = TOKEN_ID + ":" + TOKEN_SECRET; var authBytes = Encoding.ASCII.GetBytes(auth); client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", Convert.ToBase64String(authBytes)); var response = aw…

    • 1 reply
    • 1.2k views
  11. Started by vnguy,

    hi there, i'm using postman to try to connect to the API. I'm following this documentation but i'm unable to authenticate. Some details: I don't have MFA on i've tried using key name grantType=password and grant_type=password, but I still get the same error in the screenshot (Grant Type is Required) I'm using base url: https://api.psa.pulseway.com/ i'm at a lost. please advise. thank you!

  12. Started by Mark G38,

    I've been working in the Pulseway REST API, and first off, I wish there were more endpoints here to work with, however, that said, I'm currently looking at the Automation section of the API, and there is the Get Task Execution section. This clearly states my url /api/v2/automation/executions/:id. My question is, where do I find the execution ID? Putting in the actual task ID returns that a task execution not found. Am I just missing a step or something? I don't see anyway through the API or Web UI to actually get any ID numbers for each task execution.

    • 1 reply
    • 2.1k views
  13. Started by darkavenger,

    Hello. I want create new ticket with api but i don't see Source: * AND Type: * api method WHERE IS https://api.psa.pulseway.com/swagger/index.html ?

  14. Started by bazzacad,

    When a system is offline... The "api/v2/assets" endpoint returns that the antivirus is "not_installed". It should return nothing or 0

  15. Started by darkavenger,

    https://api.psa.pulseway.com/swagger/index.html Hello. I want create new ticket with api but i don't see Source: * api method

  16. Started by Cragdoo,

    Has anyone successfully made RESt calls using powershell Invoke-RestMethod or Invoke-WebRequest? Can't see, to get the header syntax Have tried $header = @{Authorization = 'Basic ' + [Convert]::ToBase64String([Text.Encoding]::ASCII.GetBytes("$($username):$($password)"))} Invoke-RestMethod -uri https://api.pulseway.com/v2/systems -Method POST -Header $header -ContentType "application/json" but keep getting '400 Bad request' any pointers?

    • 1 reply
    • 3.7k views
  17. I have used the rest api Publish and Notify to make a system in Pulseway. When I run the api the system will be updated and there will be notifications of the devices I monitor. (if their are up or down) But if I run the script I get alle the notifications that I don't want because the state isn't change of the devices. Is there a php script that makes the Pulseway Notifiy api remember the state of the last send notification so there will only be send a notification if the state is change since the last send notification? Kind regards, Mitch

    • 1 reply
    • 3.2k views
  18. Our business operates with hundreds of products in our inventory and going through all of them and manually entering them into PSA was not exactly an option, and without an import function, I had to develop an import tool that uses the PSA API. I developed it originally with hard coded parameters, in a single class, but went back today and improved it for distribution to everyone here. To view the source code, check out the repository at https://bitbucket.org/garrettbromley/pulseway-product-import/ To download the executable files, download PulsewayProductImport-v2.zip at https://bitbucket.org/garrettbromley/pulseway-product-import/downloads/ Instruc…

    • 0 replies
    • 3.7k views
  19. Calling: https://{endpoint}/v3/devices/:id/appliedpolicies Error: GetSystemAppliedPolicies cannot be executed due to lack of permissions Why am I getting this error I do not see any permission settings on the token setup?

  20. Hi, I am looking for a way to remove devices via the API, for example: Search for a device name with a wildcard, eg: "COMPUTER3" - full name: COMPUTER3 - London - 1101 And delete that device from systems (no longer billed) The reason we need this, is because we constantly have duplicate machines in the portal and are being harassed by account managers to buy more licenses. The duplicates exist because we re-image the machine and the portal cannot pick up on the fact it's a same machine (probably because the pulseway ID is generated at the time of installation) We have an in house asset check in application, we can add additional code …

    • 0 replies
    • 1k views
  21. Started by 1967RB,

    Hi, I am attempting to do something I'm not sure is possible . My customer has adopted Pulseway to keep track of their PCs running their systems and would like more than just the PC-related events to show up in Pulseway. We are running a LabVIEW executable application that controls a manufacturing system and monitors inputs and checks those inputs against expected limits. If any of those inputs are outside the specified limits, the system will output warning and alarm texts and emails indicating what went wrong. My customer would like the LabVIEW application to send these alarms and warnings to Pulseway so that they can set up rules for who gets what alarms and use the…

    • 0 replies
    • 2k views
  22. Started by Alejandro,

    Hi. Within the api, which field represents the free space on hard drives? which field represents last checked in windows update? Regards

    • 0 replies
    • 2.3k views
  23. Hello all, my goal is to create a simple custom desktop application to show notifications on windows desktop. The problem I am trying to solve is that when I'm working on the service desk and I start working on a ticket I lose track of new tickets coming into the system. I find it hard to focus and read when I constantly have to go back to the service desk webpage and refresh it to see if new tickets come in. It would be great to have a windows application running on my system that is aware of new tickets coming into the service desk and pop up some form of a notification on my system. I need some help in getting started. I know how to program in python and …

  24. For those of you who would like to use WHMCS (Automated web hosting platform) but wish to use Pulseway PSA for your main ticketing software and for managing your consulting business if you are an MSP like us, I had to make a hook for WHMCS which takes the client details and automatically makes a client account for them within PSA and grants them access to the ticketing system, using the same password for WHMCS. This vastly simplifies things for the client, and conforms the tickets into one system. Once this file is created, it needs to be placed into the following directory with any name: \includes\hooks\AddClientToPSA.php YOU WILL NEED TO QUERY SOME VALUES YO…

    • 0 replies
    • 3.6k views