Skip to main content

API Authentication

AppliedAI uses API keys to authenticate requests. You can manage your API keys from the dashboard. Each API key has full access to the API, so be sure to keep them secure.

Getting Started with API Keys

1

Access the Dashboard

Navigate to the dashboard and click on “API Keys” in the sidebar navigation.You’ll see your existing API keys or an option to generate new one.Important: Note that only one active API key is allowed at this time. So when you generated a new key, the old key will be revoked.
2

Generate API Key

  1. Click the “Generate API Key” button
  2. Enter a descriptive name for your key (e.g., “Production API Key”)
  3. Click “Generate Key”
Important: Copy your API key immediately and store it securely. You won’t be able to see the complete key again.
3

Implement Authentication

Include your API key in the request headers:
curl https://backend.appliedai.club/v1/endpoint \
  -H "Authorization: Bearer YOUR_API_KEY"
4

Secure Storage

Store your API key securely using environment variables:
# .env file
APPLIED_AI_API_KEY=aai_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

# Python code
import os
from dotenv import load_dotenv

load_dotenv()
api_key = os.getenv('APPLIED_AI_API_KEY')

API Key Properties

Each API key displays the following information:
  • Key Name: The name you assigned to the key
  • Last Used: Timestamp of the key’s most recent use
  • Created At: When the key was generated
  • Last Four: Last four characters of the key for identification
  • Status: Whether the key is active or revoked

Security Best Practices

  • Never share your API keys or commit them to version control
  • Regularly rotate your API keys for enhanced security
  • Revoke unused or compromised keys immediately

Rate Limiting

API requests are rate-limited based on your subscription tier:

Free Tier

100 requests per minute

Pro Tier

1000 requests per minute

Enterprise Tier

Custom limits

Error Responses

{
  "error": {
    "message": "Invalid API key provided",
    "type": "authentication_error"
  }
}
Keep your API keys secure and never share them publicly. If you suspect a key has been compromised, revoke it immediately and generate a new one.

Support

If you encounter any authentication issues:
  1. Check our troubleshooting guide
  2. Contact support@appliedai.club
  3. Visit our status page for system updates
I