Azure Blockchain workbench api is not accessible RRS feed

  • Question

  • Hi, we followed step by step guide to create sample blockchain workbench application but its  workbench api is not accessible even using swagger with error 401 unauthorized. We have experts in Azure and API but so far no luck and Microsoft support also unable to help us. Any help would be highly appreciated. Are we missing any configuration step from documentation ? 
    • Edited by Waqas_Ahmad Tuesday, September 4, 2018 6:10 AM
    Tuesday, September 4, 2018 6:08 AM

All replies

  • Hello,

    Have you added your user to the admin role?

    Microsoft Azure Blockchain Team

    Tuesday, September 4, 2018 7:28 PM
  • Has there been a solution to this? I am the admin and have access to create application onto the blockchain but no luck with the api.
    Wednesday, October 10, 2018 9:52 PM
  • You should use Postman instead of Swagger.  Follow instructions at this tutorial: for getting the bearer token.

    Microsoft Azure Blockchain Team

    Thursday, October 11, 2018 12:20 AM
  • Is Postman automatically synced with my Blockchain Information? I am asking because the Blockchain Workbench deploys the api for Swagger and I'm curious how Postman will work.

    Also is there documentation on how Postman can be deployed for our blockchain?

    Thursday, October 11, 2018 3:09 PM
  • Sorry for not being clear in my last response.  Postman is publicly-available free tool for submitting http requests to an endpoint.  You can install it from here: and use it to send API requests.  The tutorial I pointed to in my last post shows how to use Postman.  Hope that helps.

    Microsoft Azure Blockchain Team

    Thursday, October 11, 2018 4:34 PM
  • Okay I got it working with Postman. I am trying to connect my iOS and Web apps to query data from my SQL database created with my Blockchain workbench. I cannot find anything online how to do that, is it even possible?

    Also is there a reason we should use Postman vs Swagger? Just out of curiosity why Swagger isn't working

    Thursday, October 11, 2018 7:55 PM
  • The SQL database is in your subscription and you can connect to it through any standard mechanism.  For example, you can connect via SSMS:  Workbench supports database views for easy querying:

    Microsoft Azure Blockchain Team

    Saturday, October 13, 2018 4:08 AM
  • I appreciate those links, they were helpful.

    The current issue we are running into is how often we have to retrieve a new token. Is there a way to get a permanent access token from Postman vs getting a new token every couple hours? For my project it is really inefficient and people who don't know/have access the process will not be able to use the API 

    Sunday, October 14, 2018 7:59 PM
  • Hi there,

    Unfortunately, there is no permanent token that you can use. The OAuth bearer tokens are short lived (1h) for security reasons and are meant to be regenerated every-time they expire.

    We have not found a way to generate these tokens for postman, but if you are trying to access our API programmatically you can use a service principal and by using an AAD library (available in many languages) to generate the bearer token. Here an example for NodeJS

    Microsoft Azure Blockchain Team

    Tuesday, October 16, 2018 6:49 PM