The ROCKIT Edge Backend API supports two authentication methods:
1.
Token-based authentication for users accounts.
2.
API key-based authentication for machine accounts.
The token-based authentication is typically being applied for interactive clients such as graphical user interfaces while the API-key based authentication method is preferable for integrating the ROCKIT Edge Backend API into existing workflows using machine accounts. The two authentication methods are described in the following.
In order to use the ROCKIT Edge Backend API in an automated environment in most cases it is simpler to create a ROCKIT Edge Backend machine account with the minimum set of necessary permissions for the intended tasks. The returned API Key can than be used for invoking the endpoints along with the username of the machine account as well as the organization name. In addition to the required request header keys of the individual endpoint simply add the following data:
Key
Description
x-rockit-orgname
Unique and immutable organization identifier obtained from the ROCKIT Edge administrator.
x-rockit-username
The unique and immutable username of the machine account.
x-rockit-api-key
The ROCKIT Edge Backend API key obtained when creating the machine user, see POST /be/v1/users.
Note, that the API key-based authentication does not work for endpoints designed for user accounts only, such as