<?xml version="1.0"?>
<rss version="2.0"><channel><title>REST API Latest Topics</title><link>https://forum.pulseway.com/forum/73-rest-api/</link><description>REST API Latest Topics</description><language>en</language><item><title>Automation Tasks Never Completing</title><link>https://forum.pulseway.com/topic/5449-automation-tasks-never-completing/</link><description><![CDATA[<p>I'm using the API v3 to start a predefined task on one system. The correct task does indeed start on the correct system and produce the correct results (writes to a file). But Pulseway never detects that the task has actually completed. Neither the API nor web app ever detects that this task is completed - but it really has! Since webhooks are optional for the "Run Task" endpoint, I'm not using them.</p><p>Interesting thing is when this task is run manually through the Web App it complete fine in 2 seconds. Has anyone else used this successfully? I'm thinking something is broken.</p><p>For those who really want to see some PowerShell code:</p><p>    $TaskResp = Invoke-WebRequest -Uri $RunTaskUrl -UseBasicParsing `</p><p>	-Headers $Headers `</p><p>	-Method POST `</p><p>	-ContentType 'application/json' `</p><p>	-Body "$RunTaskBody"</p><p>where</p><p>  $RunTaskBody = {"DeviceIdentifiers":["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"]}		# edited for privacy</p><p>  $RunTaskUrl = <a rel="">https://my_domain.pulseway.com/api/v3/automation/tasks/148/run</a> # editied for privacy</p><p></p>]]></description><guid isPermaLink="false">5449</guid><pubDate>Wed, 24 Dec 2025 13:18:53 +0000</pubDate></item><item><title>Authentication issues with this baseline C# API Code</title><link>https://forum.pulseway.com/topic/5142-authentication-issues-with-this-baseline-c-api-code/</link><description><![CDATA[<p>
	Hi,
</p>

<p>
	I need assistance with getting this c# code to authenticate and list all devices.
</p>

<p>
	I tried it with the username/password combo AND the token id/secret combo (token permissions are fully open)
</p>

<p>
	I get the same error on both as seen here
</p>

<pre class="ipsCode prettyprint lang-html prettyprinted"><span class="pln">{
  "Data": null,
  "Meta": {
    "TotalCount": 0,
    "ResponseCode": 403,
    "ErrorMessage": "A delegate registered to create instances of 'MM.Monitor.Application.ApiTokens.Services.Interfaces.IApiTokensDataService' returned null."
  }
}</span></pre>

<p>
	Here's the Class in C#
</p>

<pre class="ipsCode prettyprint lang-html prettyprinted"><span class="pln">using Newtonsoft.Json;
using RestSharp.Authenticators;
using RestSharp;
using System;


namespace Pulseway_Helper
{
    internal class GetDevices
    {
        private const string ENDPOINT = "https://api.pulseway.com/v3";
        private const string TOKEN_ID = "api_token_id_generated_in_pulseway";
        private const string TOKEN_SECRET = "api_token_secret_generated_in_pulseway";

        static void Main(string[] args)
        {
            // Create RestClientOptions and set the Authenticator
            var clientOptions = new RestClientOptions(ENDPOINT)
            {
                Authenticator = new HttpBasicAuthenticator(TOKEN_ID, TOKEN_SECRET)
            };

            // Initialize the RestClient with the options
            var client = new RestClient(clientOptions);

            // Create the request
            var request = new RestRequest("devices", Method.Get);

            // Add parameters to the request
            request.AddParameter("$top", "50");
            request.AddParameter("$skip", "0");

            // Execute the request
            var response = client.Execute(request) as RestResponse;

            // Get the content of the response
            var content = response.Content;

            // Deserialize the content
            dynamic result = JsonConvert.DeserializeObject(content);

            // Output the result (for demonstration purposes)
            Console.WriteLine(result);
        }
    }

}



</span></pre>

<p>
	 
</p>

