Authentication

In order to carry out any actions within the WR, you must be authenticated and in most instances authorised to carry out the requested activities. Authentication is handle via the Authorization header using a Bearer token. You can generate a personal API token from the Hub website here, once you have logged into the DataHub. Then pass this in with your requests:

Authorization: Bearer <you_token>

Currently, this logs you in to your specific workspace and means you can deploy, execute and delete workflows within your workspace. To access your workspace you need to specify the name within the URL for any requests. In the current release your workspace name can be assumed equal to your username but you need to make sure that any hyphens in your workspace name are replaced with underscores. So “tjellicoe-tpzuk” becomes “tjellicoe_tpzuk”. Provided your username matches the workspace you are trying to access within the WR URL, you are free to deploy workflows and execute them as you wish.