Authentication
Secure your API requests with API keys
All API requests to Automat require authentication using an API key. API keys are scoped to your organization and provide access to all extractors within that organization.
You can create multiple API keys for different environments or services. Each key can be revoked independently without affecting others.
Include your API key in the Authorization header using the Bearer scheme:
If authentication fails, you’ll receive a 401 Unauthorized response:
Common authentication errors:
We recommend storing your API key in environment variables:
typescript const apiKey = process.env.AUTOMAT_API_KEY; Never hardcode API keys in your source code
Periodically generate new keys and revoke old ones
Use different keys for development, staging, and production
Review API key activity in your dashboard