Authentication
AI AdPilot uses API keys to authenticate all requests. Create and manage keys from your dashboard.
Creating an API Key
Sign In
Navigate to your dashboard and open the API Keys page.
Create Key
Click "Create New Key", give it a descriptive name, and save.
Copy & Secure
Copy the key immediately. It will only be shown once.
Using Your Key
Include your key in every request using the Authorization header:
Authorization: Bearer sk-your-api-key-here
Best Practices
Environment Variables
Never hardcode API keys in source code. Use .env files or secret managers.
Rotate Keys Regularly
Create new keys and delete old ones periodically for security.
Separate Environments
Use different keys for development, staging, and production.
Monitor Usage
Check your dashboard regularly for unusual activity or unexpected charges.
Security Warning
Never expose API keys in client-side code, public repositories, or shared documents. Compromised keys can be deleted immediately from the dashboard.