Generate Access Token
Last updated
Last updated
For both API and GraphQL API you need an API token, which you create via the portal. How to do this is shown in this guide. You can use two different ways to get an access token.
You use your own personal Access-Token. This is automatically created for you by the portal.
You create an API user and assign individual rights, roles, and devices.
In the following sections, we explain how to implement the two methods mentioned above.
When you register on the Datacake platform and create a user account, a token is automatically created.
This token has the rights that you have been assigned, that is:
As the owner of a workspace, you basically have all rights.
If you were invited to a workspace by an external person, you have the respective rights, roles and devices that were assigned to you by the third person.
Remember that if you are invited into an external workspace, your Access Token inherits some responsibility for that external workspace. So always handle your personal Access Token with care and do not share it with third parties.
You can view your own token via the Account-Settings section. You can reach this by clicking on "Account Settings" on the left side menu:
You will see a tab called API Token. If you click on it, you will find your personal access token there.
Please note that your API token gives access to your whole account, so treat it with caution! Never pass on this token. If you have been invited to other workspaces by external persons, this token is also valid for these workspaces. You are responsible for the safe use of this key!
Particularly with regard to security, it is advisable in many cases to create your own access tokens and assign these tokens only those rights, roles and devices that are necessary for the purpose for which the respective token is to be used.
You create your own tokens by creating so-called "API users". These are basically complete user accounts, but without "physical" users in the background. The enormous advantage of this concept is that you can also assign tokens or API users to your teams and other functions.
How to create and configure such an API user is described in the following section:
API Users