REST API
REST API development
49 topics in this forum
-
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
-
-
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
-
-
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
-
-
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.
-
- 1 reply
- 1k views
-
-
Hello all! I keep getting 401 Unauthorized when trying to get all systems using either basic auth or API key. I have 2FA disabled... Any hint? Thank you!
- 2 replies
- 2.5k views
-
Hi, I am testing to send notifications but I keep receiving a 403 error? I tried several things username : API-Key / username MFA with - or without But 403 keeps comming back. Someone any idea?
-
- 3 replies
- 3.2k views
- 1 follower
-
-
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!
-
- 1 reply
- 2k views
-
-
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
-
-
I have what was a working PowerShell script to get a list of all my systems in Pulseway. It is no longer working. I am getting a 200 response, just no data. I even tried to replicate it in Node JS since there is official documentation for it, but I get the same response - 200 but no data. $username = 'administrator' $password = '*************' #Adding credentials to header $header = @{Authorization = 'Basic ' + [Convert]::ToBase64String([Text.Encoding]::ASCII.GetBytes("$($username):$($password)")) } #Call API to return first 100 systems - calls are limited to 100 results $first100 = Invoke-RestMethod -uri https://xxxxxxxxxxxx.pulseway.com/api/v2/systems -Metho…
-
- 4 replies
- 3.5k views
-
-
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 ?
-
- 1 reply
- 2.1k views
-
-
Hi, do you have a timetable for the REST API? As it stands I am interested in doing a 'proof-of-concept' but can imagine several things I'd like to see before it became useful as a central monitoring point. Off the top of my head... 1)Notifications that prompt for a reply eg 'Loss of power for 5 minutes and and UPS down to 20 minutes. Power off non-essential subsystems? (Y/N)') - that can be replied to over a mobile . The difference between this and 'send a command' would be application-specific rather than system-specific, for instance in the middle of a backup you might get a notification like 'Expected volume MONDAY but volume TUESDAY is loaded. 'C'ancel back…
-
- 2 replies
- 4.4k views
-
-
https://api.psa.pulseway.com/swagger/index.html Hello. I want create new ticket with api but i don't see Source: * api method
-
- 1 reply
- 1.7k views
-
-
Hey everyone, I'm building a system for our shop and trying to make use of the REST API. I have things set up and working mostly. However, the problem I'm having is when I request asset information, the first time I'll get a full reply as follows with all the asset info, disk info, and IP addresses, but when I refresh the page, without changing anything, most of that info is missing. See the two examples below. Does anybody have any suggestions on what could be wrong? stdClass Object ( [data] => stdClass Object ( [identifier] => xxxxxxxx-202b-446d-8e87-xxxxxxxxxxxx [name] => DC4 [group] => Group Nam…
- 5 replies
- 5k views
-
Playing around with the API in postman but the asset_info is always blank along with the disks. I am calling the assets endpoint with an ID but I see the same missing info if I don't provide an IP. The reason I am looking into the API is to see about making an integration with Home Assistant. Before I get too far I guess I should ask what the api limitations are. I don't see documentation on how many polls per minute/hour/day though I did see mention of 1/minute in another thread. Are there any other considerations that I need to be aware of to see if this api is a good candidate for inclusion in a home automation system? Thanks!
-
- 4 replies
- 3.9k views
-
-
When a system is offline... The "api/v2/assets" endpoint returns that the antivirus is "not_installed". It should return nothing or 0
-
- 1 reply
- 3.3k views
- 1 follower
-
-
Hi, I need assistance with getting this c# code to authenticate and list all devices. I tried it with the username/password combo AND the token id/secret combo (token permissions are fully open) I get the same error on both as seen here { "Data": null, "Meta": { "TotalCount": 0, "ResponseCode": 403, "ErrorMessage": "A delegate registered to create instances of 'MM.Monitor.Application.ApiTokens.Services.Interfaces.IApiTokensDataService' returned null." } } Here's the Class in C# using Newtonsoft.Json; using RestSharp.Authenticators; using RestSharp; using System; namespace Pulseway_Helper { internal class GetDevices { …
-
- 6 replies
- 1.7k views
- 1 follower
-
-
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
-
-
Hey, We use the REST API. In addition, we are writing a lot of the report of 'Can not perform database operation'. Array ( [data] => [meta] => Array ( [response_code] => 503 [error_message] => Cannot perform database operation ) ) Array ( [data] => [meta] => Array ( [response_code] => 503 [error_message] => Cannot perform database operation ) ) Array ( [data] => [meta] => Array ( [response_code] => 503 [error_message] => Cannot perform database operation ) ) Array ( [data] => [meta] => Array ( [response_code] => 503 [error_message] => Cannot perform database operation ) ) Array ( [data] => [meta] => Array ( […
-
- 3 replies
- 3.9k views
- 1 follower
-
-
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 …
-
- 0 replies
- 1.8k views
-
-
This may not be an Rest API thing, but in reading the documentation, it sounds like it MAY be. I have a distributed, multi-system, multi-service application, of which I want to monitor the status via running an RPC status binary I have which outputs XML containing a system, service, and status. Some assumptions I'd like confirmed System Publish can be used to publish custom status More than one system could publish into the same instance (assuming they don't run at the same time) Rest API is a good way to do this (there isn't a better way) If this is a bad choice or the wrong place to ask, please point me in the correct direction. At th…
-
- 3 replies
- 3.8k views
- 1 follower
-
-
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…
- 1 reply
- 3k views
-
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
-
-
Hoping someone can help with this as I can't find a clear answer... I have a simple query to call from the servicedesk/tickets endpoint, but I'm unable to get the filter working with a DateTime column. In the code block below, Filter 1 (on the TickerNumber) & Filter 2 (on the SLA Status) both work fine and give the expected results, but Filter 3 (on Actual Resolution) returns a (400): Bad Request error. It does this whether I create the datetime programmatically as in Filter3, or hard-code it as in Filter4. let Token = "TOKEN GOES HERE", BaseURL = "https://psa.pulseway.com/api/", Path = "servicedesk/tickets", Day = Date.Day…
- 2 replies
- 2.1k views
-
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
-
-
Hi, I'm looking for a way to retrive the Ids for the PSA currencies using the API. I want to use the currencyId when posting a new account to set it's currency. But i can't find any documentation on how to get the ids. I found the documentation on how to get countries. I guess there must be a simliar thing for currencies: GET https://server_name/api/system/countries
-
- 2 replies
- 1.7k views
-