<p>
	<a class="ipsAttachLink" data-fileext="cs" data-fileid="1298" href="https://forum.pulseway.com/applications/core/interface/file/attachment.php?id=1298&amp;key=d9271d9bf5f7cd93baf238e9c2261c6e" rel="">ConsoleApp.cs</a>
</p>
]]></description><guid isPermaLink="false">5142</guid><pubDate>Mon, 20 May 2024 15:26:12 +0000</pubDate></item><item><title>REST API using Postman (error 403)</title><link>https://forum.pulseway.com/topic/5189-rest-api-using-postman-error-403/</link><description><![CDATA[<p>
	Hello,
</p>

<p>
	Trying to test the API using Postman, but I'm always getting the "ResponseCode": 403 with "ErrorMessage": "This token is invalid. Contact your administrator.".
</p>

<p>
	Any clue what might be the issue? I'm 100% sure the authentication, urls and parameters are ok.
</p>

<p>
	 
</p>

<p>
	Thanks,
</p>

<p>
	NL
</p>
]]></description><guid isPermaLink="false">5189</guid><pubDate>Thu, 08 Aug 2024 18:39:57 +0000</pubDate></item><item><title>https://{endpoint}/v3/devices/:id/appliedpolicies - GetSystemAppliedPolicies cannot be executed due to lack of permissions</title><link>https://forum.pulseway.com/topic/5182-httpsendpointv3devicesidappliedpolicies-getsystemappliedpolicies-cannot-be-executed-due-to-lack-of-permissions/</link><description><![CDATA[<p>
	Calling:
</p>

<p>
	https://{endpoint}/v3/devices/:id/appliedpolicies 
</p>

<p>
	Error: 
</p>

<div style="background-color:#ffffff;color:#000000;font-size:12px;">
	<div>
		<span style="color:#0451a5;">GetSystemAppliedPolicies cannot be executed due to lack of permissions</span>
	</div>

	<div>
		 
	</div>

	<div>
		<span style="color:#0451a5;">Why am I getting this error I do not see any permission settings on the token setup?</span>
	</div>
</div>
]]></description><guid isPermaLink="false">5182</guid><pubDate>Tue, 30 Jul 2024 08:14:49 +0000</pubDate></item><item><title>Response  "Error occurred: {"Meta":{"ResponseCode":403,"ErrorMessage":"Unknown system identifier."}}"</title><link>https://forum.pulseway.com/topic/5019-response-error-occurred-metaresponsecode403errormessageunknown-system-identifier/</link><description><![CDATA[<p>
	Hello,
</p>

<p>
	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.
</p>

<p>
	# Set your Pulseway API credentials<br />
	$tokenID = "*********"<br />
	$tokenSecret = "*************"
</p>

<p>
	# Pulseway API Endpoint<br />
	$apiEndpoint = "https://************.pulseway.com/api/v3/notifications"
</p>

<p>
	# Notification details<br />
	$instanceId = "Test"<br />
	$title = "Testing"<br />
	$message = "Test succeed"<br />
	$priority = "Critical"
</p>

<p>
	# Create the JSON payload<br />
	$jsonPayload = @{<br />
	    InstanceId = $instanceId<br />
	    Title      = $title<br />
	    Message    = $message<br />
	    Priority   = $priority<br />
	} | ConvertTo-Json
</p>

<p>
	$jsonPayload
</p>

<p>
	# Set the authorization header<br />
	$headers = @{<br />
	    Authorization = "Basic {0}" -f [Convert]::ToBase64String([Text.Encoding]::ASCII.GetBytes("$($tokenID):$($tokenSecret)"))<br />
	    'Content-Type' = 'application/json'<br />
	}
</p>

<p>
	# Send the API request<br />
	try {<br />
	    $response = Invoke-RestMethod -Uri $apiEndpoint -Method Post -Headers $headers -Body $jsonPayload
</p>

<p>
	    if ($response.status -eq "success") {<br />
	        Write-Host "Notification sent successfully."<br />
	    } else {<br />
	        Write-Host "Failed to send notification. Response: $($response | ConvertTo-Json -Depth 5)"<br />
	    }<br />
	}<br />
	catch {<br />
	    Write-Host "Error occurred: $_"<br />
	}<br />
	 
