The Meibel API uses API keys to authenticate requests. All API requests must include your API key in the Meibel-API-Key header.
API Keys
Your API key carries many privileges, so be sure to keep it secure. Do not share your API key in publicly accessible areas such as GitHub, client-side code, or in your applications.
Obtaining an API Key
Sign in to your Meibel Dashboard
Navigate to Settings > API Keys
Click “Create New API Key”
Give your key a descriptive name
Copy the key immediately — you won’t be able to see it again
API keys should be stored securely in environment variables or a secrets management solution, never in your codebase.
Making Authenticated Requests
All API requests must be made over HTTPS and include a Meibel-API-Key header with your API key.
Using cURL
curl -X GET https://api.meibel.ai/v2/datasources \
-H "Meibel-API-Key: YOUR_API_KEY"
Using the SDKs
The official SDKs handle authentication for you when provided with an API key:
Python
Python (Async)
TypeScript
Go
CLI
from meibel import MeibelClient
import os
client = MeibelClient( api_key = os.getenv( "MEIBEL_API_KEY" ))
datasources = client.datasources.list_datasources()
API Key Security Best Practices
To keep your API keys secure:
Use environment variables
Store API keys in environment variables, not in your code
Implement key rotation
Rotate your API keys periodically
Set appropriate permissions
Create keys with the minimum necessary permissions
Monitor usage
Regularly review API key usage in the dashboard
Revoke compromised keys
Immediately revoke any keys that may have been compromised
Troubleshooting Authentication
If you’re experiencing authentication issues:
Ensure your API key is valid and active in the dashboard
Check that you’re using the Meibel-API-Key header (not Authorization)
Verify there are no extra spaces or characters in your key
Confirm your API key has the necessary permissions
If problems persist, contact support@meibel.ai for assistance.