Skip to main content

API Keys

All Agent Diff API requests require authentication via an API key.

Header Format

Example Request

Getting an API Key

  1. Sign up at agentdiff.dev
  2. Go to your dashboard
  3. Navigate to API Keys
  4. Click Create New Key
  5. Copy and store your key securely
API keys are shown only once. Store them securely in environment variables.

Using API Keys in SDKs

Python

TypeScript

Security Best Practices

Never hardcode API keys in your source code:
Create new keys periodically and delete old ones.
Use different API keys for development, staging, and production.
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: When rate limited, you’ll receive:
Need higher limits? Contact me at hubert@uni.minerva.edu