</p>

<p>
	Hope someone can help us.
</p>

<p>
	Greeting,
</p>

<p>
	Martijn
</p>
]]></description><guid isPermaLink="false">5019</guid><pubDate>Mon, 15 Jan 2024 13:16:13 +0000</pubDate></item><item><title>.net Api request : error 403</title><link>https://forum.pulseway.com/topic/5068-net-api-request-error-403/</link><description><![CDATA[<p>
	Hi!
</p>

<p>
	I try to authenticate and send my first request, but I get the 403 error.<br />
	Here is my code, whose ENDPOINT is: "https://api.pulseway.com/v3/"
</p>

<p>
	 
</p>

<pre class="ipsCode prettyprint lang-c prettyprinted"><span class="pln">		var ENDPOINT </span><span class="pun">=</span><span class="pln"> _configuration</span><span class="pun">[</span><span class="str">"PulsewayService:ENDPOINT"</span><span class="pun">];</span><span class="pln">
		var TOKEN_ID </span><span class="pun">=</span><span class="pln"> _configuration</span><span class="pun">[</span><span class="str">"PulsewayService:TOKEN_ID"</span><span class="pun">];</span><span class="pln">
		var TOKEN_SECRET </span><span class="pun">=</span><span class="pln"> _configuration</span><span class="pun">[</span><span class="str">"PulsewayService:TOKEN_SECRET"</span><span class="pun">];</span><span class="pln">

		</span><span class="kwd">using</span><span class="pln"> </span><span class="pun">(</span><span class="pln">var client </span><span class="pun">=</span><span class="pln"> </span><span class="kwd">new</span><span class="pln"> </span><span class="typ">HttpClient</span><span class="pun">())</span><span class="pln">
		</span><span class="pun">{</span><span class="pln">
			client</span><span class="pun">.</span><span class="typ">BaseAddress</span><span class="pln"> </span><span class="pun">=</span><span class="pln"> </span><span class="kwd">new</span><span class="pln"> </span><span class="typ">Uri</span><span class="pun">(</span><span class="pln">ENDPOINT</span><span class="pun">);</span><span class="pln">
			var auth </span><span class="pun">=</span><span class="pln"> TOKEN_ID </span><span class="pun">+</span><span class="pln"> </span><span class="str">":"</span><span class="pln"> </span><span class="pun">+</span><span class="pln"> TOKEN_SECRET</span><span class="pun">;</span><span class="pln">
			var authBytes </span><span class="pun">=</span><span class="pln"> </span><span class="typ">Encoding</span><span class="pun">.</span><span class="pln">ASCII</span><span class="pun">.</span><span class="typ">GetBytes</span><span class="pun">(</span><span class="pln">auth</span><span class="pun">);</span><span class="pln">
			client</span><span class="pun">.</span><span class="typ">DefaultRequestHeaders</span><span class="pun">.</span><span class="typ">Authorization</span><span class="pln"> </span><span class="pun">=</span><span class="pln"> </span><span class="kwd">new</span><span class="pln"> </span><span class="typ">AuthenticationHeaderValue</span><span class="pun">(</span><span class="str">"Basic"</span><span class="pun">,</span><span class="pln"> </span><span class="typ">Convert</span><span class="pun">.</span><span class="typ">ToBase64String</span><span class="pun">(</span><span class="pln">authBytes</span><span class="pun">));</span><span class="pln">

			var response </span><span class="pun">=</span><span class="pln"> await client</span><span class="pun">.</span><span class="typ">GetAsync</span><span class="pun">(</span><span class="str">"devices"</span><span class="pun">);</span><span class="pln">
			response</span><span class="pun">.</span><span class="typ">EnsureSuccessStatusCode</span><span class="pun">();</span><span class="pln">

		</span><span class="pun">}</span></pre>

