AlloMia API requires authentication for all requests to ensure data security and appropriate access control. We support two levels of API keys to meet different integration needs: tenant-level and organization-level keys.Documentation Index
Fetch the complete documentation index at: https://docs.allomia.com/llms.txt
Use this file to discover all available pages before exploring further.
Bearer Authentication
AlloMia uses Bearer token authentication for all API requests. Include your API key in theAuthorization header using the following format:
Types of API Keys
AlloMia offers two types of API keys, each with different scopes and use cases:1. Tenant-Level API Keys
Tenant-level API keys have the highest level of access and can manage resources across all organizations within a tenant. Use cases:- Platform-wide integrations
- Multi-organization management
- Administrative tools and automation
2. Organization-Level API Keys
Organization-level API keys provide access limited to a specific organization’s resources. These are self-service keys that you can generate directly from the AlloMia dashboard. Use cases:- Organization-specific integrations
- Department-level applications
- Individual service connections
Generating Organization-Level API Keys
You can create up to 5 organization-level API keys through the AlloMia dashboard:- Navigate to Settings > API Keys in your AlloMia dashboard
- Click the Add Key button
- Enter a descriptive name for your API key (e.g., “Production Integration”)
- Click Create API Key
- Important: Copy your API key immediately and store it securely. The complete key will only be displayed once.
Revoking API Keys
To revoke an organization-level API key:- Go to Settings > API Keys in your dashboard
- Locate the key you want to revoke
- Click the delete (trash) icon
- Confirm the deletion
Security Best Practices
API keys provide direct access to your data. Follow these security best practices:- Never expose your API key in client-side code, public repositories, or any public-facing assets
- Store API keys in secure environment variables or a secrets management service
- Use different API keys for different environments (development, staging, production)
- Implement proper key rotation procedures
- Use HTTPS for all API requests
- Implement proper error handling to avoid leaking sensitive information
- Consider using organization-level keys over tenant-level keys when possible to limit scope
Error Responses
If authentication fails, you’ll receive a401 Unauthorized response: