Authentication
Overview
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.
Keep your API keys secure! Never commit them to version control or expose them in client-side code.
Getting Your API Key
- Log in to the Automat Dashboard
- Navigate to Settings → API Keys
- Click Create API Key
- Give your key a descriptive name (e.g., “Production Backend”, “Development”)
- Copy the key immediately — it won’t be shown again
You can create multiple API keys for different environments or services. Each key can be revoked independently without affecting others.
Using Your API Key
Include your API key in the Authorization header using the Bearer scheme:
Example Request
Error Handling
If authentication fails, you’ll receive a 401 Unauthorized response:
Common authentication errors:
Environment Variables
We recommend storing your API key in environment variables:
Node.js
Python
Go
API Key Best Practices
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