<p>
	<br />
	I get the same error with postman.
</p>

<p>
	Have I made a mistake?<br />
	Thanks for your help!<br />
	Cyril
</p>

<p>
	 
</p>

<p>
	 
</p>
]]></description><guid isPermaLink="false">5068</guid><pubDate>Thu, 04 Apr 2024 13:53:55 +0000</pubDate></item><item><title>REST API v3 Time format inconsistency</title><link>https://forum.pulseway.com/topic/5056-rest-api-v3-time-format-inconsistency/</link><description><![CDATA[<p>
	I am creating a C# program to fetch the "Last Boot Uptime" for all devices under a particular group with <strong>/v3/assets</strong>
</p>

<p>
	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.. 
</p>

<p>
	Eg:
</p>

<p>
	15 February 2024 21:58<br />
	22 February 2024 08:57<br />
	12 March 2024 08:24<br />
	18 March 2024 01:33<br />
	17 February 2024 02:11<br />
	15 February 2024 21:50<br />
	11 March 2024 15:08<br />
	17 February 2024 02:44<br />
	29 February 2024 00:36<br />
	16 March 2024 00:33<br />
	16 March 2024 01:29<br />
	06 February 2024 15:24<br />
	13 March 2024 08:46<br />
	<strong>Saturday, 2 March 2024 10:12 a.m.<br />
	Thursday, 14 March 2024 1:36 AM<br />
	Saturday, February 24, 2024 20:02<br />
	Thursday, 14 March 2024 11:08 pm</strong>
</p>

<p>
	Most of the result are in <strong>dd MMMM yyyy HH:mm </strong>format.
</p>

<p>
	Except once pc all others are windows. I checked the datetime format in windows for two PC's that had different boot up time format in REST API result but both windows time formats were same.
</p>

<p>
	How to get a unified time format as the API result ? 
</p>

<p>
	 
</p>

<p>
	 
</p>
]]></description><guid isPermaLink="false">5056</guid><pubDate>Tue, 19 Mar 2024 03:56:15 +0000</pubDate></item><item><title>REST API v3 Questions</title><link>https://forum.pulseway.com/topic/4963-rest-api-v3-questions/</link><description><![CDATA[<p>
	It appears the V3 API is out now. <br />
	<br />
	I see in the permissions when creating a token 'Get Device Custom Fields' as a permission, but there is no endpoint listed in the documentation. 
</p>

<p>
	Additionally, attempting to use the new <span style="color:#2980b9;">/api/v3/devices</span> endpoint fails, it will however take the <span style="color:#2980b9;">/api/v3/systems </span>endpoint. This appears to return same information as v2 API does. 
</p>

<p>
	Error returned is as follows:<br />
	<span style="color:#c0392b;">'/api/v3/devices' MessageDetail: No type was found that matches the controller named 'v3'</span>
</p>

<p>
	My questions are: <br />
	1. is the /devices endpoint a new endpoint that's not available yet? <br />
	2. what is the endpoint to get a device's custom field?<br />
	3. is there at time line for getting the documentation updated?
</p>

<p>
	 
</p>

<p>
	Thanks
</p>

<p>
	 
</p>
]]></description><guid isPermaLink="false">4963</guid><pubDate>Fri, 15 Sep 2023 20:29:12 +0000</pubDate></item><item><title>Where to check API V3 development?</title><link>https://forum.pulseway.com/topic/4952-where-to-check-api-v3-development/</link><description><![CDATA[<p>
	Hi folks,
</p>

<p>
	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?<br />
	<br />
	Thanks!
