Creating an API-user

  • Updated

As an administrator It is possible to create API-keys towards the Omnium API. 

 

1. Navigate to configuration -> authorization -> API-Users
2. Click on create api-user


3. Type in a name of the user. 



3. You will receive a prompt informing you that the client secret for the created API-user will only be available once and that you need to make sure to copy the information in from the page that follows. It will never be available again. Check the checkbox and proceed.



4. Make sure to copy the client secret and store it in a safe place. Once you leave or refresh the page, the secret will be inaccessible.




5. On the bottom of the page you will see the access control settings. Make sure to give only the required permissions to the created API-user and click save. When you wish to activate the api-user toggle the Is active switch and click save.


Testing the API-user

1. Once the api-user have been created you can test it by going to the omnium swagger documentation

2. Copy and paste client id and secret and use token endpoint to retrieve an access token.



3. Copy the generated token og click on Authorize in the top right. Type “bearer ” followed by the token and click Authorize in the modal that appears. 

 

4. You should now be able to use the API.

 

 




Was this article helpful?