# API Access
# Prerequisites
You will need to have a registered account in IoT Open.
# Generate API-Key
API-Keys can be created using two methods. The first method generates a key without any time limit and is suited for creating integrations to your account. The other method generates a key with a valid time of one year. This is suited for a user session, for example a mobile app.
# Using the web interface
- Log in to the web interface e.g. https://lynx.iotopen.se
- Navigate to your profile by clicking the account image in the top right
corner and choose
My Account
- Click on
Security
and open the tabAPI-keys
- Click
Create new API-Key
at the bottom of the list - Enter a name to identify the key
- Click
Create
The key should now be visible on screen. For security-reasons this key can not be shown again. If a key is needed again please remove the key and create a new one.
# Using Auth Endpoint
The API endpoint Auth can be used to generate a new API-Key, this is the normal "login" API.
A POST request containing username and password as Basic auth is sent to the endpoint. The response contains either information about more steps needed such as sms-verification or the key.
Endpoint description can be found in the API-Documentation.