</p>
]]></description><guid isPermaLink="false">4952</guid><pubDate>Tue, 29 Aug 2023 14:31:50 +0000</pubDate></item><item><title>{"data":null,"meta":{"has_more":false,"response_code":401,"error_message":"Invalid username and/or password (202)."}}</title><link>https://forum.pulseway.com/topic/4934-datanullmetahas_morefalseresponse_code401error_messageinvalid-username-andor-password-202/</link><description><![CDATA[<p>
	Impossible to authenticate on the rest api
</p>

<p>
	i copied the curl example replacing username and password<br />
	i tried with the php example.<br />
	i tried with my custom library, etc.
</p>
]]></description><guid isPermaLink="false">4934</guid><pubDate>Thu, 10 Aug 2023 16:24:38 +0000</pubDate></item><item><title>How do we delete devices from systems via API?</title><link>https://forum.pulseway.com/topic/4931-how-do-we-delete-devices-from-systems-via-api/</link><description><![CDATA[<p>
	Hi,
</p>

<p>
	I am looking for a way to remove devices via the API, for example:
</p>

<p>
	Search for a device name with a wildcard, eg: "COMPUTER3" - full name:  COMPUTER3 - London - 1101
</p>

<p>
	And delete that device from systems (no longer billed)
</p>

<p>
	 
</p>

<p>
	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.
</p>

<p>
	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)
</p>

<p>
	We have an in house asset check in application, we can add additional code to delete them from pulseway.
</p>

<p>
	 
</p>

<p>
	Thank you,
</p>
]]></description><guid isPermaLink="false">4931</guid><pubDate>Mon, 07 Aug 2023 09:47:06 +0000</pubDate></item><item><title>REST API authentication</title><link>https://forum.pulseway.com/topic/3017-rest-api-authentication/</link><description><![CDATA[<p>
	Hello,
</p>

<p>
	When authenticating to the REST API, am I able to use the API Key/API Token found on the User Account Details page? 
</p>

<p>
	I've been attempting to do so using Postman, by changing the Authorization type to <strong>API Key </strong>and then pasting the API Key into the <strong>Value</strong> field.  Unsure that the <strong>Key</strong> field must contain, but having tried things like "apikey", "api_key" etc.. I always receive a <strong>401 Unauthorized.  </strong>I'm clearly getting something wrong - so appreciate any direction.
</p>

<p>
	Just a FYI, the <a href="https://api.pulseway.com/?python#notify" rel="external nofollow">documentation </a>for the Notifications says a default priority is <strong>normal</strong> but I've found it to default to <strong>low</strong> when no priority field is populated.
</p>

<p>
	 
</p>]]></description><guid isPermaLink="false">3017</guid><pubDate>Mon, 21 Oct 2019 22:07:34 +0000</pubDate></item><item><title>How to get currency Ids from PSA API?</title><link>https://forum.pulseway.com/topic/4877-how-to-get-currency-ids-from-psa-api/</link><description><![CDATA[<p>
	Hi,
</p>

<p>
	I'm looking for a way to retrive the Ids for the PSA currencies using the API.
</p>

<p>
	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.
</p>

<p>
	I found the documentation on how to get countries. I guess there must be a simliar thing for currencies:
</p>

<p>
	<span style="background-color:#f3f6fb;color:#c7254e;font-size:15.2px;">GET https://server_name/api/system/countries</span>
</p>
]]></description><guid isPermaLink="false">4877</guid><pubDate>Wed, 29 Mar 2023 14:38:36 +0000</pubDate></item><item><title>UrBackup API Script integration</title><link>https://forum.pulseway.com/topic/4823-urbackup-api-script-integration/</link><description><![CDATA[<p style="background-color:#ffffff;color:#222222;font-size:15.008px;">
	Chasing up what the following are calls to
</p>

<p style="background-color:#ffffff;color:#222222;font-size:15.008px;">
	Specifically ;<br />
	Pulseway_instance_id<br />
	Pulseway_Instance_Name<br />
	Pulseway_Instance Group<br />
	Pulseway_instance_Decription
</p>

