Authentication for Developers
This guide shows you how to properly authenticate your Famulor API requests while following best practices for security and troubleshooting.For a quick reference, see our basic authentication page in the API reference.
Overview
The Famulor API uses Bearer token authentication with API keys. Every API call must include a valid API key in theAuthorization header.
Getting an API Key
Open Dashboard
Log in to your Famulor account at https://app.famulor.de
Using the API Key
Standard Authentication
Include your API key in theAuthorization header of every request:
Code Examples
Setting Up Environment Variables
Local (.env file)
Production Deployment
Authentication Error Handling
Common Errors and Solutions
401 Unauthorized - Invalid API Key
401 Unauthorized - Invalid API Key
403 Forbidden - Insufficient Permissions
403 Forbidden - Insufficient Permissions
- Check the permissions of your API key
- Contact support if you need elevated permissions
- Ensure you are accessing the correct resource
Missing Authorization Header
Missing Authorization Header
Testing Authentication
Simple Test Call
Expected Response
Security Best Practices
✅ Recommended Practices
- Use environment variables for API keys
- Use HTTPS for all API calls
- Rotate keys regularly
- Apply least privilege permissions
- Log API calls without exposing keys
❌ Avoid
- Hardcoding API keys in code
- Committing keys to version control
- Transmitting keys over insecure channels
- Using keys in client-side JavaScript
- Passing keys via URL parameters
Rate Limiting
The Famulor API implements rate limiting to protect the infrastructure:- Standard limit: 100 requests per minute
- Burst limit: 20 requests per 10 seconds

