Generating tokens

How to generate Client Id and Secret to authenticate your access via code

In order to start communicating with Superwise in a secured programmatic way, you'll need to generate a client id and a secret key. Using these two variables you'll be able to authenticate yourself whether it's via the SDK or via REST API calls.

API Token types - Personal Token and API Token (Admin)

Go to your account settings (by clicking on your name in the left bottom corner of the home screen). There you can find two types of API Tokens:

  1. Personal Tokens which are associated with your account directly. If a user is deleted the token will be deleted as well.
  2. API Tokens for machine-to-machine communication (Available only for admin users).
1906

Generating a new API Key - client id and secret key

Step 1: Go to your account settings (by clicking on your name in the left bottom corner of the home screen).
Step 2: Click on the Personal Token or API Tokens (according to the type of token you wish to generate or utilize).
Step 3: Click on Generate Token.
Step 4: Enter a token description - so it will be clear for everyone else, at any time, what is this token used for.
Step 5: Copy the Client ID and Secret Key and implement it where it is needed.

πŸ“˜

Note

Viewing both codes won't be available after step 5; Only copying will be available.

Tokens