Creating an API token

Creating an API token


For the most part, the data stored in SalureConnect can also be retrieved via REST APIs. Of course, authorization also applies here. This article describes how to create an API token. The article "REST API"  describes how the REST API can actually be used.

Token creation

A token gives rights to retrieve data from certain parts of SalureConnect. For example, it is possible to retrieve data with all users, or data from connectors, etc. The token required for this purpose is created as follows:
  1. Navigate to Settings > General > API Access;
  2. Click Add API token at the top right of the screen;
  3. Give the token a clearly identifiable and descriptive label;
  4. Under "Page Rights," specify the pages from which the token can retrieve data. The token only gives Read rights to these pages. Note that only pages to which the user currently has access can be selected here.
  5. If there are multiple clients (which will almost never be the case), possibly specify which clients this token applies to;
  6. For security, it may be desirable to give the token an end date and time when the token loses its validity;
  7. Click on "Save."
  8. Save the token that now appears on the screen somewhere. It cannot be requested again. Click Ok.
The token is to be used in the Authorization header. The key should be provided with SalureConnect. If the token were abcd1234, the header would look like this: { "Authorization": "SalureToken abcd1234"}.





    • Related Articles

    • Create API token

      For the most part, the data stored in BrynQ can also be retrieved via REST APIs. Of course, authorization also applies here. This article describes how to create an API token. The article "REST API" describes how the REST API can actually be used. ...
    • REST API

      Data stored in SalureConnect can be queried via REST APIs. This article contains a description of how to invoke the REST APIs and what the possible endpoints are. Authorization Before it is possible to invoke the REST API, the user must receive a ...
    • Upload files

      Sometimes it is convenient to load an Excel or CSV file into a dashboard. At that point, "File Upload" can help.  Add a file When the user wants to add a file, they can do so on the "File Upload" page. By clicking the "Add File" button at the top ...
    • Security

      SalureConnect'sagent is a web server without a front-end. This means that security issues suchas CORS, XSS, CSRF etc. are not applicable. The main security issues are authentication,encryption and rate-limiting. Authenticatie A request to the agent ...
    • Roles

      Authorization can be set up per user, but it is better to do it through roles as much as possible. A role can be associated with multiple users. This makes it possible to easily modify the rights of groups of users in one place. Creating a role ...