API Keys
All Agent Diff API requests require authentication via an API key.Header Format
Example Request
Getting an API Key
- Hosted
- Self-Hosted
- Sign up at agentdiff.dev
- Go to your dashboard
- Navigate to API Keys
- Click Create New Key
- Copy and store your key securely
Using API Keys in SDKs
Python
TypeScript
Security Best Practices
Use environment variables
Use environment variables
Never hardcode API keys in your source code:
Rotate keys regularly
Rotate keys regularly
Create new keys periodically and delete old ones.
Use separate keys per environment
Use separate keys per environment
Use different API keys for development, staging, and production.
Monitor key usage
Monitor key usage
Review API usage in your dashboard to detect unauthorized access.
Error Responses
Missing API Key
Invalid API Key
Expired API Key
Rate Limiting
API keys have daily rate limits:| Resource | Daily Limit |
|---|---|
| Environments created | 200 |
| API requests | 2,000 |
Need higher limits? Contact me at hubert@uni.minerva.edu