<p style="background-color:#ffffff;color:#222222;font-size:15.008px;">
	Figured out ;<br />
	Pulseway_instance_id Not sure of<br />
	Pulseway_Instance_Name would be ie (<a href="https://companyname.pulseway.com/" rel="external nofollow" style="background-color:transparent;">https://companyname.pulseway.com/</a>) ?<br />
	Pulseway_Instance Group Would be the Group its in obviously (any Syntax required ? or straight label copy paste ?)<br />
	and with Username and password 2FA not required or seperate Pulseway account needed with 2FA disabled ?
</p>
]]></description><guid isPermaLink="false">4823</guid><pubDate>Thu, 03 Nov 2022 02:36:15 +0000</pubDate></item><item><title>978002: Grant Type Required?</title><link>https://forum.pulseway.com/topic/4813-978002-grant-type-required/</link><description><![CDATA[<p>
	hi there, i'm using postman to try to connect to the API. I'm following this <a href="https://api.psa.pulseway.com/" rel="external nofollow">documentation</a> but i'm unable to authenticate.
</p>

<p>
	Some details:
</p>

<ul>
	<li>
		I don't have MFA on
	</li>
	<li>
		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)
	</li>
	<li>
		I'm using base url: <span style="background-color:#ffffff;color:#212121;font-size:12px;text-align:left;">https://api.psa.pulseway.com/</span>
	</li>
</ul>

<p>
	i'm at a lost. please advise. thank you!
</p>

<p>
	<br>
	<a class="ipsAttachLink ipsAttachLink_image" href="https://forum.pulseway.com/uploads/monthly_2022_10/image.png.bf9ca76bd69ac800ea0c9dddaf8778cf.png" data-fileid="1071" data-fileext="png" rel=""><img class="ipsImage ipsImage_thumbnailed" data-fileid="1071" width="1000" alt="image.thumb.png.90d027b757c5e36cb610c6f965904c1e.png" src="https://forum.pulseway.com/uploads/monthly_2022_10/image.thumb.png.90d027b757c5e36cb610c6f965904c1e.png" loading="lazy" height="670"></a>
</p>
]]></description><guid isPermaLink="false">4813</guid><pubDate>Mon, 24 Oct 2022 20:51:35 +0000</pubDate></item><item><title>Asset_Info Empty</title><link>https://forum.pulseway.com/topic/4680-asset_info-empty/</link><description><![CDATA[<p>
	Playing around with the API in postman but the asset_info is always blank along with the disks.
</p>

<p>
	I am calling the assets endpoint with an ID but I see the same missing info if I don't provide an IP.
</p>

<p>
	 
</p>

<p>
	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. 
</p>

<p>
	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?
</p>

<p>
	 
</p>

<p>
	Thanks!
</p>
]]></description><guid isPermaLink="false">4680</guid><pubDate>Sun, 27 Feb 2022 20:35:52 +0000</pubDate></item><item><title>api method</title><link>https://forum.pulseway.com/topic/4664-api-method/</link><description><![CDATA[<p>
	<span style="background-color:#ffffff;color:#353c41;font-size:14px;">Hello. I want create new ticket with api but i don't see Source:</span><span style="background-color:#eeeeee;color:#424a4d;font-size:14px;"><span> </span></span><span style="background-color:#eeeeee;color:#ff0000;font-size:14px;">*  AND  </span>Type:<span style="background-color:#eeeeee;color:#424a4d;font-size:14px;"><span> </span></span><span style="background-color:#eeeeee;color:#FF0000;font-size:14px;">*</span><span style="background-color:#eeeeee;color:#ff0000;font-size:14px;">  api method </span>
</p>

<p>
	<span style="background-color:#eeeeee;color:#ff0000;font-size:14px;">WHERE IS <a href="https://api.psa.pulseway.com/swagger/index.html" rel="external nofollow">https://api.psa.pulseway.com/swagger/index.html</a> ?</span>
</p>

<p>
	 
</p>

