API Keys
Create and manage API keys for programmatic access
API Keys
API keys allow you to access the Competitor Watch API programmatically.
Creating an API Key
- Go to Settings → API Keys in your dashboard
- Click "Create API Key"
- Give your key a name (e.g., "Production API", "CI/CD")
- Select the scopes/permissions for the key
- Copy the key immediately (it won't be shown again)
API Key Scopes
API keys support different scopes for fine-grained access control:
sites:read- Read site informationsites:write- Create and update siteschanges:read- Read change datachanges:write- Manage changes (admin only)
Using API Keys
Include your API key in the Authorization header:
Authorization: Bearer your_api_key
Security Best Practices
- Never commit API keys to version control
- Use environment variables to store keys
- Rotate keys regularly
- Delete unused keys
- Use different keys for different environments (dev, staging, production)
Managing API Keys
You can view, rotate, or delete API keys in Settings → API Keys. Each key shows:
- Last used date
- Usage count
- Creation date
- Status (active/inactive)