Skip to content

Authentication

Learn how to authenticate with the Konigle API.

API Key Authentication

The SDK uses API key authentication:

from konigle import KonigleClient

client = KonigleClient(api_key="your-api-key-here")

Environment Variables

For security, it's recommended to store your API key in an environment variable:

export KONIGLE_API_KEY="your-api-key-here"
import os
from konigle import KonigleClient

api_key = os.getenv("KONIGLE_API_KEY")
client = KonigleClient(api_key=api_key)

Security Best Practices

Keep your API key secure

  • Never commit API keys to version control
  • Use environment variables or secure credential storage
  • Rotate your API keys regularly