<p>
	<a class="ipsAttachLink ipsAttachLink_image" href="https://forum.pulseway.com/uploads/monthly_2022_02/Screenshot_6.png.2a781a099f2221e1e53f66684f6e75ac.png" data-fileid="976" data-fileext="png" rel=""><img alt="Screenshot_6.png" class="ipsImage ipsImage_thumbnailed" data-fileid="976" width="1000" src="https://forum.pulseway.com/uploads/monthly_2022_02/Screenshot_6.thumb.png.8b6e67ef775b9106681a708bed3ea48d.png" loading="lazy" height="560"></a>
</p>
]]></description><guid isPermaLink="false">4664</guid><pubDate>Mon, 07 Feb 2022 12:43:17 +0000</pubDate></item><item><title>api.psa</title><link>https://forum.pulseway.com/topic/4657-apipsa/</link><description><![CDATA[<p>
	<a href="https://api.psa.pulseway.com/swagger/index.html" rel="external nofollow">https://api.psa.pulseway.com/swagger/index.html</a>
</p>

<p>
	Hello. I want create new ticket with api but i don't see Source:<span style="background-color:#eeeeee;color:#424a4d;font-size:14px;"><span> </span></span><span style="background-color:#eeeeee;color:#FF0000;font-size:14px;">*  api method</span>
</p>
]]></description><guid isPermaLink="false">4657</guid><pubDate>Fri, 28 Jan 2022 19:24:13 +0000</pubDate></item><item><title>401 Unauthorized</title><link>https://forum.pulseway.com/topic/4661-401-unauthorized/</link><description><![CDATA[<p>
	Hello all!
</p>

<p>
	I keep getting 401 Unauthorized when trying to get all systems using either basic auth or API key. I have 2FA disabled... Any hint?
</p>

<p>
	Thank you!
</p>
]]></description><guid isPermaLink="false">4661</guid><pubDate>Tue, 01 Feb 2022 15:21:13 +0000</pubDate></item><item><title>Operation refused as the account has 2FA enabled - options?</title><link>https://forum.pulseway.com/topic/4645-operation-refused-as-the-account-has-2fa-enabled-options/</link><description><![CDATA[<p>
	<span style="font-size:14px;">Hey all! Testing out Pulseway's REST API endpoints. I can query for systems, etc but executing a task just gets a happy little 403...</span>
</p>

<p>
	<span style="font-size:14px;">Posting to: <a href="https://api.pulseway.com/v2/automation/tasks/:id/executions" rel="external nofollow">https://api.pulseway.com/v2/automation/tasks/[redacted]/executions</a> returns this:</span>
</p>

<div style="background-color:#fffffe;color:#000000;font-size:12px;">
	<div>
		<pre class="ipsCode">{
    "meta": {
        "response_code": 403,
        "error_message": "Operation refused as the account has 2FA enabled."
    },
    "data": {
        "id": 0
    }
}</pre>
	</div>

	<div>
		 
	</div>

	<div>
		<span style="font-size:14px;">What recourse do I have here? Is the REST API simply unavailable for task execution in cloud accounts while 2FA is enabled? Suppose I could disable it and just live with a super-long password, but... perhaps there is a way <img alt=":)" data-emoticon="" height="20" src="https://forum.pulseway.com/uploads/emoticons/default_smile.png" srcset="https://forum.pulseway.com/uploads/emoticons/smile@2x.png 2x" title=":)" width="20" loading="lazy"></span>
	</div>

	<div>
		 
	</div>

	<div>
		<span style="font-size:14px;">Thanks!</span>
	</div>
</div>
]]></description><guid isPermaLink="false">4645</guid><pubDate>Sat, 15 Jan 2022 16:32:22 +0000</pubDate></item><item><title>PSA API add Tickets ?</title><link>https://forum.pulseway.com/topic/4654-psa-api-add-tickets/</link><description><![CDATA[<p>
	Hello. I need help. Can I add <a href="https://psa.pulseway.com/MSP/TicketsListing.aspx" rel="external nofollow">https://psa.pulseway.com/MSP/TicketsListing.aspx</a> here to Tickets ? Using <a href="https://api.pulseway.com/" rel="external nofollow">https://api.pulseway.com/</a> ?
