# 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 AAM

  1. Log in to AAM
  2. Navigate to your profile by clicking the account image in the top right corner.
  3. Click on Security
  4. Click Create new API-Key
  5. Enter a name to identify the key
  6. 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.