Kaseya Community

Yet another API syntax question

  • I am trying to use Powershell and the REST API to create a new admin in our VSA. I got my bearer token and opened Swagger, but no luck. Swagger is returning 401 and no other error information. I am using the following for "Value" in Swagger: 



  • 401 is unauthorized.

    Are you sure your bearer token is being passed to the API route correctly? It should be "Bearer 123456789" where 123456789 is the ID of the token you were provided when you authenticated.


  • Yup, I entered the token into Swagger (into the bearer field). Then I used the same token to query for users, which worked.

  • Are you including the word "Bearer" in your bearer field? It has to have that followed by a space and then the token number.