</p>
]]></description><guid isPermaLink="false">4654</guid><pubDate>Thu, 20 Jan 2022 20:52:52 +0000</pubDate></item><item><title>PSA API Help- What is server_name</title><link>https://forum.pulseway.com/topic/4652-psa-api-help-what-is-server_name/</link><description><![CDATA[<p>
	We recently rolled out both Pulseway and the PSA replacing out Spiceworks help desk. Since the client portal is not as simple for user to create tickets within our mobile application, I am looking to use the PSA API but stuck. I am testing with the basic GET request to retrieve tickets and stuck on what server_name should be. Also for the authorization Bearer access_token, am I using the same token from the Pulseway webapp? 
</p>

<p>
	Using this HTTP Request:
</p>

<p>
	<span style="background-color:#f3f6fb;color:#c7254e;font-size:15.2px;">GET https://server_name/api/servicedesk/tickets</span>
</p>
]]></description><guid isPermaLink="false">4652</guid><pubDate>Wed, 19 Jan 2022 15:15:08 +0000</pubDate></item><item><title>Filter results by DateTime</title><link>https://forum.pulseway.com/topic/4635-filter-results-by-datetime/</link><description><![CDATA[<p>
	Hoping someone can help with this as I can't find a clear answer...
</p>

<p>
	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.
</p>

<p>
	In the code block below, Filter 1 (on the TickerNumber) &amp; 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.
</p>

<pre class="ipsCode">let 

    Token   = "TOKEN GOES HERE",
    BaseURL = "https://psa.pulseway.com/api/",
    Path    = "servicedesk/tickets",

        Day     = Date.Day(Date.From(DateTime.LocalNow())),
        Month   = Date.Month(Date.From(DateTime.LocalNow())),
        Year    = Date.Year(Date.From(DateTime.LocalNow())),

        Date    = DateTime.ToText(#datetime(Year, Month, Day, 00, 00, 00), "yyyy-MM-ddThh:mm:ss"),

        Filter1 = "?$filter=endswith(TicketNumber, '2022')",
        Filter2 = "?$filter=StatusSLAEventId gt 1",
        Filter3 = "?$filter=ResolutionActualTime gte " &amp; Date,
        Filter4 = "?$filter=ResolutionActualTime gte 2022-01-03T00:00:00.000Z",

            Source = Json.Document(Web.Contents(BaseURL &amp; Path &amp; Filter4, [Headers = [Authorization="Bearer " &amp; Token]]))
in
    Source</pre>

<p>
	Does anyone know where I'm going wrong?
</p>

<p>
	Thank you in advance!
</p>
]]></description><guid isPermaLink="false">4635</guid><pubDate>Wed, 05 Jan 2022 10:39:40 +0000</pubDate></item><item><title>Task Execution ID?</title><link>https://forum.pulseway.com/topic/4583-task-execution-id/</link><description><![CDATA[<p>
	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.  
</p>

<p>
	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. 
</p>
]]></description><guid isPermaLink="false">4583</guid><pubDate>Sun, 17 Oct 2021 21:48:54 +0000</pubDate></item><item><title>403 error</title><link>https://forum.pulseway.com/topic/4290-403-error/</link><description><![CDATA[<p>
	Hi, I am testing to send notifications but I keep receiving a 403 error?
</p>

<p>
	I tried several things
</p>

<ul>
	<li>
		username : API-Key  /   username
	</li>
	<li>
		MFA with - or without
	</li>
</ul>

<p>
	But 403 keeps comming back. Someone any idea?
</p>
]]></description><guid isPermaLink="false">4290</guid><pubDate>Tue, 06 Jul 2021 13:23:45 +0000</pubDate></item></channel></rss>
