Skip to main content
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

  1. Sign in to your Meibel Dashboard
  2. Navigate to Settings > API Keys
  3. Click “Create New API Key”
  4. Give your key a descriptive name
  5. 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:
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:
1

Use environment variables

Store API keys in environment variables, not in your code
2

Implement key rotation

Rotate your API keys periodically
3

Set appropriate permissions

Create keys with the minimum necessary permissions
4

Monitor usage

Regularly review API key usage in the dashboard
5

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.