# Authentication

Every action using the SDK must be authenticated using a valid API Key. You can get one for your user from the developer portal.

Access your organization developer portal at https://developers-portal.<organization_id>.knolar.io/

Knolar Developers Portal

Sign in with your user and password, and access "My Dashboard" section. Here you can find your API Key.

Knolar Developers Portal: "My Dashboard" section

After that, navigate to "APIs" section and select "CPH Developers Consumption API". Then click the "Subscribe" button and your API Key will have access to the consumption API.

Knolar Developers Portal: "APIs" section

You only need to provide your api key, along with your organization_id to Knolar SDK at creation time

Example:

import os
from knolariosdk import KnolarIOSDK

knolar_api_key = os.getenv('KNOLAR_API_KEY')
sdk = KnolarIOSDK(organization_id, sdk_token)


WARNING

Remember to keep your API Keys safe and secret. Do not put them in clear text in your source code.
Every API Key is associated to a user, so it will have the same permissions as the user who belongs to.